| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | type | enum | Available values:
|
| default | decision_rule | asso | The failover rule determines what failover action will be taken when the result of the associated health check condition is "Down". |
| default | unitname | asso | |
| default | ip | ipaddr | |
| default | 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:
|
| default | interval | int | Specifies the interval at which the health check is performed. |
| default | up_check_times | uint32 | Specifies the number of consecutive health check successes for determining that the health check result is "Up". |
| default | down_check_times | uint32 | Specifies the number of consecutive health check failures for determining that the health check result is "Down". |
{
"GatewayCondition": {
"meta": {
"abstract": false,
"verbose_name": Gateway HC Condition,
},
"fieldgroups": [
{
"fields": [
{
"verbose_name": field_verbose_name1,
"field_name": field_name1
},
...
],
"group_name": field_group_name1
},
...
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| unitname | asso | ||||||||||
| ip | ipaddr (Nested Field. It should be a dict.)
|
||||||||||
| 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>,
...
}
}
{
"GatewayCondition": [
{
"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, member, 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: type, decision_rule, unitname, ip, name, interval, up_check_times, down_check_times, Notice: There could only be one field_group_name or field_name in the URL. |
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | type | enum | Available values:
|
| default | decision_rule | asso | The failover rule determines what failover action will be taken when the result of the associated health check condition is "Down". |
| default | unitname | asso | |
| default | ip | ipaddr | |
| default | 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:
|
| default | interval | int | Specifies the interval at which the health check is performed. |
| default | up_check_times | uint32 | Specifies the number of consecutive health check successes for determining that the health check result is "Up". |
| default | 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>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"GatewayCondition": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"GatewayCondition": {
"instance_id":<instance_id>,
<field>:<value>,
}
}
{
"msg": <success-or-error-msg>
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"GatewayCondition": {
"instance_id":<instance_id>,
"decision_rule":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| action | enum | Available values:
|
{
"HADecisionRule": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"GatewayCondition": {
"instance_id":<instance_id>,
"unitname":<value>
}
}