HTTP Rewrite Settings   /rest/apv/loadbalancing/slb/vs/http/global/GlobalHTTPRewriteSettings
  • Relational-instance Queries:
  • GET
    /rest/apv/loadbalancing/slb/vs/http/global/GlobalHTTPRewriteSettings/rewrite_body_rule
    Query the HTTP Content Rewrite Rules info of the corresponding HTTP Rewrite 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
    {
        "GlobalHTTPRewriteSettings": {
            "instance_id":<instance_id>,
            "rewrite_body_rule":[
               {
                <field1>:<value1>,
                <field2>:<value2>,
                ...
               }
            ]
        }
    }
                                
    Examples
  • POST
    /rest/apv/loadbalancing/slb/vs/http/global/GlobalHTTPRewriteSettings/rewrite_body_rule
    Create a HTTP Content Rewrite Rule for corresponding HTTP Rewrite 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
    rule_type enum Available values:
    • ProxyHTMLURLMap (ProxyHTMLURLMap) - Rewrites only the URLs inside the HTML tags.
    • Substitute (Substitute) - Rewrites all strings that match the rule in the file.
    from_pattern string
    to_pattern string
    flags multienum
    Response format
            {
                "HTTPRewriteBodyRule": {
                    "instance_id":<instance_id>,
                    <param1>:<value1>,
                    <param2>:<value2>,
                    ...
                }
            }
                                        
    Response parameters
    Same as request parameters.
    Examples
  • DELETE
    /rest/apv/loadbalancing/slb/vs/http/global/GlobalHTTPRewriteSettings/rewrite_body_rule/<httprewritebodyrule_id>
    Delete a specific HTTP Content Rewrite Rule of corresponding globalhttprewritesettings
    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/GlobalHTTPRewriteSettings/rewrite_body_mime
    Query the HTTP Content Rewrite Mime Type Rule info of the corresponding HTTP Rewrite 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
    {
        "GlobalHTTPRewriteSettings": {
            "instance_id":<instance_id>,
            "rewrite_body_mime":[
               {
                <field1>:<value1>,
                <field2>:<value2>,
                ...
               }
            ]
        }
    }
                                
    Examples
  • POST
    /rest/apv/loadbalancing/slb/vs/http/global/GlobalHTTPRewriteSettings/rewrite_body_mime
    Create a HTTP Content Rewrite Mime Type Rule for corresponding HTTP Rewrite 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
    mime_type enum Available values:
    • html (text/html)
    • plain (text/plain)
    • richtext (text/richtext)
    • xml (text/xml, application/xml)
    • xhtml (application/xhtml+xml)
    • css (text/css)
    • js (text/javascript, application/javascript)
    Response format
            {
                "HTTPRewriteBodyMime": {
                    "instance_id":<instance_id>,
                    <param1>:<value1>,
                    <param2>:<value2>,
                    ...
                }
            }
                                        
    Response parameters
    Same as request parameters.
    Examples
  • DELETE
    /rest/apv/loadbalancing/slb/vs/http/global/GlobalHTTPRewriteSettings/rewrite_body_mime/<httprewritebodymime_id>
    Delete a specific HTTP Content Rewrite Mime Type Rule of corresponding globalhttprewritesettings
    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/GlobalHTTPRewriteSettings/rewrite_body_urllist
    Query the HTTP Content Rewrite URL List Rule info of the corresponding HTTP Rewrite 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
    {
        "GlobalHTTPRewriteSettings": {
            "instance_id":<instance_id>,
            "rewrite_body_urllist":[
               {
                <field1>:<value1>,
                <field2>:<value2>,
                ...
               }
            ]
        }
    }
                                
    Examples
  • POST
    /rest/apv/loadbalancing/slb/vs/http/global/GlobalHTTPRewriteSettings/rewrite_body_urllist
    Create a HTTP Content Rewrite URL List Rule for corresponding HTTP Rewrite 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
    name string
    url_regex ListField
    Response format
            {
                "HTTPRewriteBodyURLList": {
                    "instance_id":<instance_id>,
                    <param1>:<value1>,
                    <param2>:<value2>,
                    ...
                }
            }
                                        
    Response parameters
    Same as request parameters.
    Examples
  • DELETE
    /rest/apv/loadbalancing/slb/vs/http/global/GlobalHTTPRewriteSettings/rewrite_body_urllist/<httprewritebodyurllist_id>
    Delete a specific HTTP Content Rewrite URL List Rule of corresponding globalhttprewritesettings
    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