| 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 | |
| default | session_id_type | enum | Available values:
|
| default | first_choice_method | enum | Available values:
|
| default | threshold | uint32 | |
| http2 | http2_enable | boolean | |
| l2_port_range | l2_port_range | asso | |
| policies | policies | asso | |
| proxyip | ip_pools | asso | |
| healthcheck | healthchecks | asso | |
| statistics | hits | StorableField | |
| statistics | session_count | StorableField | |
| statistics | staticsession | StorableField | |
| request_header | req_header_name | string | |
| request_header | req_header_prefix | string | Sets the start location of the string in the HTTP request header from which the session ID will be obtained. |
| request_header | req_header_delimiter | string | Sets the delimiter of the string in the HTTP request header from which the session ID will be obtained. |
| request_header | req_header_delimiter_required | boolean | Sets whether the delimiter needs to appear right in the front of "Prefix". |
| request_cookie | req_cookie_name | string | |
| request_urlquery | req_query_name | string | |
| request_body | req_body_prefix | string | Sets the start location of the string in the HTTP request body from which the session ID will be obtained. |
| request_body | req_body_delimiter | string | Sets the delimiter of the string in the HTTP request body from which the session ID will be obtained. |
| request_body | req_body_delimiter_required | boolean | Sets whether the delimiter needs to appear right in the front of "Prefix". |
| response_header | rsp_header_name | string | |
| response_header | rsp_header_prefix | string | Sets the start location of the string in the HTTP response header from which the session ID will be obtained. |
| response_header | rsp_header_delimiter | string | Sets the delimiter of the string in the HTTP response header from which the session ID will be obtained. |
| response_header | rsp_header_delimiter_required | boolean | Sets whether the delimiter needs to appear right in the front of "Prefix". |
| response_cookie | rsp_cookie_name | string | |
| response_body | rsp_body_prefix | string | Sets the start location of the string in the HTTP response body from which the session ID will be obtained. |
| response_body | rsp_body_delimiter | string | Sets the delimiter of the string in the HTTP response body from which the session ID will be obtained. |
| response_body | rsp_body_delimiter_required | boolean | |
| value | value_offset | uint8 | Sets the offset when the system obtains the session ID from the corresponding string. |
| value | value_length | uint8 | Sets the length of the session ID. |
| timeout | per_timeout | int | |
| timeout | timeout_mode | enum | Available values:
|
| dynamic_session_table | dynamic_sessions | asso | |
| dynamic_session_table | static_sessions | asso |
{
"GeneralPersistenceGroup": {
"meta": {
"abstract": false,
"verbose_name": SLB General Persistence Service Group,
},
"fieldgroups": [
{
"fields": [
{
"verbose_name": field_verbose_name1,
"field_name": field_name1
},
...
],
"group_name": field_group_name1
},
...
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| group_name | string | |
| activation | uint32 | Sets the number of healthy real services that are allowed to be used in the real service group. |
| enable | boolean | |
| session_id_type | enum | Available values:
|
| first_choice_method | enum | Available values:
|
| threshold | uint32 |
{
"GeneralPersistenceGroup": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"GeneralPersistenceGroup": [
{
"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, http2, l2_port_range, policies, proxyip, healthcheck, statistics, request_header, request_cookie, request_urlquery, request_body, response_header, response_cookie, response_body, value, timeout, dynamic_session_table, 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, ip_pools, healthchecks, hits, session_count, staticsession, session_id_type, first_choice_method, threshold, req_header_name, req_header_prefix, req_header_delimiter, req_header_delimiter_required, req_cookie_name, req_query_name, req_body_prefix, req_body_delimiter, req_body_delimiter_required, rsp_header_name, rsp_header_prefix, rsp_header_delimiter, rsp_header_delimiter_required, rsp_cookie_name, rsp_body_prefix, rsp_body_delimiter, rsp_body_delimiter_required, value_offset, value_length, per_timeout, timeout_mode, dynamic_sessions, static_sessions, 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 | |
| default | session_id_type | enum | Available values:
|
| default | first_choice_method | enum | Available values:
|
| default | threshold | uint32 | |
| http2 | http2_enable | boolean | |
| l2_port_range | l2_port_range | asso | |
| policies | policies | asso | |
| proxyip | ip_pools | asso | |
| healthcheck | healthchecks | asso | |
| statistics | hits | StorableField | |
| statistics | session_count | StorableField | |
| statistics | staticsession | StorableField | |
| request_header | req_header_name | string | |
| request_header | req_header_prefix | string | Sets the start location of the string in the HTTP request header from which the session ID will be obtained. |
| request_header | req_header_delimiter | string | Sets the delimiter of the string in the HTTP request header from which the session ID will be obtained. |
| request_header | req_header_delimiter_required | boolean | Sets whether the delimiter needs to appear right in the front of "Prefix". |
| request_cookie | req_cookie_name | string | |
| request_urlquery | req_query_name | string | |
| request_body | req_body_prefix | string | Sets the start location of the string in the HTTP request body from which the session ID will be obtained. |
| request_body | req_body_delimiter | string | Sets the delimiter of the string in the HTTP request body from which the session ID will be obtained. |
| request_body | req_body_delimiter_required | boolean | Sets whether the delimiter needs to appear right in the front of "Prefix". |
| response_header | rsp_header_name | string | |
| response_header | rsp_header_prefix | string | Sets the start location of the string in the HTTP response header from which the session ID will be obtained. |
| response_header | rsp_header_delimiter | string | Sets the delimiter of the string in the HTTP response header from which the session ID will be obtained. |
| response_header | rsp_header_delimiter_required | boolean | Sets whether the delimiter needs to appear right in the front of "Prefix". |
| response_cookie | rsp_cookie_name | string | |
| response_body | rsp_body_prefix | string | Sets the start location of the string in the HTTP response body from which the session ID will be obtained. |
| response_body | rsp_body_delimiter | string | Sets the delimiter of the string in the HTTP response body from which the session ID will be obtained. |
| response_body | rsp_body_delimiter_required | boolean | |
| value | value_offset | uint8 | Sets the offset when the system obtains the session ID from the corresponding string. |
| value | value_length | uint8 | Sets the length of the session ID. |
| timeout | per_timeout | int | |
| timeout | timeout_mode | enum | Available values:
|
| dynamic_session_table | dynamic_sessions | asso | |
| dynamic_session_table | static_sessions | asso |
{
"GeneralPersistenceGroup": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"GeneralPersistenceGroup": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"GeneralPersistenceGroup": {
"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: activation, enable, http2_enable, req_header_name, req_header_prefix, req_header_delimiter, req_header_delimiter_required, req_cookie_name, req_query_name, req_body_prefix, req_body_delimiter, req_body_delimiter_required, rsp_header_name, rsp_header_prefix, rsp_header_delimiter, rsp_header_delimiter_required, rsp_cookie_name, rsp_body_prefix, rsp_body_delimiter, rsp_body_delimiter_required, value_offset, value_length, per_timeout, timeout_mode, |
| Field Name | Type | Description |
|---|---|---|
| activation | uint32 | Sets the number of healthy real services that are allowed to be used in the real service group. |
| enable | boolean | |
| http2_enable | boolean | |
| req_header_name | string | |
| req_header_prefix | string | Sets the start location of the string in the HTTP request header from which the session ID will be obtained. |
| req_header_delimiter | string | Sets the delimiter of the string in the HTTP request header from which the session ID will be obtained. |
| req_header_delimiter_required | boolean | Sets whether the delimiter needs to appear right in the front of "Prefix". |
| req_cookie_name | string | |
| req_query_name | string | |
| req_body_prefix | string | Sets the start location of the string in the HTTP request body from which the session ID will be obtained. |
| req_body_delimiter | string | Sets the delimiter of the string in the HTTP request body from which the session ID will be obtained. |
| req_body_delimiter_required | boolean | Sets whether the delimiter needs to appear right in the front of "Prefix". |
| rsp_header_name | string | |
| rsp_header_prefix | string | Sets the start location of the string in the HTTP response header from which the session ID will be obtained. |
| rsp_header_delimiter | string | Sets the delimiter of the string in the HTTP response header from which the session ID will be obtained. |
| rsp_header_delimiter_required | boolean | Sets whether the delimiter needs to appear right in the front of "Prefix". |
| rsp_cookie_name | string | |
| rsp_body_prefix | string | Sets the start location of the string in the HTTP response body from which the session ID will be obtained. |
| rsp_body_delimiter | string | Sets the delimiter of the string in the HTTP response body from which the session ID will be obtained. |
| rsp_body_delimiter_required | boolean | |
| value_offset | uint8 | Sets the offset when the system obtains the session ID from the corresponding string. |
| value_length | uint8 | Sets the length of the session ID. |
| per_timeout | int | |
| timeout_mode | enum | Available values:
|
All configuration fields and their values are replied:
{
"GeneralPersistenceGroup": {
"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 |
{
"GeneralPersistenceGroup": {
"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 |
{
"GeneralPersistenceGroup": {
"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 |
{
"GeneralPersistenceGroup": {
"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>
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"GeneralPersistenceGroup": {
"instance_id":<instance_id>,
"dynamic_sessions":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"GeneralPersistenceGroup": {
"instance_id":<instance_id>,
"static_sessions":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| static_session_id | string | The value can be an IP address or a specified string. |
| port | port | Specifies the source port of the client request. This field needs to be specified when the session ID type of the group is "IP&Port". |
{
"PersistenceStaticSession": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}