This configuration page is used to add a DNS A or AAAA record for the specified host.
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | host_name | string | Sets a string in www.xyz.com format. The string should be enclose by double quotes if the wildcard '*' (to match 0 or more characters of the host name) is used. This parameter must not end with "." |
| default | ip | ipaddr | Sets an IP address of the service corresponding to the DNS host name. In the scenario using both LLB and SLB, its value can be the VIP of the virtual service. The values of the Hostname and IP Address fields constitute the A or AAAA record for this domain name. |
| default | weight | uint16 | Sets the weight of resource record for the LLB method "weighted round robin". |
| default | port | uint16 | Sets the server port number of the service corresponding to the DNS host name. This port number is used for health check. In the scenario using both LLB and SLB, its value can be the port number of the virtual service. |
| default | link | asso | If this parameter is not configured, the system will find the corresponding old link for it. |
| inbound_stats | total_query | StorableField | |
| inbound_stats | status | boolean | |
| inbound_stats | hits | StorableField |
{
"LLBDNSRecord": {
"meta": {
"abstract": false,
"verbose_name": LLB DNS Host,
},
"fieldgroups": [
{
"fields": [
{
"verbose_name": field_verbose_name1,
"field_name": field_name1
},
...
],
"group_name": field_group_name1
},
...
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| host_name | string | Sets a string in www.xyz.com format. The string should be enclose by double quotes if the wildcard '*' (to match 0 or more characters of the host name) is used. This parameter must not end with "." | |||||||||
| ip | ipaddr (Nested Field. It should be a dict.)
|
Sets an IP address of the service corresponding to the DNS host name. In the scenario using both LLB and SLB, its value can be the VIP of the virtual service. The values of the Hostname and IP Address fields constitute the A or AAAA record for this domain name. | |||||||||
| weight | uint16 | Sets the weight of resource record for the LLB method "weighted round robin". | |||||||||
| port | uint16 | Sets the server port number of the service corresponding to the DNS host name. This port number is used for health check. In the scenario using both LLB and SLB, its value can be the port number of the virtual service. | |||||||||
| link | asso | If this parameter is not configured, the system will find the corresponding old link for it. |
{
"LLBDNSRecord": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"LLBDNSRecord": [
{
"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, inbound_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: host_name, ip, weight, port, link, total_query, status, hits, Notice: There could only be one field_group_name or field_name in the URL. |
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | host_name | string | Sets a string in www.xyz.com format. The string should be enclose by double quotes if the wildcard '*' (to match 0 or more characters of the host name) is used. This parameter must not end with "." |
| default | ip | ipaddr | Sets an IP address of the service corresponding to the DNS host name. In the scenario using both LLB and SLB, its value can be the VIP of the virtual service. The values of the Hostname and IP Address fields constitute the A or AAAA record for this domain name. |
| default | weight | uint16 | Sets the weight of resource record for the LLB method "weighted round robin". |
| default | port | uint16 | Sets the server port number of the service corresponding to the DNS host name. This port number is used for health check. In the scenario using both LLB and SLB, its value can be the port number of the virtual service. |
| default | link | asso | If this parameter is not configured, the system will find the corresponding old link for it. |
| inbound_stats | total_query | StorableField | |
| inbound_stats | status | boolean | |
| inbound_stats | hits | StorableField |
{
"LLBDNSRecord": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"LLBDNSRecord": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"LLBDNSRecord": {
"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: weight, port, |
| Field Name | Type | Description |
|---|---|---|
| weight | uint16 | Sets the weight of resource record for the LLB method "weighted round robin". |
| port | uint16 | Sets the server port number of the service corresponding to the DNS host name. This port number is used for health check. In the scenario using both LLB and SLB, its value can be the port number of the virtual service. |
All configuration fields and their values are replied:
{
"LLBDNSRecord": {
"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 |
{
"LLBDNSRecord": {
"instance_id":<instance_id>,
"link":<value>
}
}