SDNS service refers to the IP address to which the SDNS host name can be resolved.
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | service_name | string | Sets the unique identifier for the SDNS service. |
| default | ip | ipaddr | Sets the IP address of the SDNS service. |
| default | port | port | Sets the port used for health check on the SDNS service. |
| default | enable | boolean | |
| status | status | string | |
| stats | hits | StorableField | |
| stats | monitor_count | StorableField | |
| healthcheck | health_relation | enum | Sets the relationship among the health check instances of an SDNS service.Available values:
|
| healthcheck | monitor | asso |
{
"Service": {
"meta": {
"abstract": false,
"verbose_name": SDNS Service,
},
"fieldgroups": [
{
"fields": [
{
"verbose_name": field_verbose_name1,
"field_name": field_name1
},
...
],
"group_name": field_group_name1
},
...
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| service_name | string | Sets the unique identifier for the SDNS service. | |||||||||
| ip | ipaddr (Nested Field. It should be a dict.)
|
Sets the IP address of the SDNS service. | |||||||||
| port | port | Sets the port used for health check on the SDNS service. | |||||||||
| enable | boolean |
{
"Service": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"Service": [
{
"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, stats, healthcheck, poolmember, 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: service_name, ip, port, enable, status, hits, monitor_count, health_relation, monitor, Notice: There could only be one field_group_name or field_name in the URL. |
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | service_name | string | Sets the unique identifier for the SDNS service. |
| default | ip | ipaddr | Sets the IP address of the SDNS service. |
| default | port | port | Sets the port used for health check on the SDNS service. |
| default | enable | boolean | |
| status | status | string | |
| stats | hits | StorableField | |
| stats | monitor_count | StorableField | |
| healthcheck | health_relation | enum | Sets the relationship among the health check instances of an SDNS service.Available values:
|
| healthcheck | monitor | asso |
{
"Service": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"Service": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"Service": {
"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: enable, health_relation, |
| Field Name | Type | Description |
|---|---|---|
| enable | boolean | |
| health_relation | enum | Sets the relationship among the health check instances of an SDNS service.Available values:
|
All configuration fields and their values are replied:
{
"Service": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
<field_group1>: {
<field3>:<value3>,
<field4>:<value4>,
...
},
<field_group2>: {
<field5>:<value5>,
<field6>:<value6>,
...
},
...
}
}