| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | protocol | enum | Sets the protocol of the virtual service.Available values:
|
| default | service_name | string | |
| default | enable | boolean | The virtual service takes effect only when it is enabled. |
| default | vip | ipaddr | |
| default | vport | port | |
| default | max_conn | uint32 | |
| default | arp | boolean | |
| policy | policies | asso | |
| policy | order_template | asso | |
| advanced | max_cps | uint32 | |
| advanced | system_mode | enum | Available values:
|
| advanced | rts | boolean | |
| advanced | interface | asso | |
| port_range | port_range | asso | |
| status | active_status | boolean | |
| snat | snat | asso | |
| epolicy | setting_script | asso | One virtual service can be associated with only one setting script. |
| epolicy | runtime_script | asso | One virtual service can be associated with 10 runtime scripts at most. |
| acl | acl_rule | asso | |
| acl | acl_whitelist | asso | |
| ddos_acl | ddos_rule | asso | |
| statistics | current_connection_count | StorableField | |
| statistics | total_connection_count | 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 | qos_clientport_hits | StorableField | |
| statistics | qos_network_hits | StorableField | |
| statistics | default_hits | StorableField | |
| statistics | static_hits | StorableField | |
| statistics | backup_hits | StorableField | |
| dns_acl | dns_rule | asso | |
| statistics_dns | dns_stats | clitext |
{
"DNSVirtualService": {
"meta": {
"abstract": false,
"verbose_name": DNS Virtual 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 | The virtual service takes effect only when it is enabled. | |||||||||
| vip | ipaddr (Nested Field. It should be a dict.)
|
||||||||||
| vport | port | ||||||||||
| max_conn | uint32 | ||||||||||
| arp | boolean |
{
"DNSVirtualService": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"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. |
| way | enum | Available values:
|
{
"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. |
{
"targets": [<target>]
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| targets | string or list | specify the target instance. |
{
"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. |
{
"DNSVirtualService": [
{
"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, policy, advanced, port_range, status, snat, epolicy, acl, ddos_acl, tgt_fields, statistics, dns_acl, statistics_dns, 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: protocol, service_name, enable, policies, order_template, max_cps, system_mode, rts, interface, port_range, active_status, snat, setting_script, runtime_script, acl_rule, acl_whitelist, ddos_rule, vip, vport, max_conn, arp, current_connection_count, total_connection_count, total_bytes_in, total_bytes_out, total_packets_in, total_packets_out, average_bandwidth_in, average_bandwidth_out, qos_clientport_hits, qos_network_hits, default_hits, static_hits, backup_hits, dns_rule, dns_stats, Notice: There could only be one field_group_name or field_name in the URL. |
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | protocol | enum | Sets the protocol of the virtual service.Available values:
|
| default | service_name | string | |
| default | enable | boolean | The virtual service takes effect only when it is enabled. |
| default | vip | ipaddr | |
| default | vport | port | |
| default | max_conn | uint32 | |
| default | arp | boolean | |
| policy | policies | asso | |
| policy | order_template | asso | |
| advanced | max_cps | uint32 | |
| advanced | system_mode | enum | Available values:
|
| advanced | rts | boolean | |
| advanced | interface | asso | |
| port_range | port_range | asso | |
| status | active_status | boolean | |
| snat | snat | asso | |
| epolicy | setting_script | asso | One virtual service can be associated with only one setting script. |
| epolicy | runtime_script | asso | One virtual service can be associated with 10 runtime scripts at most. |
| acl | acl_rule | asso | |
| acl | acl_whitelist | asso | |
| ddos_acl | ddos_rule | asso | |
| statistics | current_connection_count | StorableField | |
| statistics | total_connection_count | 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 | qos_clientport_hits | StorableField | |
| statistics | qos_network_hits | StorableField | |
| statistics | default_hits | StorableField | |
| statistics | static_hits | StorableField | |
| statistics | backup_hits | StorableField | |
| dns_acl | dns_rule | asso | |
| statistics_dns | dns_stats | clitext |
{
"DNSVirtualService": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"DNSVirtualService": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"DNSVirtualService": {
"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, max_cps, system_mode, rts, |
| Field Name | Type | Description |
|---|---|---|
| enable | boolean | The virtual service takes effect only when it is enabled. |
| max_cps | uint32 | |
| system_mode | enum | Available values:
|
| rts | boolean |
All configuration fields and their values are replied:
{
"DNSVirtualService": {
"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 |
{
"DNSVirtualService": {
"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 |
{
"DNSVirtualService": {
"instance_id":<instance_id>,
"order_template":<value>
}
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"DNSVirtualService": {
"instance_id":<instance_id>,
"port_range":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| begin | port | |
| end | port |
{
"VSPortRange": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"DNSVirtualService": {
"instance_id":<instance_id>,
"snat":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| ip | ipaddr | |
| mask_prefix | UnionField |
{
"SLBSNAT": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}