{ "id":"/axapi/v3/slb/template/policy/{name}/class-list", "type":"object", "node-type":"scalar", "title":"class-list", "partition-visibility":"shared", "description":"Configure classification list", "properties":{ "name":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":63, "partition-visibility":"shared", "description":"Class list name or geo-location-class-list name", "optional":false }, "client-ip-l3-dest":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "not":"client-ip-l7-header", "description":"Use destination IP as client IP address", "optional":true }, "client-ip-l7-header":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "not":"client-ip-l3-dest", "description":"Use extract client IP address from L7 header", "optional":true }, "header-name":{ "type":"string", "format":"string", "minLength":1, "maxLength":63, "partition-visibility":"shared", "description":"Specify L7 header name", "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 }, "lid-list":{ "type":"array", "minItems":1, "items":{ "type":"lid" }, "uniqueItems":true, "$ref":"/axapi/v3/slb/template/policy/{name}/class-list/lid/{lidnum}", "array":[ { "properties":{ "lidnum":{ "type":"number", "format":"number", "minimum":1, "maximum":1023, "partition-visibility":"shared", "description":"Specify a limit ID", "optional":false }, "conn-limit":{ "type":"number", "format":"number", "minimum":0, "maximum":1048575, "partition-visibility":"shared", "description":"Connection limit", "optional":true }, "conn-rate-limit":{ "type":"number", "format":"number", "minimum":1, "maximum":2147483647, "partition-visibility":"shared", "description":"Specify connection rate limit", "optional":true }, "conn-per":{ "type":"number", "format":"number", "minimum":1, "maximum":65535, "partition-visibility":"shared", "description":"Per (Specify interval in number of 100ms)", "optional":true }, "request-limit":{ "type":"number", "format":"number", "minimum":1, "maximum":1048575, "partition-visibility":"shared", "description":"Request limit (Specify request limit)", "optional":true }, "request-rate-limit":{ "type":"number", "format":"number", "minimum":1, "maximum":4294967295, "partition-visibility":"shared", "description":"Request rate limit (Specify request rate limit)", "optional":true }, "request-per":{ "type":"number", "format":"number", "minimum":1, "maximum":65535, "partition-visibility":"shared", "description":"Per (Specify interval in number of 100ms)", "optional":true }, "bw-rate-limit":{ "type":"number", "format":"number", "minimum":1, "maximum":2147483647, "partition-visibility":"shared", "description":"Specify bandwidth rate limit (Bandwidth rate limit in bytes)", "optional":true }, "bw-per":{ "type":"number", "format":"number", "minimum":1, "maximum":65535, "partition-visibility":"shared", "description":"Per (Specify interval in number of 100ms)", "optional":true }, "over-limit-action":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"Set action when exceeds limit", "optional":true }, "action-value":{ "type":"string", "format":"enum", "partition-visibility":"shared", "description":"'forward': Forward the traffic even it exceeds limit; 'reset': Reset the connection when it exceeds limit; ", "enum":[ "forward", "reset" ], "optional":true }, "lockout":{ "type":"number", "format":"number", "minimum":1, "maximum":1023, "partition-visibility":"shared", "description":"Don't accept any new connection for certain time (Lockout duration in minutes)", "optional":true }, "log":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"Log a message", "optional":true }, "interval":{ "type":"number", "format":"number", "minimum":1, "maximum":255, "partition-visibility":"shared", "description":"Specify log interval in minutes, by default system will log every over limit instance", "optional":true }, "direct-action":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"Set action when match the lid", "optional":true }, "direct-service-group":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":127, "partition-visibility":"shared", "$ref":"/axapi/v3/slb/service-group", "not":"direct-action-value", "description":"Specify a service group (Specify the service group name)", "optional":true }, "direct-pbslb-logging":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"Configure PBSLB logging", "optional":true }, "direct-pbslb-interval":{ "type":"number", "format":"number", "minimum":0, "maximum":60, "default":3, "partition-visibility":"shared", "description":"Specify logging interval in minutes(default is 3)", "optional":true }, "direct-fail":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"Only log unsuccessful connections", "optional":true }, "direct-action-value":{ "type":"string", "format":"enum", "partition-visibility":"shared", "not":"direct-service-group", "description":"'drop': drop the packet; 'reset': Send reset back; ", "enum":[ "drop", "reset" ], "optional":true }, "direct-logging-drp-rst":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"Configure PBSLB logging", "optional":true }, "direct-action-interval":{ "type":"number", "format":"number", "minimum":0, "maximum":60, "default":3, "partition-visibility":"shared", "description":"Specify logging interval in minute (default is 3)", "optional":true }, "response-code-rate-limit":{ "type":"array", "minItems":1, "items":{ "type":"object" }, "uniqueItems":true, "array":[ { "properties":{ "code-range-start":{ "type":"number", "format":"number", "minimum":100, "maximum":600, "partition-visibility":"shared", "description":"server response code range start" }, "code-range-end":{ "type":"number", "format":"number", "minimum":100, "maximum":600, "partition-visibility":"shared", "description":"server response code range end" }, "threshold":{ "type":"number", "format":"number", "minimum":1, "maximum":15, "partition-visibility":"shared", "description":"the times of getting the response code" }, "period":{ "type":"number", "format":"number", "minimum":1, "maximum":127, "partition-visibility":"shared", "description":"seconds" } } } ] }, "dns64":{ "type":"object", "properties":{ "disable":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"Disable" }, "exclusive-answer":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"Exclusive Answer in DNS Response" }, "prefix":{ "type":"string", "format":"ipv6-address-plen", "partition-visibility":"shared", "description":"IPv6 prefix" } } }, "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":[ "lidnum" ] } ] } } }