Fortinet black logo

CLI Reference

server-policy pattern custom-data-type

server-policy pattern custom-data-type

Use this command to configure custom data types to augment the predefined data types. You can add custom data types to input rules to define the data type of an input, and to auto-learning profiles to detect valid input parameters.

To use this command, your administrator account’s access control profile must have either w or rw permission to the traroutegrp area. For details, see Permissions.

Syntax

config server-policy pattern custom-data-type

edit "<custom-data-type_name>"

set expression "<regex_pattern>"

next

end

Variable Description Default

"<custom-data-type_name>"

Enter the name of the custom data type. The maximum length is 63 characters.

To display the list of existing types, enter:

edit ?

No default.

expression "<regex_pattern>"

Enter a regular expression that defines the data type. It should match all data of that type, but nothing else. The maximum length is 2,071 characters. No default.

Example

This example configures two custom data types.

config server-policy pattern custom-data-type

edit "Level 3 Password-custom"

set expression "^aaa"

next

edit "Custom Data Type 1"

set expression "^555"

next

end

server-policy pattern custom-data-type

Use this command to configure custom data types to augment the predefined data types. You can add custom data types to input rules to define the data type of an input, and to auto-learning profiles to detect valid input parameters.

To use this command, your administrator account’s access control profile must have either w or rw permission to the traroutegrp area. For details, see Permissions.

Syntax

config server-policy pattern custom-data-type

edit "<custom-data-type_name>"

set expression "<regex_pattern>"

next

end

Variable Description Default

"<custom-data-type_name>"

Enter the name of the custom data type. The maximum length is 63 characters.

To display the list of existing types, enter:

edit ?

No default.

expression "<regex_pattern>"

Enter a regular expression that defines the data type. It should match all data of that type, but nothing else. The maximum length is 2,071 characters. No default.

Example

This example configures two custom data types.

config server-policy pattern custom-data-type

edit "Level 3 Password-custom"

set expression "^aaa"

next

edit "Custom Data Type 1"

set expression "^555"

next

end