| 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 | cookie_name | string | |
| default | add_path | boolean | Inserts "path=/" as the path attribute of the inserted cookie. |
| default | first_choice_method | enum | Available values:
|
| default | threshold | uint32 | |
| 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 | |
| options | expires | string | Sets the lifetime of the cookie in the format of "expires= |
| options | path | string | Sets the path associated with the cookie in the format of "path=string". |
| options | domain | string | Sets the domain name associated with the cookie in the format of "domain=string". |
| options | secure | boolean | If yes, the cookie can be transferred only via browsers and servers deploying HTTPS or other security protocols. If no, the cookie can be transferred via the HTTP protocol. |
| options | httponly | boolean | If yes, the cookie can be applied to HTTP requests. If no, the cookie can be applied to other requests. |
{
"ICGroup": {
"meta": {
"abstract": false,
"verbose_name": SLB Insert Cookie 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 | |
| cookie_name | string | |
| add_path | boolean | Inserts "path=/" as the path attribute of the inserted cookie. |
| first_choice_method | enum | Available values:
|
| threshold | uint32 |
{
"ICGroup": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"ICGroup": [
{
"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, timeout, proxyip, healthcheck, statistics, options, 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, cookie_name, add_path, first_choice_method, threshold, expires, path, domain, secure, httponly, 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 | cookie_name | string | |
| default | add_path | boolean | Inserts "path=/" as the path attribute of the inserted cookie. |
| default | first_choice_method | enum | Available values:
|
| default | threshold | uint32 | |
| 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 | |
| options | expires | string | Sets the lifetime of the cookie in the format of "expires= |
| options | path | string | Sets the path associated with the cookie in the format of "path=string". |
| options | domain | string | Sets the domain name associated with the cookie in the format of "domain=string". |
| options | secure | boolean | If yes, the cookie can be transferred only via browsers and servers deploying HTTPS or other security protocols. If no, the cookie can be transferred via the HTTP protocol. |
| options | httponly | boolean | If yes, the cookie can be applied to HTTP requests. If no, the cookie can be applied to other requests. |
{
"ICGroup": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"ICGroup": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"ICGroup": {
"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, timeout, expires, path, domain, secure, httponly, |
| 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 | |
| timeout | int | Sets the timeout value of the session persistence for the real service group. |
| expires | string | Sets the lifetime of the cookie in the format of "expires= |
| path | string | Sets the path associated with the cookie in the format of "path=string". |
| domain | string | Sets the domain name associated with the cookie in the format of "domain=string". |
| secure | boolean | If yes, the cookie can be transferred only via browsers and servers deploying HTTPS or other security protocols. If no, the cookie can be transferred via the HTTP protocol. |
| httponly | boolean | If yes, the cookie can be applied to HTTP requests. If no, the cookie can be applied to other requests. |
All configuration fields and their values are replied:
{
"ICGroup": {
"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 |
{
"ICGroup": {
"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 |
{
"ICGroup": {
"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 |
{
"ICGroup": {
"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>
}