The real service group is a set of real service of the same type. Client requests hitting this group will be forwarded to the real services selected based on the group method.
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | group_name | string | |
| default | method | enum | Available values:
|
| default | activation | uint32 | Sets the number of healthy real services that are allowed to be used in the real service group. |
| default | enable | boolean | |
| default | protocol | string | |
| default | members | asso | |
| http2 | http2_enable | boolean | |
| l2_port_range | l2_port_range | asso | |
| policies | policies | asso | |
| timeout | timeout | int | Sets the timeout value of the session persistence for the real service group. |
| proxyip | ip_pools | asso | |
| healthcheck | healthchecks | asso | |
| statistics | hits | StorableField | |
| statistics | session_count | StorableField | |
| statistics | staticsession | StorableField |
{
"Group": {
"meta": {
"abstract": true,
"verbose_name": SLB Real Service Group,
},
"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/group/Group/meta |
| Request Data | None |
| Response Data | {
"Group": {
"meta": {
"abstract": true,
"verbose_name": "SLB Real Service Group"
},
"subclasses": [
{
"class_name": "RRGroup",
"verbose_name": "SLB Round Robin Service Group"
},
{
"class_name": "LCGroup",
"verbose_name": "SLB Least Connections Service Group"
},
{
"class_name": "SRGroup",
"verbose_name": "SLB Shortest Response Service Group"
},
{
"class_name": "SNMPGroup",
"verbose_name": "SLB SNMP Service Group"
},
{
"class_name": "HCGroup",
"verbose_name": "SLB Hash Cookie Service Group"
},
{
"class_name": "ICGroup",
"verbose_name": "SLB Insert Cookie Service Group"
},
{
"class_name": "RCGroup",
"verbose_name": "SLB Rewrite Cookie Service Group"
},
{
"class_name": "PCGroup",
"verbose_name": "SLB Persistent Cookie Service Group"
},
{
"class_name": "ECGroup",
"verbose_name": "SLB Embed Cookie Service Group"
},
{
"class_name": "HHGroup",
"verbose_name": "SLB Hash Header Service Group"
},
{
"class_name": "PHGroup",
"verbose_name": "SLB Persistent Hostname Service Group"
},
{
"class_name": "PUGroup",
"verbose_name": "SLB Persistent URL Service Group"
},
{
"class_name": "CHHGroup",
"verbose_name": "SLB Consistent Hash Header Service Group"
},
{
"class_name": "HQGroup",
"verbose_name": "SLB Hash Query Service Group"
},
{
"class_name": "L2RRGroup",
"verbose_name": "SLB L2 Round Robin Service Group"
},
{
"class_name": "L2HIGroup",
"verbose_name": "SLB L2 Hash IP Service Group"
},
{
"class_name": "L2CHIGroup",
"verbose_name": "SLB L2 Consistent Hash IP Service Group"
},
{
"class_name": "PIGroup",
"verbose_name": "SLB Persistent IP Service Group"
},
{
"class_name": "HIGroup",
"verbose_name": "SLB Hash IP Service Group"
},
{
"class_name": "CHIGroup",
"verbose_name": "SLB Consistent Hash IP Service Group"
},
{
"class_name": "HIPGroup",
"verbose_name": "SLB Hash IP Port Service Group"
},
{
"class_name": "LBGroup",
"verbose_name": "SLB Least Bandwidth Service Group"
},
{
"class_name": "SSLSIDGroup",
"verbose_name": "SLB SSL Session ID Service Group"
},
{
"class_name": "SIPCIDGroup",
"verbose_name": "SLB SIP Call ID Service Group"
},
{
"class_name": "SIPUIDGroup",
"verbose_name": "SLB SIP User ID Service Group"
},
{
"class_name": "RDPRTGroup",
"verbose_name": "SLB RDP Routing Token Service Group"
},
{
"class_name": "RADCHUGroup",
"verbose_name": "SLB Consistent Hash RADIUS Username Service Group"
},
{
"class_name": "RADCHSGroup",
"verbose_name": "SLB Consistent Hash RADIUS Session ID Service Group"
},
{
"class_name": "PROXGroup",
"verbose_name": "SLB Proximity Service Group"
},
{
"class_name": "DiametersidGroup",
"verbose_name": "SLB Diameter Session ID Service Group"
},
{
"class_name": "GeneralPersistenceGroup",
"verbose_name": "SLB General Persistence Service Group"
}
],
"fieldgroups": [
{
"fields": [
{
"verbose_name": "Group Name",
"field_name": "group_name"
},
{
"verbose_name": "Group Method",
"field_name": "method"
},
{
"verbose_name": "Number of Active Real Services",
"field_name": "activation"
},
{
"verbose_name": "Enable Group",
"field_name": "enable"
},
{
"verbose_name": "Protocol",
"field_name": "protocol"
},
{
"verbose_name": "Group Members",
"field_name": "members"
}
],
"group_name": "default"
},
{
"fields": [
{
"verbose_name": "HTTP2",
"field_name": "http2_enable"
}
],
"group_name": "http2"
},
{
"fields": [
{
"verbose_name": "Port Ranges",
"field_name": "l2_port_range"
}
],
"group_name": "l2_port_range"
},
{
"fields": [
{
"verbose_name": "Policies Binding to the Group",
"field_name": "policies"
}
],
"group_name": "policies"
},
{
"fields": [
{
"verbose_name": "Persistence Timeout",
"field_name": "timeout"
}
],
"group_name": "timeout"
},
{
"fields": [
{
"verbose_name": "IP Pools",
"field_name": "ip_pools"
}
],
"group_name": "proxyip"
},
{
"fields": [
{
"verbose_name": "Group Health Checks",
"field_name": "healthchecks"
}
],
"group_name": "healthcheck"
},
{
"fields": [
{
"verbose_name": "Hits",
"field_name": "hits"
},
{
"verbose_name": "Session Count",
"field_name": "session_count"
},
{
"verbose_name": "Static Session",
"field_name": "staticsession"
}
],
"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. Can be empty or not specified when there is no target asso needed. |
{
"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/group/Group/_Clear_Http2 |
| Request Data | {
"targets": "g2"
} |
| Response Data | {
"config_change": true,
"refresh_page": false,
"msg": ""
} |
| Comment | None |
{
"Group": [
{
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
},
...
]
}
| Method | GET |
|---|---|
| URL | https://10.8.6.91:9997/rest/apv/loadbalancing/slb/group/Group |
| Request Data | None |
| Response Data | {
"Group": [
{
"instance_id": "g3",
"group_name": "g3",
"method": "snmp",
"activation": 0,
"enable": true,
"protocol": " |
| Comment | None |
| Method | GET |
|---|---|
| URL | https://10.8.6.91:9997/rest/apv/loadbalancing/slb/group/Group?group_name=g3 |
| Request Data | None |
| Response Data | {
"Group": [
{
"instance_id": "g3",
"group_name": "g3",
"method": "snmp",
"activation": 0,
"enable": true,
"protocol": " |
| 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, http2, l2_port_range, policies, timeout, proxyip, healthcheck, 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: group_name, method, activation, enable, protocol, http2_enable, members, l2_port_range, policies, timeout, ip_pools, healthchecks, hits, session_count, staticsession, Notice: There could only be one field_group_name or field_name in the URL. |
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | group_name | string | |
| default | method | enum | Available values:
|
| default | activation | uint32 | Sets the number of healthy real services that are allowed to be used in the real service group. |
| default | enable | boolean | |
| default | protocol | string | |
| default | members | asso | |
| http2 | http2_enable | boolean | |
| l2_port_range | l2_port_range | asso | |
| policies | policies | asso | |
| timeout | timeout | int | Sets the timeout value of the session persistence for the real service group. |
| proxyip | ip_pools | asso | |
| healthcheck | healthchecks | asso | |
| statistics | hits | StorableField | |
| statistics | session_count | StorableField | |
| statistics | staticsession | StorableField |
{
"Group": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"Group": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"Group": {
"instance_id":<instance_id>,
<field>:<value>,
}
}
| Method | GET |
|---|---|
| URL | https://10.8.6.91:9997/rest/apv/loadbalancing/slb/group/Group/g2/default |
| Request Data | None |
| Response Data | {
"Group": {
"instance_id": "g2",
"group_name": "g2",
"method": "snmp",
"activation": 0,
"enable": true,
"protocol": " |
| Comment | None |
| Method | GET |
|---|---|
| URL | https://10.8.6.91:9997/rest/apv/loadbalancing/slb/group/Group/g2/method |
| Request Data | None |
| Response Data | {
"Group": {
"instance_id": "g2",
"method": "snmp"
}
} |
| Comment | None |
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"Group": {
"instance_id":<instance_id>,
"members":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| weight | uint32 | |
| cookie | string | Sets the value of the associated cookie for the group member. |
| url | url | Sets the string following the " |
| priority | uint32 | Sets the priority of the group member. The greater the value, the higher the priority. When the number of healthy real services is greater than the Number of Active Real Services, only the real services with larger priorities will be enabled. |
{
"GroupMember": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"Group": {
"instance_id":<instance_id>,
"l2_port_range":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| begin | port | |
| end | port | |
| protocol | enum | Available values:
|
| dir | enum | Available values:
|
{
"L2PortRange": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"Group": {
"instance_id":<instance_id>,
"policies":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|
{
"DefaultPolicy": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|
{
"BackupPolicy": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| name | string | |
| precedence | uint16 |
{
"RCPolicy": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| name | string | |
| precedence | uint16 |
{
"ICPolicy": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| name | string | |
| cookie_name | string | |
| precedence | uint16 |
{
"PCPolicy": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| name | string | |
| header_name | string | |
| header_pattern | string | This option is used to filter HTTP requests with the specified header's value matching this regular expression. Wildcards supported by this field include: ^: Matches the beginning of the string; $: Matches the end of the string; *: Matches any characters, but multiple consecutive asterisks are not allowed. |
| precedence | uint16 |
{
"HeaderPolicy": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| name | string | |
| regex | string | This option is used to filter HTTP requests with requested URLs matching this regular expression. Wildcards supported by this field include: ^: Matches the beginning of the string; $: Matches the end of the string; *: Matches any characters, but multiple consecutive asterisks are not allowed. |
| precedence | uint16 |
{
"RegexPolicy": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| name | string | |
| url_tag | string | This option is used to filter HTTP requests with the URL tag name in the URL query part matching this tag string. |
| precedence | uint16 |
{
"PUPolicy": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| name | string |
{
"HashURLPolicy": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| name | string | |
| host_name | string | This option is used to filter HTTP requests with the host name matching this string. |
| precedence | uint16 |
{
"QoSHostname": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| name | string | |
| qos_string | string | This option is used to filter HTTP requests with the requested URL matching this string. |
| precedence | uint16 |
{
"QoSURLPolicy": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| name | string | |
| prefix | string | Sets the start location of the string to be used as the session ID in the request body. |
| delimiter | string | Sets the delimiter of the string to be used as the session ID in the request body. |
| flag | enum | 0: The "Delimiter" string must exist right in front of "Prefix"; 1: The "Delimiter" string does not need to exist right in front of "Prefix".Available values:
|
| precedence | uint16 |
{
"QoSBody": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| name | string | |
| network_ip | ipaddr | |
| netmask_prefix | UnionField | |
| port_range | GroupField | |
| precedence | uint16 |
{
"QoSClientPortPolicy": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| name | string | |
| network_ip | ipaddr | |
| netmask_prefix | UnionField | |
| precedence | uint16 |
{
"QoSNetworkPolicy": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| name | string | |
| redirect_from_host | string | Sets the host name used to match the requests for redirection. |
{
"RedirectPolicy": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| name | string | |
| filetype | string | Sets the extension of the file requested by the RTSP request. |
{
"RTSPFileTypePolicy": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| name | string |
{
"RadiusSessIDPolicy": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| name | string |
{
"RadiusUsernamePolicy": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| name | string |
{
"DNSSecPolicy": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| name | string | |
| string | string | |
| precedence | uint16 |
{
"QosDiameterPolicy": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}