{ "id":"/axapi/v3/ddos/zone-template/icmp-v4/{icmp-tmpl-name}/type/{type-number}", "type":"object", "node-type":"list", "title":"type", "partition-visibility":"shared", "description":"Specify ICMP type", "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 }, "v4-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" ] } } }, "v4-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 }, "v4-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" ] } } }, "v4-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 } }, "object-keys":[ "type-number" ], "required":[ "type-number" ] }