| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | enable | boolean | |
| default | object_size | int | Sets the maximum size of a cache object, in Kbytes. The minimum value is 1. The maximum value varies by system memory. The maximum value is 1024 for 2 GB system memory; 10240 for 4 GB system memory; 20480 for 8 GB system memory; and 40960 for 16 GB, 24 GB, 32 GB or 64 GB system memory. |
| default | expire | string | |
| default | cache_filter | boolean | |
| default | cache_filter_rule | asso | |
| default | vs_cache_settings | asso | |
| stats | statistics | clitext |
{
"CacheSettings": {
"meta": {
"abstract": false,
"verbose_name": Cache Settings,
},
"fieldgroups": [
{
"fields": [
{
"verbose_name": field_verbose_name1,
"field_name": field_name1
},
...
],
"group_name": field_group_name1
},
...
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| host_name | string | |
| url_regex | string |
{
"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. |
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| host_name | string | |
| url_regex | string |
{
"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. |
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| host_name | string | |
| url_regex | string |
{
"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. |
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|
{
"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. |
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| service | dynamic_enum |
{
"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. |
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| type | dynamic_enum |
{
"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. |
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|
{
"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. |
| Parameter | Type | Description |
|---|---|---|
| field_group_name | URI | (optional) Target field group name to query. Available names are: default, cache_content, stats, 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: enable, object_size, expire, cache_filter, cache_filter_rule, statistics, vs_cache_settings, Notice: There could only be one field_group_name or field_name in the URL. |
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | enable | boolean | |
| default | object_size | int | Sets the maximum size of a cache object, in Kbytes. The minimum value is 1. The maximum value varies by system memory. The maximum value is 1024 for 2 GB system memory; 10240 for 4 GB system memory; 20480 for 8 GB system memory; and 40960 for 16 GB, 24 GB, 32 GB or 64 GB system memory. |
| default | expire | string | |
| default | cache_filter | boolean | |
| default | cache_filter_rule | asso | |
| default | vs_cache_settings | asso | |
| stats | statistics | clitext |
{
"CacheSettings": {
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"CacheSettings": {
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"CacheSettings": {
<field>:<value>,
}
}
{
<field_name>:<value>
}
When field name is specified in URL:
Notice: The fields not provided are left untouched.
{
<field_name1>:<value1>,
<field_name2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| field_name | URI | (optional) Target field name to update. Available field names are: enable, object_size, expire, cache_filter, cache_filter_rule, statistics, vs_cache_settings, |
| Field Name | Type | Description |
|---|---|---|
| enable | boolean | |
| object_size | int | Sets the maximum size of a cache object, in Kbytes. The minimum value is 1. The maximum value varies by system memory. The maximum value is 1024 for 2 GB system memory; 10240 for 4 GB system memory; 20480 for 8 GB system memory; and 40960 for 16 GB, 24 GB, 32 GB or 64 GB system memory. |
| expire | string | |
| cache_filter | boolean |
All configuration fields and their values are replied:
{
"CacheSettings": {
<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 |
{
"CacheSettings": {
"instance_id":<instance_id>,
"cache_filter_rule":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| host_name | string | |
| url_regex | string | |
| cache | enum | Available values:
|
| override | multienum | |
| urlquery | boolean | |
| custom_ttl | int |
{
"CacheFilterRule": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"CacheSettings": {
"instance_id":<instance_id>,
"vs_cache_settings":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}