| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | enable | boolean | |
| default | interval | int | Sets the interval between health checks of the real service. |
| default | timeout | int | Sets the maximum time between the health check request and response of the real service. |
| default | failover | boolean | Enables the real service to be switched to the backup node in clustering scenario when all the real service associated with the cluster VIP become unavailable on the master node. |
| default | failover_retries | uint16 | Sets the maximum times that the master node retries to provide services before the automatic failover is carried out. |
| default | early_warning | int | Sets the threshold of the real service response time in milliseconds for the Health Early Warning function. When the threshold is non-zero, this function is enabled. When this function is enabled, the system will record the number of times when a real service's response time exceeds the threshold. If the number is 2 to the power of 0, 1, 2, 3... or n (1, 2, 4, 8...), the system will generate a "warning message" to notify the administrator that this real service is abnormal. |
| default | l2_route | boolean | Enables the health check requests of Layer 2 real services to be sent according to the route table. If disabled, health check requests of Layer 2 real services are sent to the MAC addresses corresponding to Layer 2 real services. |
| default | ipreflect | asso |
{
"HCGlobalSettings": {
"meta": {
"abstract": false,
"verbose_name": General Health Check Settings,
},
"fieldgroups": [
{
"fields": [
{
"verbose_name": field_verbose_name1,
"field_name": field_name1
},
...
],
"group_name": field_group_name1
},
...
]
}
}
| Parameter | Type | Description |
|---|---|---|
| field_group_name | URI | (optional) Target field group name to query. Available names are: default, 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: enable, interval, timeout, failover, failover_retries, early_warning, l2_route, ipreflect, Notice: There could only be one field_group_name or field_name in the URL. |
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | enable | boolean | |
| default | interval | int | Sets the interval between health checks of the real service. |
| default | timeout | int | Sets the maximum time between the health check request and response of the real service. |
| default | failover | boolean | Enables the real service to be switched to the backup node in clustering scenario when all the real service associated with the cluster VIP become unavailable on the master node. |
| default | failover_retries | uint16 | Sets the maximum times that the master node retries to provide services before the automatic failover is carried out. |
| default | early_warning | int | Sets the threshold of the real service response time in milliseconds for the Health Early Warning function. When the threshold is non-zero, this function is enabled. When this function is enabled, the system will record the number of times when a real service's response time exceeds the threshold. If the number is 2 to the power of 0, 1, 2, 3... or n (1, 2, 4, 8...), the system will generate a "warning message" to notify the administrator that this real service is abnormal. |
| default | l2_route | boolean | Enables the health check requests of Layer 2 real services to be sent according to the route table. If disabled, health check requests of Layer 2 real services are sent to the MAC addresses corresponding to Layer 2 real services. |
| default | ipreflect | asso |
{
"HCGlobalSettings": {
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"HCGlobalSettings": {
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"HCGlobalSettings": {
<field>:<value>,
}
}
{
<field_name>:<value>
}
When field name is specified in URL:
Notice: The fields not provided are left untouched.
{
<field_name1>:<value1>,
<field_name2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| field_name | URI | (optional) Target field name to update. Available field names are: enable, interval, timeout, failover, failover_retries, early_warning, l2_route, ipreflect, |
| Field Name | Type | Description |
|---|---|---|
| enable | boolean | |
| interval | int | Sets the interval between health checks of the real service. |
| timeout | int | Sets the maximum time between the health check request and response of the real service. |
| failover | boolean | Enables the real service to be switched to the backup node in clustering scenario when all the real service associated with the cluster VIP become unavailable on the master node. |
| failover_retries | uint16 | Sets the maximum times that the master node retries to provide services before the automatic failover is carried out. |
| early_warning | int | Sets the threshold of the real service response time in milliseconds for the Health Early Warning function. When the threshold is non-zero, this function is enabled. When this function is enabled, the system will record the number of times when a real service's response time exceeds the threshold. If the number is 2 to the power of 0, 1, 2, 3... or n (1, 2, 4, 8...), the system will generate a "warning message" to notify the administrator that this real service is abnormal. |
| l2_route | boolean | Enables the health check requests of Layer 2 real services to be sent according to the route table. If disabled, health check requests of Layer 2 real services are sent to the MAC addresses corresponding to Layer 2 real services. |
All configuration fields and their values are replied:
{
"HCGlobalSettings": {
<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 |
{
"HCGlobalSettings": {
"instance_id":<instance_id>,
"ipreflect":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| reflector_name | string | Sets the name of the Layer 2 SLB health check reflector, which responds to the received Layer 2 SLB health check requests. |
| ip | ip4addr | |
| port | port | |
| protocol | enum | Available values:
|
{
"IPReflect": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}