HA group, also called HA floating IP group, consists of floating IP addresses (FIPs) that can be switched between HA units as a whole.
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | id | uint32 | |
| default | enable | boolean | |
| default | preempt | boolean | When the preemption mode is enabled, the status of the HA group on the HA unit with the highest group priority will be always set as "Active". |
| default | port | asso | |
| default | fip | asso | |
| default | fiprange | asso | |
| default | priority | asso | |
| stats | group_event_offline_stat | StorableField | |
| stats | group_event_online_stat | StorableField | |
| stats | group_event_priority_stat | StorableField |
{
"HAGroup": {
"meta": {
"abstract": false,
"verbose_name": HA Group,
},
"fieldgroups": [
{
"fields": [
{
"verbose_name": field_verbose_name1,
"field_name": field_name1
},
...
],
"group_name": field_group_name1
},
...
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| id | uint32 | |
| enable | boolean | |
| preempt | boolean | When the preemption mode is enabled, the status of the HA group on the HA unit with the highest group priority will be always set as "Active". |
{
"HAGroup": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"HAGroup": [
{
"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, 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: id, enable, preempt, port, fip, fiprange, priority, group_event_offline_stat, group_event_online_stat, group_event_priority_stat, Notice: There could only be one field_group_name or field_name in the URL. |
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | id | uint32 | |
| default | enable | boolean | |
| default | preempt | boolean | When the preemption mode is enabled, the status of the HA group on the HA unit with the highest group priority will be always set as "Active". |
| default | port | asso | |
| default | fip | asso | |
| default | fiprange | asso | |
| default | priority | asso | |
| stats | group_event_offline_stat | StorableField | |
| stats | group_event_online_stat | StorableField | |
| stats | group_event_priority_stat | StorableField |
{
"HAGroup": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"HAGroup": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"HAGroup": {
"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, preempt, |
| Field Name | Type | Description |
|---|---|---|
| enable | boolean | |
| preempt | boolean | When the preemption mode is enabled, the status of the HA group on the HA unit with the highest group priority will be always set as "Active". |
All configuration fields and their values are replied:
{
"HAGroup": {
"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 |
{
"HAGroup": {
"instance_id":<instance_id>,
"port":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|
{
"HAGroupPort": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"HAGroup": {
"instance_id":<instance_id>,
"fip":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| ip | ipaddr |
{
"HAGroupFip": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"HAGroup": {
"instance_id":<instance_id>,
"fiprange":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| start_ip | ipaddr | |
| end_ip | ipaddr |
{
"HAGroupFipRange": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"HAGroup": {
"instance_id":<instance_id>,
"priority":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| priority | uint32 |
{
"HAGroupPrority": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}