| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | name | string | |
| default | client_ip | UnionField | |
| default | netmask_prefix | UnionField | |
| default | type | enum | Available values:
|
| default | url | string | When rule type is "throughput", it must contain "url=\ |
| default | method | enum | Available values:
|
| default | action | enum | Available values:
|
| default | limit_through | int | |
| default | limit_rps | int |
{
"DDOSHTTPRULE": {
"meta": {
"abstract": false,
"verbose_name": HTTP ACL Rules,
},
"fieldgroups": [
{
"fields": [
{
"verbose_name": field_verbose_name1,
"field_name": field_name1
},
...
],
"group_name": field_group_name1
},
...
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| name | string | ||||||||||
| client_ip | UnionField (Nested Field. It should be a dict.)
|
||||||||||
| netmask_prefix | UnionField (Nested Field. It should be a dict.)
|
||||||||||
| type | enum | Available values:
|
|||||||||
| url | string | When rule type is "throughput", it must contain "url=\ |
|||||||||
| method | enum | Available values:
|
|||||||||
| action | enum | Available values:
|
|||||||||
| limit_through | int | ||||||||||
| limit_rps | int |
{
"DDOSHTTPRULE": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"DDOSHTTPRULE": [
{
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
},
...
]
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
| field_group_name | URI | (optional) Target field group name to query. Available names are: default, Notice: There could only be one field_group_name or field_name in the URL. And if both field_group_name and field_name are not specified, will try to query default field_group data. |
| field_name | URI | (optional) Target field name to query. Available names are: name, client_ip, netmask_prefix, type, url, method, action, limit_through, limit_rps, Notice: There could only be one field_group_name or field_name in the URL. |
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | name | string | |
| default | client_ip | UnionField | |
| default | netmask_prefix | UnionField | |
| default | type | enum | Available values:
|
| default | url | string | When rule type is "throughput", it must contain "url=\ |
| default | method | enum | Available values:
|
| default | action | enum | Available values:
|
| default | limit_through | int | |
| default | limit_rps | int |
{
"DDOSHTTPRULE": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"DDOSHTTPRULE": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"DDOSHTTPRULE": {
"instance_id":<instance_id>,
<field>:<value>,
}
}
{
"msg": <success-or-error-msg>
}