| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | name | string | |
| default | ip | ipaddr | Specifies the IP address of the HA unit, which is used for primary link communication with other HA units. |
| default | port | uint32 | Specifies the port used for primary link communication with other HA units. |
| default | links | asso | |
| default | ha_hc_gw | asso |
{
"HAUnit": {
"meta": {
"abstract": false,
"verbose_name": HA Unit,
},
"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 | ||||||||||
| ip | ipaddr (Nested Field. It should be a dict.)
|
Specifies the IP address of the HA unit, which is used for primary link communication with other HA units. | |||||||||
| port | uint32 | Specifies the port used for primary link communication with other HA units. |
{
"HAUnit": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"HAUnit": [
{
"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, tgt_fields, 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, ip, port, links, ha_hc_gw, 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 | |
| default | ip | ipaddr | Specifies the IP address of the HA unit, which is used for primary link communication with other HA units. |
| default | port | uint32 | Specifies the port used for primary link communication with other HA units. |
| default | links | asso | |
| default | ha_hc_gw | asso |
{
"HAUnit": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"HAUnit": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"HAUnit": {
"instance_id":<instance_id>,
<field>:<value>,
}
}
{
"msg": <success-or-error-msg>
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"HAUnit": {
"instance_id":<instance_id>,
"links":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| link_id | uint32 | |
| ip | ipaddr | |
| port | uint32 |
{
"HALink": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"HAUnit": {
"instance_id":<instance_id>,
"ha_hc_gw":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| ip | ipaddr | |
| name | enum | When being used by decision rules, the gateway health check condition can be referenced only by using the its condition ID.Available values:
|
| interval | int | Specifies the interval at which the health check is performed. |
| up_check_times | uint32 | Specifies the number of consecutive health check successes for determining that the health check result is "Up". |
| down_check_times | uint32 | Specifies the number of consecutive health check failures for determining that the health check result is "Down". |
{
"GatewayCondition": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}