SDNS uses DPS to generate dynamic proximity rules.
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | enable | boolean | |
| default | send | uint32 | Sets the interval for the DPS server to send IP addresses of the local DNSs to DPS detectors. |
| default | query | uint32 | Sets the interval for the DPS server to get proximity data from DPS detectors to generate dynamic proximity rules. |
| default | expire | uint32 | Sets a period of time during which dynamic proximity rules are valid. |
| default | method | enum | Sets the method used by the DPS server to calculate "metric" of the path between a local DNS and every DPS detector.Available values:
|
| default | weight1 | uint32 | |
| default | weight2 | uint32 | |
| default | weight3 | uint32 | |
| write_proximity_file | file_content | text | |
| write_proximity_file | write_proximity_file_to | enum | Available values:
|
| write_proximity_file | remote_server_ip | string | |
| write_proximity_file | user_name | string | |
| write_proximity_file | passwd | string | |
| write_proximity_file | file_path | string | |
| write_proximity_file | file_name | string |
{
"GlobalSettings": {
"meta": {
"abstract": false,
"verbose_name": DPS Settings,
},
"fieldgroups": [
{
"fields": [
{
"verbose_name": field_verbose_name1,
"field_name": field_name1
},
...
],
"group_name": field_group_name1
},
...
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|
{
"config_change": true|false,
"msg": <msg>
}
| Parameter | Type | Description |
|---|---|---|
| config_change | bool | Whether the action causes configuration change. |
| msg | sring | Empty when action is performed successfully, otherwise it represents the error info. |
| Parameter | Type | Description |
|---|---|---|
| field_group_name | URI | (optional) Target field group name to query. Available names are: default, write_proximity_file, 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: enable, send, query, expire, method, weight1, weight2, weight3, file_content, write_proximity_file_to, remote_server_ip, user_name, passwd, file_path, file_name, Notice: There could only be one field_group_name or field_name in the URL. |
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | enable | boolean | |
| default | send | uint32 | Sets the interval for the DPS server to send IP addresses of the local DNSs to DPS detectors. |
| default | query | uint32 | Sets the interval for the DPS server to get proximity data from DPS detectors to generate dynamic proximity rules. |
| default | expire | uint32 | Sets a period of time during which dynamic proximity rules are valid. |
| default | method | enum | Sets the method used by the DPS server to calculate "metric" of the path between a local DNS and every DPS detector.Available values:
|
| default | weight1 | uint32 | |
| default | weight2 | uint32 | |
| default | weight3 | uint32 | |
| write_proximity_file | file_content | text | |
| write_proximity_file | write_proximity_file_to | enum | Available values:
|
| write_proximity_file | remote_server_ip | string | |
| write_proximity_file | user_name | string | |
| write_proximity_file | passwd | string | |
| write_proximity_file | file_path | string | |
| write_proximity_file | file_name | string |
{
"GlobalSettings": {
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"GlobalSettings": {
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"GlobalSettings": {
<field>:<value>,
}
}
{
<field_name>:<value>
}
When field name is specified in URL:
Notice: The fields not provided are left untouched.
{
<field_name1>:<value1>,
<field_name2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| field_name | URI | (optional) Target field name to update. Available field names are: enable, send, query, expire, method, weight1, weight2, weight3, file_content, write_proximity_file_to, remote_server_ip, user_name, passwd, file_path, file_name, |
| Field Name | Type | Description |
|---|---|---|
| enable | boolean | |
| send | uint32 | Sets the interval for the DPS server to send IP addresses of the local DNSs to DPS detectors. |
| query | uint32 | Sets the interval for the DPS server to get proximity data from DPS detectors to generate dynamic proximity rules. |
| expire | uint32 | Sets a period of time during which dynamic proximity rules are valid. |
| method | enum | Sets the method used by the DPS server to calculate "metric" of the path between a local DNS and every DPS detector.Available values:
|
| weight1 | uint32 | |
| weight2 | uint32 | |
| weight3 | uint32 | |
| write_proximity_file_to | enum | Available values:
|
| remote_server_ip | string | |
| user_name | string | |
| passwd | string | |
| file_path | string | |
| file_name | string |
All configuration fields and their values are replied:
{
"GlobalSettings": {
<field1>:<value1>,
<field2>:<value2>,
...
<field_group1>: {
<field3>:<value3>,
<field4>:<value4>,
...
},
<field_group2>: {
<field5>:<value5>,
<field6>:<value6>,
...
},
...
}
}