| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | hc_name | string | |
| default | real_service | asso | |
| default | type | enum | Available values:
|
| default | hc_up | uint8 | Sets the number of consecutive health check successes for setting the status of the real service as Up. |
| default | hc_down | uint8 | Sets the number of consecutive health check failures for setting the status of the real service as Down. |
| default | ip | ipaddr | Sets the destination IP of the health check. |
| default | port | port | Sets the destination port of the health check. |
| status | update_time | string | |
| status | health | boolean | |
| status | latest_health_status | boolean | |
| status | latest_health_status_cause | string | |
| status | latest_up | string | |
| status | latest_down | string | |
| statistics | times_server_up | StorableField | |
| statistics | times_server_down | StorableField | |
| statistics | connections_attempted | StorableField | |
| statistics | connections_succeeded | StorableField | |
| statistics | connections_failed_not_time_out | StorableField | |
| statistics | connections_failed_time_out | StorableField |
{
"HealthCheck": {
"meta": {
"abstract": true,
"verbose_name": SLB Health Check,
},
"subclasses": [
{
"class_name": class_name1,
"verbose_name": verbose_name1
},
...
],
"fieldgroups": [
{
"fields": [
{
"verbose_name": field_verbose_name1,
"field_name": field_name1
},
...
],
"group_name": field_group_name1
},
...
]
}
}
| Method | GET |
|---|---|
| URL | https://10.8.6.91:9997/rest/apv/loadbalancing/slb/healthcheck/HealthCheck/meta |
| Request Data | None |
| Response Data | {
"HealthCheck": {
"meta": {
"abstract": true,
"verbose_name": "SLB Health Check"
},
"subclasses": [
{
"class_name": "HTTPHealthCheck",
"verbose_name": "HTTP(S) Health Check"
},
{
"class_name": "LDAPHealthCheck",
"verbose_name": "LDAP Health Check"
},
{
"class_name": "TCPHealthCheck",
"verbose_name": "TCP Health Check"
},
{
"class_name": "TCPSHealthCheck",
"verbose_name": "TCPS Health Check"
},
{
"class_name": "UDPHealthCheck",
"verbose_name": "UDP Health Check"
},
{
"class_name": "ICMPHealthCheck",
"verbose_name": "ICMP Health Check"
},
{
"class_name": "DNSHealthCheck",
"verbose_name": "DNS Health Check"
},
{
"class_name": "SIPTCPHealthCheck",
"verbose_name": "SIP over TCP Health Check"
},
{
"class_name": "SIPUDPHealthCheck",
"verbose_name": "SIP over UDP Health Check"
},
{
"class_name": "RTSPTCPHealthCheck",
"verbose_name": "RTSP over TCP Health Check"
},
{
"class_name": "MYSQLDBHealthCheck",
"verbose_name": "MySQL DB Health Check"
},
{
"class_name": "MYSQLDBSHealthCheck",
"verbose_name": "MySQL DBS Health Check"
},
{
"class_name": "MSSQLDBHealthCheck",
"verbose_name": "MsSQL DB Health Check"
},
{
"class_name": "MSSQLDBSHealthCheck",
"verbose_name": "MsSQL DBS Health Check"
},
{
"class_name": "RadiusAuthHealthCheck",
"verbose_name": "RADIUS Authentication Health Check"
},
{
"class_name": "RadiusAcctHealthCheck",
"verbose_name": "RADIUS Accounting Health Check"
},
{
"class_name": "ScriptHealthCheck",
"verbose_name": "Script Health Check"
}
],
"fieldgroups": [
{
"fields": [
{
"verbose_name": "Health Check Name",
"field_name": "hc_name"
},
{
"verbose_name": "Real Service",
"field_name": "real_service"
},
{
"verbose_name": "Health Check Type",
"field_name": "type"
},
{
"verbose_name": "Builtin",
"field_name": "builtin"
},
{
"verbose_name": "Up Check Times",
"field_name": "hc_up"
},
{
"verbose_name": "Down Check Times",
"field_name": "hc_down"
},
{
"verbose_name": "Health Check IP",
"field_name": "ip"
},
{
"verbose_name": "Health Check Port",
"field_name": "port"
},
{
"verbose_name": " ",
"field_name": "healthcheck_name"
},
{
"verbose_name": "Health Status",
"field_name": "health_flag"
}
],
"group_name": "default"
},
{
"fields": [
{
"verbose_name": "Update Time",
"field_name": "update_time"
},
{
"verbose_name": "Health Status",
"field_name": "health"
},
{
"verbose_name": "Latest Health Status",
"field_name": "latest_health_status"
},
{
"verbose_name": "Latest Health Status Cause",
"field_name": "latest_health_status_cause"
},
{
"verbose_name": "Latest Up",
"field_name": "latest_up"
},
{
"verbose_name": "Latest Down",
"field_name": "latest_down"
}
],
"group_name": "status"
},
{
"fields": [
{
"verbose_name": "Up Check Times",
"field_name": "times_server_up"
},
{
"verbose_name": "Down Check Times",
"field_name": "times_server_down"
},
{
"verbose_name": "Connections Attempted",
"field_name": "connections_attempted"
},
{
"verbose_name": "Connections Succeeded",
"field_name": "connections_succeeded"
},
{
"verbose_name": "Non-Timeout Connection Failures",
"field_name": "connections_failed_not_time_out"
},
{
"verbose_name": "Timeout Connection Failures",
"field_name": "connections_failed_time_out"
}
],
"group_name": "statistics"
}
]
}
} |
| Comment | None |
{
"HealthCheck": [
{
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
},
...
]
}
| Method | GET |
|---|---|
| URL | https://10.8.6.91:9997/rest/apv/loadbalancing/slb/healthcheck/HealthCheck |
| Request Data | None |
| Response Data | {
"HealthCheck": [
{
"instance_id": "Built-in HealthCheck of rs1",
"hc_name": "Built-in HealthCheck of rs1",
"real_service": "rs1",
"type": "icmp",
"hc_up": 3,
"hc_down": 3,
"ip": "10.8.6.92",
"port": 80
},
{
"instance_id": "Built-in HealthCheck of http_test",
"hc_name": "Built-in HealthCheck of http_test",
"real_service": "http_test",
"type": "icmp",
"hc_up": 3,
"hc_down": 3,
"ip": "10.8.6.201",
"port": 80
},
{
"instance_id": "Built-in HealthCheck of dns01",
"hc_name": "Built-in HealthCheck of dns01",
"real_service": "dns01",
"type": "icmp",
"hc_up": 3,
"hc_down": 3,
"ip": "10.8.6.205",
"port": 53
}
]
} |
| Comment | None |
| Method | GET |
|---|---|
| URL | https://10.8.6.91:9997/rest/apv/loadbalancing/slb/healthcheck/HealthCheck?ip=10.8.6.92 |
| Request Data | None |
| Response Data | {
"HealthCheck": [
{
"instance_id": "Built-in HealthCheck of rs1",
"hc_name": "Built-in HealthCheck of rs1",
"real_service": "rs1",
"type": "icmp",
"hc_up": 3,
"hc_down": 3,
"ip": "10.8.6.92",
"port": 80
}
]
} |
| Comment | None |
| 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, status, statistics, 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: hc_name, real_service, type, hc_up, hc_down, ip, port, update_time, health, latest_health_status, latest_health_status_cause, latest_up, latest_down, times_server_up, times_server_down, connections_attempted, connections_succeeded, connections_failed_not_time_out, connections_failed_time_out, Notice: There could only be one field_group_name or field_name in the URL. |
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | hc_name | string | |
| default | real_service | asso | |
| default | type | enum | Available values:
|
| default | hc_up | uint8 | Sets the number of consecutive health check successes for setting the status of the real service as Up. |
| default | hc_down | uint8 | Sets the number of consecutive health check failures for setting the status of the real service as Down. |
| default | ip | ipaddr | Sets the destination IP of the health check. |
| default | port | port | Sets the destination port of the health check. |
| status | update_time | string | |
| status | health | boolean | |
| status | latest_health_status | boolean | |
| status | latest_health_status_cause | string | |
| status | latest_up | string | |
| status | latest_down | string | |
| statistics | times_server_up | StorableField | |
| statistics | times_server_down | StorableField | |
| statistics | connections_attempted | StorableField | |
| statistics | connections_succeeded | StorableField | |
| statistics | connections_failed_not_time_out | StorableField | |
| statistics | connections_failed_time_out | StorableField |
{
"HealthCheck": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"HealthCheck": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"HealthCheck": {
"instance_id":<instance_id>,
<field>:<value>,
}
}
| Method | GET |
|---|---|
| URL | https://10.8.6.91:9997/rest/apv/loadbalancing/slb/healthcheck/HealthCheck/Built-in HealthCheck of rs1/default |
| Request Data | None |
| Response Data | {
"HealthCheck": {
"instance_id": "Built-in HealthCheck of rs1",
"hc_name": "Built-in HealthCheck of rs1",
"real_service": "rs1",
"type": "icmp",
"hc_up": 3,
"hc_down": 3,
"ip": "10.8.6.92",
"port": 80
}
} |
| Comment | None |
| Method | GET |
|---|---|
| URL | https://10.8.6.91:9997/rest/apv/loadbalancing/slb/healthcheck/HealthCheck/Built-in HealthCheck of rs1/port |
| Request Data | None |
| Response Data | {
"HealthCheck": {
"instance_id": "Built-in HealthCheck of rs1",
"port": 80
}
} |
| Comment | None |
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"HealthCheck": {
"instance_id":<instance_id>,
"real_service":<value>
}
}