Real services are dedicated servers that provide services to clients, for example, delivery of HTTP content. Real services in one group provide the same type of service to clients and usually reside in the same physical location in a data center.
| 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 | |
| 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 |
{
"RealService": {
"meta": {
"abstract": true,
"verbose_name": SLB Real Service,
},
"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/rs/RealService/meta |
| Request Data | None |
| Response Data | {
"RealService": {
"meta": {
"abstract": true,
"verbose_name": "SLB Real Service"
},
"subclasses": [
{
"class_name": "L4L7RealService",
"verbose_name": "Layer 4 and Layer 7 Real Service"
},
{
"class_name": "IPRealService",
"verbose_name": "IP Real Service"
},
{
"class_name": "FWDMACRealService",
"verbose_name": "FWDMAC Real Service"
},
{
"class_name": "L2IPRealService",
"verbose_name": "Layer 2 IP Real Service"
},
{
"class_name": "L2MACRealService",
"verbose_name": "Layer 2 MAC Real Service"
}
],
"fieldgroups": [
{
"fields": [
{
"verbose_name": "Real Service Name",
"field_name": "service_name"
},
{
"verbose_name": "Real Service Type",
"field_name": "protocol"
},
{
"verbose_name": "Enable Real Service",
"field_name": "enable"
},
{
"verbose_name": "SSL Real Host",
"field_name": "ssl_host"
}
],
"group_name": "default"
},
{
"fields": [
{
"verbose_name": "Static Policy",
"field_name": "static_policy"
}
],
"group_name": "static_policy"
},
{
"fields": [
{
"verbose_name": "Belonging Groups",
"field_name": "group_members"
}
],
"group_name": "group_member"
},
{
"fields": [
{
"verbose_name": "Health Relation",
"field_name": "health_relation"
},
{
"verbose_name": "Health Checks",
"field_name": "health_checks"
}
],
"group_name": "health_check"
},
{
"fields": [
{
"verbose_name": "Active Status",
"field_name": "active_status"
},
{
"verbose_name": "Up/Down Status",
"field_name": "updown_status"
}
],
"group_name": "status"
},
{
"fields": [
{
"verbose_name": "Recovery Time",
"field_name": "recovery_time"
},
{
"verbose_name": "Warm-up Time",
"field_name": "warm_up_time"
}
],
"group_name": "activation"
},
{
"fields": [
{
"verbose_name": "Max Connections per Second",
"field_name": "max_cps"
},
{
"verbose_name": "Soft Bandwidth Limit",
"field_name": "soft_bandwidth"
},
{
"verbose_name": "Hard Bandwidth Limit",
"field_name": "hard_bandwidth"
}
],
"group_name": "limitations"
},
{
"fields": [
{
"verbose_name": "Keep Destination IPs Unchanged",
"field_name": "keepdip"
}
],
"group_name": "keepdip"
},
{
"fields": [
{
"verbose_name": "Persistence Static Sess",
"field_name": "persistence_static_sess"
}
],
"group_name": "persistence_static_sess"
},
{
"fields": [
{
"verbose_name": "Current Connection Count",
"field_name": "current_connection_count"
},
{
"verbose_name": "Outstanding Request Count",
"field_name": "outstanding_request"
},
{
"verbose_name": "Total Hits",
"field_name": "total_hits"
},
{
"verbose_name": "Total Bytes In",
"field_name": "total_bytes_in"
},
{
"verbose_name": "Total Bytes Out",
"field_name": "total_bytes_out"
},
{
"verbose_name": "Total Packets In",
"field_name": "total_packets_in"
},
{
"verbose_name": "Total Packets Out",
"field_name": "total_packets_out"
},
{
"verbose_name": "Average Bandwidth In",
"field_name": "average_bandwidth_in"
},
{
"verbose_name": "Average Bandwidth Out",
"field_name": "average_bandwidth_out"
},
{
"verbose_name": "Average Response Time",
"field_name": "average_response_time"
}
],
"group_name": "statistics"
}
]
}
} |
| Comment | None |
{
"targets": [<target>]
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| targets | string or list | specify the target asso you want to perform action on. And target asso can be one or more. |
{
"config_change": true|false,
"msg": <msg>
}
| Parameter | Type | Description |
|---|---|---|
| config_change | bool | Whether the action causes configuration change. |
| msg | sring | Empty when action is performed successfully, otherwise it represents the error info. |
| Method | POST |
|---|---|
| URL | https://10.8.6.91:9997/rest/apv/loadbalancing/slb/rs/RealService/_Enable |
| Request Data | {
"targets": "dns01"
} |
| Response Data | {
"config_change": true,
"refresh_page": false,
"msg": ""
} |
| Comment | None |
{
"targets": [<target>]
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| targets | string or list | specify the target asso you want to perform action on. And target asso can be one or more. |
{
"config_change": true|false,
"msg": <msg>
}
| Parameter | Type | Description |
|---|---|---|
| config_change | bool | Whether the action causes configuration change. |
| msg | sring | Empty when action is performed successfully, otherwise it represents the error info. |
| Method | POST |
|---|---|
| URL | https://10.8.6.91:9997/rest/apv/loadbalancing/slb/rs/RealService/_Disable |
| Request Data | {
"targets": "dns01"
} |
| Response Data | {
"config_change": true,
"refresh_page": false,
"msg": ""
} |
| Comment | None |
{
"RealService": [
{
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
},
...
]
}
| Method | GET |
|---|---|
| URL | https://10.8.6.91:9997/rest/apv/loadbalancing/slb/rs/RealService |
| Request Data | None |
| Response Data | {
"RealService": [
{
"instance_id": "http_test",
"service_name": "http_test",
"protocol": "http",
"enable": true,
"ip": "10.8.6.201",
"port": 80,
"max_conn": 1000,
"check_type_http": "icmp",
"hc_up": 3,
"hc_down": 3
},
{
"instance_id": "rs1",
"service_name": "rs1",
"protocol": "tcp",
"enable": true,
"ip": "10.8.6.92",
"port": 80,
"max_conn": 1000,
"check_type_tcp": "icmp",
"hc_up": 3,
"hc_down": 3
}
]
} |
| Comment | None |
| Method | GET |
|---|---|
| URL | https://10.8.6.91:9997/rest/apv/loadbalancing/slb/rs/RealService?protocol=http |
| Request Data | None |
| Response Data | {
"RealService": [
{
"instance_id": "http_test",
"service_name": "http_test",
"protocol": "http",
"enable": true,
"ip": "10.8.6.201",
"port": 80,
"max_conn": 1000,
"check_type_http": "icmp",
"hc_up": 3,
"hc_down": 3
}
]
} |
| 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, static_policy, group_member, health_check, status, activation, limitations, keepdip, persistence_static_sess, 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: 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, 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 | |
| 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 |
{
"RealService": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"RealService": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"RealService": {
"instance_id":<instance_id>,
<field>:<value>,
}
}
| Method | GET |
|---|---|
| URL | https://10.8.6.91:9997/rest/apv/loadbalancing/slb/rs/RealService/dns01/default |
| Request Data | None |
| Response Data | {
"RealService": {
"instance_id": "dns01",
"service_name": "dns01",
"protocol": "dns",
"enable": true,
"ip": "10.8.6.205",
"port": 53,
"max_conn": 1000,
"session_timeout": 60,
"check_type_dns": "icmp",
"hc_up": 3,
"hc_down": 3
}
} |
| Comment | None |
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"RealService": {
"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 |
{
"RealService": {
"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>
}