---
title: "Option Filter Match Rule"
canonical: "https://docs.infoblox.com/space/NCR8/23069027/Option%20Filter%20Match%20Rule"
format: markdown
---
| **Field Name** | **Data Type** | **Required (Yes/No)** | **Associated GUI Field** | **Associated PAPI Method** | **Usage and Guidelines** |
| --- | --- | --- | --- | --- | --- |
| Header-OptionFileterMatchRule | String | Yes |  |  | Example: OptionFilterMatchRule |
| parent | Option filter | Yes | Option Filter  
Name | filter | The name of the parent option filter. Example: Option filter 1 |
| match_option | String | Yes | Match Option | num | Example: OPTION-1 (option space is DHCP) |
| match_value | String | Yes | Match Value | value | Example: 255.0.0.0 |
| _new_match_value | String | No |  |  | Add this field to overwrite the match_value field when you select the overwrite or merge option. |
| comment | String | No | Comment | comment |  |
| is_substring | Boolean | No | Value is a substring | is_substring | Example: FALSE |
| substring_offset | Integer | No | Substring Offset | substring_offset | Example: 2 |
| substring_length | Unsigned integer | No | Substring Length | substring_length | Example: Doe |

# Examples

This section contains examples of how to create data files for option filter match rules. All examples use comma as the separator. You can use other supported separators, such as semicolon, space, or tab.

## Adding an Option Filter Match Rule

This example shows how to import an option filter match rule.

`header-OptionFilterMatchRule,parent*,match_option*,match_value*,is_substring,substring`  
` _offset`  
` OptionFilterMatchRule,OptionFilter01,OPTION-1,2.2.2.2,FALSE,0`

## Overwriting Option Filter Match Rule Data

This example shows how to overwrite an existing match option with OPTION-2 and add a new match value of 3.3.3.3. header-OptionFilterMatchRule,parent*,match_option*,match_value*,_new_match_value

`OptionFilterMatchRule,OptionFilter01,OPTION-2,2.2.2.2,3.3.3.3`

## Merging Option Filter Match Rule Data

This example shows how to merge a substring length to an existing option filter match rule.

`header-OptionFilterMatchRule,parent*,match_option*,match_value*,substring_length OptionFilterMatchRule,OptionFilter02,OPTION-2,3.3.3.3,256`