The DPS detector mainly provides the following functions: 1. Receive the IP address list of local DNSs from the DPS server. 2. Send detection packets to local DNSs to obtain three types of proximity information: Round Trip Time (RTT), Packet Loss Rate (PLR) and hops. 3. Report the proximity detection results to the DPS server.
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | region | asso | |
| default | addr | ipaddr | Sets the IP address of the DPS detector. If this parameter is set to an interface IP address, the appliance itself is used as the DPS detector for the specified SDNS region. To use the appliance as the DPS detector, you must start a local DPS detector first. |
| default | dps_port | port | Sets the source port for the DPS detector to communicate with the DPS server. |
| default | interval | uint32 | Sets the interval for the DPS detector to detect local DNSs. |
| default | cache_time | uint32 | Sets the length of time that the IP addresses of local DNSs received from the DPS server will be cached on the DPS detector. |
| status | status | string |
{
"RemoteDetector": {
"meta": {
"abstract": false,
"verbose_name": 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 | asso | ||||||||||
| addr | ipaddr (Nested Field. It should be a dict.)
|
Sets the IP address of the DPS detector. If this parameter is set to an interface IP address, the appliance itself is used as the DPS detector for the specified SDNS region. To use the appliance as the DPS detector, you must start a local DPS detector first. | |||||||||
| dps_port | port | Sets the source port for the DPS detector to communicate with the DPS server. | |||||||||
| interval | uint32 | Sets the interval for the DPS detector to detect local DNSs. | |||||||||
| cache_time | uint32 | Sets the length of time that the IP addresses of local DNSs received from the DPS server will be cached on the DPS detector. |
{
"RemoteDetector": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"RemoteDetector": [
{
"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, addr, dps_port, interval, cache_time, 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 | asso | |
| default | addr | ipaddr | Sets the IP address of the DPS detector. If this parameter is set to an interface IP address, the appliance itself is used as the DPS detector for the specified SDNS region. To use the appliance as the DPS detector, you must start a local DPS detector first. |
| default | dps_port | port | Sets the source port for the DPS detector to communicate with the DPS server. |
| default | interval | uint32 | Sets the interval for the DPS detector to detect local DNSs. |
| default | cache_time | uint32 | Sets the length of time that the IP addresses of local DNSs received from the DPS server will be cached on the DPS detector. |
| status | status | string |
{
"RemoteDetector": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"RemoteDetector": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"RemoteDetector": {
"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, dps_port, interval, cache_time, |
| Field Name | Type | Description |
|---|---|---|
| addr | ipaddr | Sets the IP address of the DPS detector. If this parameter is set to an interface IP address, the appliance itself is used as the DPS detector for the specified SDNS region. To use the appliance as the DPS detector, you must start a local DPS detector first. |
| dps_port | port | Sets the source port for the DPS detector to communicate with the DPS server. |
| interval | uint32 | Sets the interval for the DPS detector to detect local DNSs. |
| cache_time | uint32 | Sets the length of time that the IP addresses of local DNSs received from the DPS server will be cached on the DPS detector. |
All configuration fields and their values are replied:
{
"RemoteDetector": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
<field_group1>: {
<field3>:<value3>,
<field4>:<value4>,
...
},
<field_group2>: {
<field5>:<value5>,
<field6>:<value6>,
...
},
...
}
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"RemoteDetector": {
"instance_id":<instance_id>,
"region":<value>
}
}