| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | service_name | string | |
| default | protocol | enum | Available values:
|
| default | enable | boolean | Traffic can be distributed to the real service only when the real service is enabled. |
| default | ssl_host | asso | |
| default | ip | ipaddr | |
| default | port | port | |
| default | max_conn | uint32 | |
| default | session_timeout | uint32 | |
| default | check_type | enum | Available values:
|
| default | check_type_http | enum | Available values:
|
| default | check_type_https | enum | Available values:
|
| default | check_type_dns | enum | Available values:
|
| default | check_type_siptcp | enum | Available values:
|
| default | check_type_sipudp | enum | Available values:
|
| default | check_type_rtsp | enum | Available values:
|
| default | check_type_radauth | enum | Available values:
|
| default | check_type_radacct | enum | Available values:
|
| default | check_type_tcp | enum | Available values:
|
| default | check_type_tcps | enum | Available values:
|
| default | check_type_udp | enum | Available values:
|
| default | hc_up | uint32 | |
| default | hc_down | uint32 | |
| static_policy | static_policy | asso | |
| health_check | health_relation | enum | Sets the relationship among the health checks of the real service (including the basic health check, additional health check and group health check).Available values:
|
| health_check | health_checks | asso | |
| status | active_status | boolean | |
| status | updown_status | boolean | |
| activation | recovery_time | int | Sets the time that the real service takes to change the status from Down to Up. In the recovery time, the real service will not receive any client requests. |
| activation | warm_up_time | int | Sets the time that the real service takes from receiving client requests to reaching its maximum connections. |
| limitations | max_cps | uint32 | |
| limitations | soft_bandwidth | uint32 | |
| limitations | hard_bandwidth | uint32 | |
| keepdip | keepdip | boolean | |
| statistics | current_connection_count | StorableField | |
| statistics | outstanding_request | StorableField | |
| statistics | total_hits | StorableField | |
| statistics | total_bytes_in | StorableField | |
| statistics | total_bytes_out | StorableField | |
| statistics | total_packets_in | StorableField | |
| statistics | total_packets_out | StorableField | |
| statistics | average_bandwidth_in | StorableField | |
| statistics | average_bandwidth_out | StorableField | |
| statistics | average_response_time | StorableField | |
| http_params | server_conn_reuse | boolean | Enables the real service to process multiple transactions on one server connection. |
| http_params | server_persist | boolean | Enables the system to add the Keep-Alive header to client requests before forwarding them to the real service. |
{
"L4L7RealService": {
"meta": {
"abstract": false,
"verbose_name": Layer 4 and Layer 7 Real Service,
},
"fieldgroups": [
{
"fields": [
{
"verbose_name": field_verbose_name1,
"field_name": field_name1
},
...
],
"group_name": field_group_name1
},
...
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| service_name | string | ||||||||||
| enable | boolean | Traffic can be distributed to the real service only when the real service is enabled. | |||||||||
| ip | ipaddr (Nested Field. It should be a dict.)
|
||||||||||
| port | port | ||||||||||
| max_conn | uint32 | ||||||||||
| session_timeout | uint32 | ||||||||||
| check_type | enum | Available values:
|
|||||||||
| check_type_http | enum | Available values:
|
|||||||||
| check_type_https | enum | Available values:
|
|||||||||
| check_type_dns | enum | Available values:
|
|||||||||
| check_type_siptcp | enum | Available values:
|
|||||||||
| check_type_sipudp | enum | Available values:
|
|||||||||
| check_type_rtsp | enum | Available values:
|
|||||||||
| check_type_radauth | enum | Available values:
|
|||||||||
| check_type_radacct | enum | Available values:
|
|||||||||
| check_type_tcp | enum | Available values:
|
|||||||||
| check_type_tcps | enum | Available values:
|
|||||||||
| check_type_udp | enum | Available values:
|
|||||||||
| hc_up | uint32 | ||||||||||
| hc_down | uint32 |
{
"L4L7RealService": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"L4L7RealService": [
{
"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, static_policy, group_member, health_check, status, activation, limitations, keepdip, persistence_static_sess, statistics, http_params, 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: service_name, protocol, enable, static_policy, health_relation, health_checks, active_status, updown_status, recovery_time, warm_up_time, max_cps, soft_bandwidth, hard_bandwidth, keepdip, current_connection_count, outstanding_request, total_hits, total_bytes_in, total_bytes_out, total_packets_in, total_packets_out, average_bandwidth_in, average_bandwidth_out, average_response_time, ssl_host, ip, port, max_conn, session_timeout, check_type, check_type_http, check_type_https, check_type_dns, check_type_siptcp, check_type_sipudp, check_type_rtsp, check_type_radauth, check_type_radacct, check_type_tcp, check_type_tcps, check_type_udp, hc_up, hc_down, server_conn_reuse, server_persist, Notice: There could only be one field_group_name or field_name in the URL. |
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | service_name | string | |
| default | protocol | enum | Available values:
|
| default | enable | boolean | Traffic can be distributed to the real service only when the real service is enabled. |
| default | ssl_host | asso | |
| default | ip | ipaddr | |
| default | port | port | |
| default | max_conn | uint32 | |
| default | session_timeout | uint32 | |
| default | check_type | enum | Available values:
|
| default | check_type_http | enum | Available values:
|
| default | check_type_https | enum | Available values:
|
| default | check_type_dns | enum | Available values:
|
| default | check_type_siptcp | enum | Available values:
|
| default | check_type_sipudp | enum | Available values:
|
| default | check_type_rtsp | enum | Available values:
|
| default | check_type_radauth | enum | Available values:
|
| default | check_type_radacct | enum | Available values:
|
| default | check_type_tcp | enum | Available values:
|
| default | check_type_tcps | enum | Available values:
|
| default | check_type_udp | enum | Available values:
|
| default | hc_up | uint32 | |
| default | hc_down | uint32 | |
| static_policy | static_policy | asso | |
| health_check | health_relation | enum | Sets the relationship among the health checks of the real service (including the basic health check, additional health check and group health check).Available values:
|
| health_check | health_checks | asso | |
| status | active_status | boolean | |
| status | updown_status | boolean | |
| activation | recovery_time | int | Sets the time that the real service takes to change the status from Down to Up. In the recovery time, the real service will not receive any client requests. |
| activation | warm_up_time | int | Sets the time that the real service takes from receiving client requests to reaching its maximum connections. |
| limitations | max_cps | uint32 | |
| limitations | soft_bandwidth | uint32 | |
| limitations | hard_bandwidth | uint32 | |
| keepdip | keepdip | boolean | |
| statistics | current_connection_count | StorableField | |
| statistics | outstanding_request | StorableField | |
| statistics | total_hits | StorableField | |
| statistics | total_bytes_in | StorableField | |
| statistics | total_bytes_out | StorableField | |
| statistics | total_packets_in | StorableField | |
| statistics | total_packets_out | StorableField | |
| statistics | average_bandwidth_in | StorableField | |
| statistics | average_bandwidth_out | StorableField | |
| statistics | average_response_time | StorableField | |
| http_params | server_conn_reuse | boolean | Enables the real service to process multiple transactions on one server connection. |
| http_params | server_persist | boolean | Enables the system to add the Keep-Alive header to client requests before forwarding them to the real service. |
{
"L4L7RealService": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"L4L7RealService": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"L4L7RealService": {
"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, health_relation, recovery_time, warm_up_time, max_cps, soft_bandwidth, hard_bandwidth, keepdip, ip, port, max_conn, session_timeout, check_type, check_type_http, check_type_https, check_type_dns, check_type_siptcp, check_type_sipudp, check_type_rtsp, check_type_radauth, check_type_radacct, check_type_tcp, check_type_tcps, check_type_udp, hc_up, hc_down, server_conn_reuse, server_persist, |
| Field Name | Type | Description |
|---|---|---|
| enable | boolean | Traffic can be distributed to the real service only when the real service is enabled. |
| ip | ipaddr | |
| port | port | |
| max_conn | uint32 | |
| session_timeout | uint32 | |
| check_type | enum | Available values:
|
| check_type_http | enum | Available values:
|
| check_type_https | enum | Available values:
|
| check_type_dns | enum | Available values:
|
| check_type_siptcp | enum | Available values:
|
| check_type_sipudp | enum | Available values:
|
| check_type_rtsp | enum | Available values:
|
| check_type_radauth | enum | Available values:
|
| check_type_radacct | enum | Available values:
|
| check_type_tcp | enum | Available values:
|
| check_type_tcps | enum | Available values:
|
| check_type_udp | enum | Available values:
|
| hc_up | uint32 | |
| hc_down | uint32 | |
| health_relation | enum | Sets the relationship among the health checks of the real service (including the basic health check, additional health check and group health check).Available values:
|
| recovery_time | int | Sets the time that the real service takes to change the status from Down to Up. In the recovery time, the real service will not receive any client requests. |
| warm_up_time | int | Sets the time that the real service takes from receiving client requests to reaching its maximum connections. |
| max_cps | uint32 | |
| soft_bandwidth | uint32 | |
| hard_bandwidth | uint32 | |
| keepdip | boolean | |
| server_conn_reuse | boolean | Enables the real service to process multiple transactions on one server connection. |
| server_persist | boolean | Enables the system to add the Keep-Alive header to client requests before forwarding them to the real service. |
All configuration fields and their values are replied:
{
"L4L7RealService": {
"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 |
{
"L4L7RealService": {
"instance_id":<instance_id>,
"static_policy":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|
{
"StaticPolicy": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"L4L7RealService": {
"instance_id":<instance_id>,
"health_checks":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| hc_name | string | |
| hc_up | uint8 | Sets the number of consecutive health check successes for setting the status of the real service as Up. |
| hc_down | uint8 | Sets the number of consecutive health check failures for setting the status of the real service as Down. |
| ip | ipaddr | Sets the destination IP of the health check. |
| port | port | Sets the destination port of the health check. |
{
"HTTPHealthCheck": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| hc_name | string | |
| hc_up | uint8 | Sets the number of consecutive health check successes for setting the status of the real service as Up. |
| hc_down | uint8 | Sets the number of consecutive health check failures for setting the status of the real service as Down. |
| ip | ipaddr | Sets the destination IP of the health check. |
| port | port | Sets the destination port of the health check. |
{
"LDAPHealthCheck": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| hc_name | string | |
| hc_up | uint8 | Sets the number of consecutive health check successes for setting the status of the real service as Up. |
| hc_down | uint8 | Sets the number of consecutive health check failures for setting the status of the real service as Down. |
| ip | ipaddr | Sets the destination IP of the health check. |
| port | port | Sets the destination port of the health check. |
{
"TCPHealthCheck": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| hc_name | string | |
| hc_up | uint8 | Sets the number of consecutive health check successes for setting the status of the real service as Up. |
| hc_down | uint8 | Sets the number of consecutive health check failures for setting the status of the real service as Down. |
| ip | ipaddr | Sets the destination IP of the health check. |
| port | port | Sets the destination port of the health check. |
{
"TCPSHealthCheck": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| hc_name | string | |
| hc_up | uint8 | Sets the number of consecutive health check successes for setting the status of the real service as Up. |
| hc_down | uint8 | Sets the number of consecutive health check failures for setting the status of the real service as Down. |
| ip | ipaddr | Sets the destination IP of the health check. |
| port | port | Sets the destination port of the health check. |
{
"UDPHealthCheck": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| hc_name | string | |
| hc_up | uint8 | Sets the number of consecutive health check successes for setting the status of the real service as Up. |
| hc_down | uint8 | Sets the number of consecutive health check failures for setting the status of the real service as Down. |
| ip | ipaddr | Sets the destination IP of the health check. |
| port | port | Sets the destination port of the health check. |
{
"ICMPHealthCheck": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| hc_name | string | |
| hc_up | uint8 | Sets the number of consecutive health check successes for setting the status of the real service as Up. |
| hc_down | uint8 | Sets the number of consecutive health check failures for setting the status of the real service as Down. |
| ip | ipaddr | Sets the destination IP of the health check. |
| port | port | Sets the destination port of the health check. |
{
"DNSHealthCheck": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| hc_name | string | |
| hc_up | uint8 | Sets the number of consecutive health check successes for setting the status of the real service as Up. |
| hc_down | uint8 | Sets the number of consecutive health check failures for setting the status of the real service as Down. |
| ip | ipaddr | Sets the destination IP of the health check. |
| port | port | Sets the destination port of the health check. |
{
"SIPTCPHealthCheck": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| hc_name | string | |
| hc_up | uint8 | Sets the number of consecutive health check successes for setting the status of the real service as Up. |
| hc_down | uint8 | Sets the number of consecutive health check failures for setting the status of the real service as Down. |
| ip | ipaddr | Sets the destination IP of the health check. |
| port | port | Sets the destination port of the health check. |
{
"SIPUDPHealthCheck": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| hc_name | string | |
| hc_up | uint8 | Sets the number of consecutive health check successes for setting the status of the real service as Up. |
| hc_down | uint8 | Sets the number of consecutive health check failures for setting the status of the real service as Down. |
| ip | ipaddr | Sets the destination IP of the health check. |
| port | port | Sets the destination port of the health check. |
{
"RTSPTCPHealthCheck": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| hc_name | string | |
| hc_up | uint8 | Sets the number of consecutive health check successes for setting the status of the real service as Up. |
| hc_down | uint8 | Sets the number of consecutive health check failures for setting the status of the real service as Down. |
| ip | ipaddr | Sets the destination IP of the health check. |
| port | port | Sets the destination port of the health check. |
{
"MYSQLDBHealthCheck": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| hc_name | string | |
| hc_up | uint8 | Sets the number of consecutive health check successes for setting the status of the real service as Up. |
| hc_down | uint8 | Sets the number of consecutive health check failures for setting the status of the real service as Down. |
| ip | ipaddr | Sets the destination IP of the health check. |
| port | port | Sets the destination port of the health check. |
{
"MYSQLDBSHealthCheck": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| hc_name | string | |
| hc_up | uint8 | Sets the number of consecutive health check successes for setting the status of the real service as Up. |
| hc_down | uint8 | Sets the number of consecutive health check failures for setting the status of the real service as Down. |
| ip | ipaddr | Sets the destination IP of the health check. |
| port | port | Sets the destination port of the health check. |
{
"MSSQLDBHealthCheck": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| hc_name | string | |
| hc_up | uint8 | Sets the number of consecutive health check successes for setting the status of the real service as Up. |
| hc_down | uint8 | Sets the number of consecutive health check failures for setting the status of the real service as Down. |
| ip | ipaddr | Sets the destination IP of the health check. |
| port | port | Sets the destination port of the health check. |
{
"MSSQLDBSHealthCheck": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| hc_name | string | |
| hc_up | uint8 | Sets the number of consecutive health check successes for setting the status of the real service as Up. |
| hc_down | uint8 | Sets the number of consecutive health check failures for setting the status of the real service as Down. |
| ip | ipaddr | Sets the destination IP of the health check. |
| port | port | Sets the destination port of the health check. |
| secret_string | string | Sets the secret shared with the RADIUS server. |
| username | string | Sets the username used to log into the RADIUS server. |
| password | string | Sets the password used to log into the RADIUS server. |
| resp_code | enum | Available values:
|
| attr_list | ListField | Adds a list of RADIUS attributes used for the RADIUS authentication. |
{
"RadiusAuthHealthCheck": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| hc_name | string | |
| hc_up | uint8 | Sets the number of consecutive health check successes for setting the status of the real service as Up. |
| hc_down | uint8 | Sets the number of consecutive health check failures for setting the status of the real service as Down. |
| ip | ipaddr | Sets the destination IP of the health check. |
| port | port | Sets the destination port of the health check. |
| secret_string | string | Sets the secret shared with the RADIUS server. |
| resp_code | uint16 | 5: Radius Accounting-Response |
{
"RadiusAcctHealthCheck": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| hc_name | string | |
| hc_up | uint8 | Sets the number of consecutive health check successes for setting the status of the real service as Up. |
| hc_down | uint8 | Sets the number of consecutive health check failures for setting the status of the real service as Down. |
| ip | ipaddr | Sets the destination IP of the health check. |
| port | port | Sets the destination port of the health check. |
{
"ScriptHealthCheck": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}