Local DPS detector refers to a DPS detector daemon deployed on the appliance.
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | region_name | string | Sets the name of the local DPS detector daemon. |
| default | addr | ipaddr | Sets the IP address on which the local DPS detector daemon listens. Its value must be an interface IP address. "0.0.0.0" means listening on all IPv4 addresses, and "::" means listening on all IPv6 addresses. |
| default | detect_port | port | Sets the source port for the local DPS detector daemon to send detection packets to the local DNS. |
| default | dps_port | port | Sets the listening port for the local DPS detector daemon to communicate with the DPS servers. |
| default | timeout | uint32 | Sets the timeout value for the local DPS detector daemon to detect the local DNS. |
| default | gw_addr | string | Sets the IP address of the gateway that forwards the detection packets. The values "0.0.0.0" and "::" indicate that the appliance will automatically select the gateway. |
| default | dps_addr | ipaddr | |
| status | status | string |
{
"LocalDetector": {
"meta": {
"abstract": false,
"verbose_name": Local DPS Detector,
},
"fieldgroups": [
{
"fields": [
{
"verbose_name": field_verbose_name1,
"field_name": field_name1
},
...
],
"group_name": field_group_name1
},
...
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| region_name | string | Sets the name of the local DPS detector daemon. | |||||||||
| addr | ipaddr (Nested Field. It should be a dict.)
|
Sets the IP address on which the local DPS detector daemon listens. Its value must be an interface IP address. "0.0.0.0" means listening on all IPv4 addresses, and "::" means listening on all IPv6 addresses. | |||||||||
| detect_port | port | Sets the source port for the local DPS detector daemon to send detection packets to the local DNS. | |||||||||
| dps_port | port | Sets the listening port for the local DPS detector daemon to communicate with the DPS servers. | |||||||||
| timeout | uint32 | Sets the timeout value for the local DPS detector daemon to detect the local DNS. | |||||||||
| gw_addr | string | Sets the IP address of the gateway that forwards the detection packets. The values "0.0.0.0" and "::" indicate that the appliance will automatically select the gateway. | |||||||||
| dps_addr | ipaddr (Nested Field. It should be a dict.)
|
{
"LocalDetector": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"LocalDetector": [
{
"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, status, 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: region_name, addr, detect_port, dps_port, timeout, gw_addr, dps_addr, status, Notice: There could only be one field_group_name or field_name in the URL. |
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | region_name | string | Sets the name of the local DPS detector daemon. |
| default | addr | ipaddr | Sets the IP address on which the local DPS detector daemon listens. Its value must be an interface IP address. "0.0.0.0" means listening on all IPv4 addresses, and "::" means listening on all IPv6 addresses. |
| default | detect_port | port | Sets the source port for the local DPS detector daemon to send detection packets to the local DNS. |
| default | dps_port | port | Sets the listening port for the local DPS detector daemon to communicate with the DPS servers. |
| default | timeout | uint32 | Sets the timeout value for the local DPS detector daemon to detect the local DNS. |
| default | gw_addr | string | Sets the IP address of the gateway that forwards the detection packets. The values "0.0.0.0" and "::" indicate that the appliance will automatically select the gateway. |
| default | dps_addr | ipaddr | |
| status | status | string |
{
"LocalDetector": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"LocalDetector": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"LocalDetector": {
"instance_id":<instance_id>,
<field>:<value>,
}
}
{
"msg": <success-or-error-msg>
}
{
<field_name>:<value>
}
When field name is not specified in URL:
Notice: The fields not provided are left untouched.
{
<field_name1>:<value1>,
<field_name2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
| field_name | URI | (optional) Target field name to update. Available field names are: addr, detect_port, dps_port, timeout, gw_addr, dps_addr, |
| Field Name | Type | Description |
|---|---|---|
| addr | ipaddr | Sets the IP address on which the local DPS detector daemon listens. Its value must be an interface IP address. "0.0.0.0" means listening on all IPv4 addresses, and "::" means listening on all IPv6 addresses. |
| detect_port | port | Sets the source port for the local DPS detector daemon to send detection packets to the local DNS. |
| dps_port | port | Sets the listening port for the local DPS detector daemon to communicate with the DPS servers. |
| timeout | uint32 | Sets the timeout value for the local DPS detector daemon to detect the local DNS. |
| gw_addr | string | Sets the IP address of the gateway that forwards the detection packets. The values "0.0.0.0" and "::" indicate that the appliance will automatically select the gateway. |
| dps_addr | ipaddr |
All configuration fields and their values are replied:
{
"LocalDetector": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
<field_group1>: {
<field3>:<value3>,
<field4>:<value4>,
...
},
<field_group2>: {
<field5>:<value5>,
<field6>:<value6>,
...
},
...
}
}