{ "id":"/axapi/v3/ddos/zone-template/icmp-v6/{icmp-tmpl-name}", "type":"object", "node-type":"list", "title":"icmp-v6", "partition-visibility":"shared", "description":"ICMPv6 template Configuration", "properties":{ "icmp-tmpl-name":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":63, "partition-visibility":"shared", "description":"DDOS ICMPv6 Template Name", "optional":false }, "filter-match-type":{ "type":"string", "format":"enum", "default":"default", "partition-visibility":"shared", "description":"'default': Stop matching on drop/blacklist action; 'stop-on-first-match': Stop matching on first match; ", "enum":[ "default", "stop-on-first-match" ], "optional":true }, "uuid":{ "type":"string", "format":"string", "minLength":1, "maxLength":64, "partition-visibility":"shared", "modify-not-allowed":1, "description":"uuid of the object", "optional":true }, "user-tag":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":127, "partition-visibility":"shared", "description":"Customized tag", "optional":true }, "type-list":{ "type":"array", "minItems":1, "items":{ "type":"type" }, "uniqueItems":true, "$ref":"/axapi/v3/ddos/zone-template/icmp-v6/{icmp-tmpl-name}/type/{type-number}", "array":[ { "properties":{ "type-number":{ "type":"number", "format":"number", "minimum":0, "maximum":255, "partition-visibility":"shared", "description":"Specify ICMP type number", "optional":false }, "icmp-type-action-list-name":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":63, "partition-visibility":"shared", "$ref":"/axapi/v3/ddos/action-list", "not":"icmp-type-action", "description":"Configure action-list to take for this ICMP type", "optional":true }, "icmp-type-action":{ "type":"string", "format":"enum", "partition-visibility":"shared", "not":"icmp-type-action-list-name", "description":"'drop': Reject this ICMP type; 'blacklist-src': Blacklist-src this ICMP type; 'ignore': Ignore this ICMP type; ", "enum":[ "drop", "blacklist-src", "ignore" ], "optional":true }, "v6-src-rate-cfg":{ "type":"object", "properties":{ "src-type-rate":{ "type":"number", "format":"number", "minimum":1, "maximum":16000000, "partition-visibility":"shared", "description":"Specify the whole src rate for this type" }, "src-type-rate-action-list-name":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":63, "partition-visibility":"shared", "$ref":"/axapi/v3/ddos/action-list", "not":"src-type-rate-action", "description":"Configure action-list to take for rate exceed" }, "src-type-rate-action":{ "type":"string", "format":"enum", "partition-visibility":"shared", "not":"src-type-rate-action-list-name", "description":"'drop': Drop packets for rate exceed (Default); 'blacklist-src': Blacklist-src for rate exceed; 'ignore': Do nothing for rate exceed; ", "enum":[ "drop", "blacklist-src", "ignore" ] } } }, "v6-src-code-cfg":{ "type":"array", "minItems":1, "items":{ "type":"object" }, "uniqueItems":true, "array":[ { "properties":{ "src-code-number":{ "type":"number", "format":"number", "minimum":0, "maximum":255, "partition-visibility":"shared", "description":"Specify the ICMP code for this src rate" }, "src-code-rate":{ "type":"number", "format":"number", "minimum":1, "maximum":16000000, "partition-visibility":"shared", "description":"Specify the rate with the code" }, "src-code-rate-action-list-name":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":63, "partition-visibility":"shared", "$ref":"/axapi/v3/ddos/action-list", "not":"src-code-rate-action", "description":"Configure action-list to take for rate exceed" }, "src-code-rate-action":{ "type":"string", "format":"enum", "partition-visibility":"shared", "not":"src-code-rate-action-list-name", "description":"'drop': Drop packets for rate exceed (Default); 'blacklist-src': Blacklist-src for rate exceed; 'ignore': Do nothing for rate exceed; ", "enum":[ "drop", "blacklist-src", "ignore" ] } } } ] }, "src-code-other-rate":{ "type":"number", "format":"number", "minimum":1, "maximum":16000000, "partition-visibility":"shared", "description":"Specify the rate with other code", "optional":true }, "src-code-other-rate-action-list-name":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":63, "partition-visibility":"shared", "$ref":"/axapi/v3/ddos/action-list", "not":"src-code-other-rate-action", "description":"Configure action-list to take for rate exceed", "optional":true }, "src-code-other-rate-action":{ "type":"string", "format":"enum", "partition-visibility":"shared", "not":"src-code-other-rate-action-list-name", "description":"'drop': Drop packets for rate exceed (Default); 'blacklist-src': Blacklist-src for rate exceed; 'ignore': Do nothing for rate exceed; ", "enum":[ "drop", "blacklist-src", "ignore" ], "optional":true }, "v6-dst-rate-cfg":{ "type":"object", "properties":{ "dst-type-rate":{ "type":"number", "format":"number", "minimum":1, "maximum":16000000, "partition-visibility":"shared", "description":"Specify the whole dst rate for this type" }, "dst-type-rate-action-list-name":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":63, "partition-visibility":"shared", "$ref":"/axapi/v3/ddos/action-list", "not":"dst-type-rate-action", "description":"Configure action-list to take for rate exceed" }, "dst-type-rate-action":{ "type":"string", "format":"enum", "partition-visibility":"shared", "not":"dst-type-rate-action-list-name", "description":"'drop': Drop packets for rate exceed (Default); 'blacklist-src': Blacklist-src for rate exceed; 'ignore': Do nothing for rate exceed; ", "enum":[ "drop", "blacklist-src", "ignore" ] } } }, "v6-dst-code-cfg":{ "type":"array", "minItems":1, "items":{ "type":"object" }, "uniqueItems":true, "array":[ { "properties":{ "dst-code-number":{ "type":"number", "format":"number", "minimum":0, "maximum":255, "partition-visibility":"shared", "description":"Specify the ICMP code for this dst rate" }, "dst-code-rate":{ "type":"number", "format":"number", "minimum":1, "maximum":16000000, "partition-visibility":"shared", "description":"Specify the rate with the code" }, "dst-code-rate-action-list-name":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":63, "partition-visibility":"shared", "$ref":"/axapi/v3/ddos/action-list", "not":"dst-code-rate-action", "description":"Configure action-list to take for rate exceed" }, "dst-code-rate-action":{ "type":"string", "format":"enum", "partition-visibility":"shared", "not":"dst-code-rate-action-list-name", "description":"'drop': Drop packets for rate exceed (Default); 'blacklist-src': Blacklist-src for rate exceed; 'ignore': Do nothing for rate exceed; ", "enum":[ "drop", "blacklist-src", "ignore" ] } } } ] }, "dst-code-other-rate":{ "type":"number", "format":"number", "minimum":1, "maximum":16000000, "partition-visibility":"shared", "description":"Specify the rate with other code", "optional":true }, "dst-code-other-rate-action-list-name":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":63, "partition-visibility":"shared", "$ref":"/axapi/v3/ddos/action-list", "not":"dst-code-other-rate-action", "description":"Configure action-list to take for rate exceed", "optional":true }, "dst-code-other-rate-action":{ "type":"string", "format":"enum", "partition-visibility":"shared", "not":"dst-code-other-rate-action-list-name", "description":"'drop': Drop packets for rate exceed (Default); 'blacklist-src': Blacklist-src for rate exceed; 'ignore': Do nothing for rate exceed; ", "enum":[ "drop", "blacklist-src", "ignore" ], "optional":true }, "uuid":{ "type":"string", "format":"string", "minLength":1, "maxLength":64, "partition-visibility":"shared", "modify-not-allowed":1, "description":"uuid of the object", "optional":true }, "user-tag":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":127, "partition-visibility":"shared", "description":"Customized tag", "optional":true } }, "required":[ "type-number" ] } ] }, "type-other":{ "type":"object", "$ref":"/axapi/v3/ddos/zone-template/icmp-v6/{icmp-tmpl-name}/type-other", "properties":{ "icmp-type-other-action-list-name":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":63, "partition-visibility":"shared", "$ref":"/axapi/v3/ddos/action-list", "not":"icmp-type-other-action", "description":"Configure action-list to take for wildcard ICMP match" }, "icmp-type-other-action":{ "type":"string", "format":"enum", "partition-visibility":"shared", "not":"icmp-type-other-action-list-name", "description":"'drop': Reject wildcard ICMP type; 'blacklist-src': Blacklist-src wildcard ICMP type; 'ignore': Ignore wildcard ICMP type; ", "enum":[ "drop", "blacklist-src", "ignore" ] }, "src":{ "type":"object", "properties":{ "src-type-other-rate":{ "type":"number", "format":"number", "minimum":1, "maximum":16000000, "partition-visibility":"shared", "description":"Specify the whole src rate for wildcard ICMP type" }, "src-type-other-rate-action-list-name":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":63, "partition-visibility":"shared", "$ref":"/axapi/v3/ddos/action-list", "not":"src-type-other-rate-action", "description":"Configure action-list to take for rate exceed" }, "src-type-other-rate-action":{ "type":"string", "format":"enum", "partition-visibility":"shared", "not":"src-type-other-rate-action-list-name", "description":"'drop': Drop packets for rate exceed (Default); 'blacklist-src': Blacklist-src for rate exceed; 'ignore': Do nothing for rate exceed; ", "enum":[ "drop", "blacklist-src", "ignore" ] } } }, "dst":{ "type":"object", "properties":{ "dst-type-other-rate":{ "type":"number", "format":"number", "minimum":1, "maximum":16000000, "partition-visibility":"shared", "description":"Specify the whole dst rate for wildcard ICMP type" }, "dst-type-other-rate-action-list-name":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":63, "partition-visibility":"shared", "$ref":"/axapi/v3/ddos/action-list", "not":"dst-type-other-rate-action", "description":"Configure action-list to take for rate exceed" }, "dst-type-other-rate-action":{ "type":"string", "format":"enum", "partition-visibility":"shared", "not":"dst-type-other-rate-action-list-name", "description":"'drop': Drop packets for rate exceed (Default); 'blacklist-src': Blacklist-src for rate exceed; 'ignore': Do nothing for rate exceed; ", "enum":[ "drop", "blacklist-src", "ignore" ] } } }, "uuid":{ "type":"string", "format":"string", "minLength":1, "maxLength":64, "partition-visibility":"shared", "modify-not-allowed":1, "description":"uuid of the object" } } }, "filter-list":{ "type":"array", "minItems":1, "items":{ "type":"filter" }, "uniqueItems":true, "$ref":"/axapi/v3/ddos/zone-template/icmp-v6/{icmp-tmpl-name}/filter/{icmp-filter-name}", "array":[ { "properties":{ "icmp-filter-name":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":63, "partition-visibility":"shared", "optional":false }, "icmp-filter-seq":{ "type":"number", "format":"number", "minimum":1, "maximum":200, "partition-visibility":"shared", "description":"sequence number", "optional":true }, "icmp-filter-regex":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":1275, "partition-visibility":"shared", "description":"Regex Expression", "optional":true }, "icmp-filter-inverse-match":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"Inverse the result of matching", "optional":true }, "byte-offset-filter":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":128, "partition-visibility":"shared", "description":"filter using Berkeley packet filter syntax", "optional":true }, "icmp-filter-action-list-name":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":63, "partition-visibility":"shared", "not":"icmp-filter-action", "description":"list to take", "optional":true }, "icmp-filter-action":{ "type":"string", "format":"enum", "default":"drop", "partition-visibility":"shared", "not":"icmp-filter-action-list-name", "description":"'drop': Drop packets (Default); 'ignore': Take no action; 'blacklist-src': Blacklist-src; ", "enum":[ "drop", "ignore", "blacklist-src" ], "optional":true }, "uuid":{ "type":"string", "format":"string", "minLength":1, "maxLength":64, "partition-visibility":"shared", "modify-not-allowed":1, "description":"uuid of the object", "optional":true }, "user-tag":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":127, "partition-visibility":"shared", "description":"Customized tag", "optional":true } }, "required":[ "icmp-filter-name" ] } ] } }, "object-keys":[ "icmp-tmpl-name" ], "required":[ "icmp-tmpl-name" ] }