SDNS hosts refer to the domain names in the DNS queries to be resolved by SDNS.
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | name | string | Its value must be a string of 1 to 128 characters in the format of "www.xyz.com" and every section separated by "." cannot be longer than 63 characters. The host name does not support the wildcard "*" or any other special characters and cannot end up with the character ".". |
| default | ttl | uint32 | Sets the length of time that the resource records for the host name will be cached. |
| def_policy | def_policy | asso | |
| dnssec_stats | dnssec_stats | clitext | |
| stats | host_hits | StorableField | |
| stats | def_hits | StorableField | |
| stats | reg_policy_hits | StorableField |
{
"Host": {
"meta": {
"abstract": false,
"verbose_name": SDNS Hosts,
},
"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 | Its value must be a string of 1 to 128 characters in the format of "www.xyz.com" and every section separated by "." cannot be longer than 63 characters. The host name does not support the wildcard "*" or any other special characters and cannot end up with the character ".". |
| ttl | uint32 | Sets the length of time that the resource records for the host name will be cached. |
{
"Host": {
"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. |
{
"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. |
{
"Host": [
{
"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, def_policy, def_dnssec, zoon_signed, dnssec_stats, 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: name, ttl, def_policy, dnssec_stats, host_hits, def_hits, reg_policy_hits, 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 | Its value must be a string of 1 to 128 characters in the format of "www.xyz.com" and every section separated by "." cannot be longer than 63 characters. The host name does not support the wildcard "*" or any other special characters and cannot end up with the character ".". |
| default | ttl | uint32 | Sets the length of time that the resource records for the host name will be cached. |
| def_policy | def_policy | asso | |
| dnssec_stats | dnssec_stats | clitext | |
| stats | host_hits | StorableField | |
| stats | def_hits | StorableField | |
| stats | reg_policy_hits | StorableField |
{
"Host": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"Host": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"Host": {
"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: ttl, |
| Field Name | Type | Description |
|---|---|---|
| ttl | uint32 | Sets the length of time that the resource records for the host name will be cached. |
All configuration fields and their values are replied:
{
"Host": {
"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 |
{
"Host": {
"instance_id":<instance_id>,
"def_policy":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|
{
"DefaultPolicy": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
{
<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>
}