Cache Settings   /rest/apv/loadbalancing/slb/vs/http/global/CacheSettings
  • Relational-instance Queries:
  • GET
    /rest/apv/loadbalancing/slb/vs/http/global/CacheSettings/cache_filter_rule
    Query the Cache Filter Rules info of the corresponding Cache Settings.
    Normal response codes
    200(OK)
    Error response codes
    401(unauthorized), 403(access forbidden), 404(no such instance), 500(internal service error), 501(unimplemented)
    Request parameters
    Parameter Type Description
    instance_id URI ID of the instance
    Response format
    {
        "CacheSettings": {
            "instance_id":<instance_id>,
            "cache_filter_rule":[
               {
                <field1>:<value1>,
                <field2>:<value2>,
                ...
               }
            ]
        }
    }
                                
    Examples
  • POST
    /rest/apv/loadbalancing/slb/vs/http/global/CacheSettings/cache_filter_rule
    Create a Cache Filter Rule for corresponding Cache Settings
    Normal response codes
    200(successfully created)
    Error response codes
    401(unauthorized), 403(access forbidden), 500(internal service error), 501(unimplemented)
    Request format
            {
                <param1>:<value1>,
                <param2>:<value2>,
                ...
            }
                                        
    Request parameters
    Parameter Type Description
    host_name string
    url_regex string
    cache enum Available values:
    • yes (Force Cache)
    • no (Force No Cache)
    • follow (Follow Cache-Control Header)
    override multienum
    urlquery boolean
    custom_ttl int
    Response format
            {
                "CacheFilterRule": {
                    "instance_id":<instance_id>,
                    <param1>:<value1>,
                    <param2>:<value2>,
                    ...
                }
            }
                                        
    Response parameters
    Same as request parameters.
    Examples
  • DELETE
    /rest/apv/loadbalancing/slb/vs/http/global/CacheSettings/cache_filter_rule/<cachefilterrule_id>
    Delete a specific Cache Filter Rule of corresponding cachesettings
    Normal response codes
    200(OK)
    Error response codes
    401(unauthorized), 403(access forbidden), 404(no such instance), 500(internal service error), 501(unimplemented)
    Response format
            {
                "msg": <success-or-error-msg>
            }
                                        
    Examples
  • GET
    /rest/apv/loadbalancing/slb/vs/http/global/CacheSettings/vs_cache_settings
    Query the Virtual Service Cache Settings info of the corresponding Cache Settings.
    Normal response codes
    200(OK)
    Error response codes
    401(unauthorized), 403(access forbidden), 404(no such instance), 500(internal service error), 501(unimplemented)
    Request parameters
    Parameter Type Description
    instance_id URI ID of the instance
    Response format
    {
        "CacheSettings": {
            "instance_id":<instance_id>,
            "vs_cache_settings":[
               {
                <field1>:<value1>,
                <field2>:<value2>,
                ...
               }
            ]
        }
    }
                                
    Examples