SDNS regions are created based on the locations where DNS queries come from.
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | region_name | string | SDNS logically divides DNS queries coming from various locations into different regions, which are called SDNS regions. |
| region_policy | reg_policy | asso | |
| remote_detector | rd | asso | |
| proximity_list | proximities | asso | |
| proximity_list | proximities_ipregion_rules | asso | |
| stats | matches | StorableField |
{
"Region": {
"meta": {
"abstract": false,
"verbose_name": SDNS Region,
},
"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 | SDNS logically divides DNS queries coming from various locations into different regions, which are called SDNS regions. |
{
"Region": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"targets": [<target>]
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| targets | string or list | specify the target asso you want to perform action on. Can be empty or not specified when there is no target asso needed. | ||||||||
| local_ip | ipaddr (Nested Field. It should be a dict.)
|
Format
{
"ipv4": xxxx
}
{
"ipv6": xxxx
}
|
{
"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. |
{
"Region": [
{
"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, region_policy, remote_detector, proximity_list, stats, 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, reg_policy, rd, proximities, proximities_ipregion_rules, matches, 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 | SDNS logically divides DNS queries coming from various locations into different regions, which are called SDNS regions. |
| region_policy | reg_policy | asso | |
| remote_detector | rd | asso | |
| proximity_list | proximities | asso | |
| proximity_list | proximities_ipregion_rules | asso | |
| stats | matches | StorableField |
{
"Region": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"Region": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"Region": {
"instance_id":<instance_id>,
<field>:<value>,
}
}
{
"msg": <success-or-error-msg>
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"Region": {
"instance_id":<instance_id>,
"reg_policy":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| name | string | |
| priority | uint32 | Sets the priority of the SDNS region policy. The greater the value, the higher the priority. |
{
"RegionPolicy": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"Region": {
"instance_id":<instance_id>,
"rd":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | 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. |
{
"RemoteDetector": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"Region": {
"instance_id":<instance_id>,
"proximities":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| source_ip | ipaddr | Sets the IP address on a subnet. |
| netmask | string | Sets the netmask or prefix length of the subnet. |
{
"StaticProximity": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|
{
"IPRegionProximity": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"Region": {
"instance_id":<instance_id>,
"proximities_ipregion_rules":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}