Global HTTP Settings   /rest/apv/loadbalancing/slb/vs/http/global/GlobalHTTPSettings
  • Relational-instance Queries:
  • GET
    /rest/apv/loadbalancing/slb/vs/http/global/GlobalHTTPSettings/default_http_errors
    Query the Global HTTP Error Page Customization Rules info of the corresponding Global HTTP 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
    {
        "GlobalHTTPSettings": {
            "instance_id":<instance_id>,
            "default_http_errors":[
               {
                <field1>:<value1>,
                <field2>:<value2>,
                ...
               }
            ]
        }
    }
                                
    Examples
  • POST
    /rest/apv/loadbalancing/slb/vs/http/global/GlobalHTTPSettings/default_http_errors
    Create a Global HTTP Error Page Customization Rule for corresponding Global HTTP 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
    error_code string
    url importurl
    enable boolean
    Response format
            {
                "DefaultHTTPError": {
                    "instance_id":<instance_id>,
                    <param1>:<value1>,
                    <param2>:<value2>,
                    ...
                }
            }
                                        
    Response parameters
    Same as request parameters.
    Examples
  • DELETE
    /rest/apv/loadbalancing/slb/vs/http/global/GlobalHTTPSettings/default_http_errors/<defaulthttperror_id>
    Delete a specific Global HTTP Error Page Customization Rule of corresponding globalhttpsettings
    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/GlobalHTTPSettings/host_permissions
    Query the Host Name Permission Rules info of the corresponding Global HTTP 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
    {
        "GlobalHTTPSettings": {
            "instance_id":<instance_id>,
            "host_permissions":[
               {
                <field1>:<value1>,
                <field2>:<value2>,
                ...
               }
            ]
        }
    }
                                
    Examples
  • POST
    /rest/apv/loadbalancing/slb/vs/http/global/GlobalHTTPSettings/host_permissions
    Create a Host Name Permission Rule for corresponding Global HTTP 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 string
    Response format
            {
                "HostPermission": {
                    "instance_id":<instance_id>,
                    <param1>:<value1>,
                    <param2>:<value2>,
                    ...
                }
            }
                                        
    Response parameters
    Same as request parameters.
    Examples
  • DELETE
    /rest/apv/loadbalancing/slb/vs/http/global/GlobalHTTPSettings/host_permissions/<hostpermission_id>
    Delete a specific Host Name Permission Rule of corresponding globalhttpsettings
    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/GlobalHTTPSettings/method_permissions
    Query the Per VIP Method Permission info of the corresponding Global HTTP 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
    {
        "GlobalHTTPSettings": {
            "instance_id":<instance_id>,
            "method_permissions":[
               {
                <field1>:<value1>,
                <field2>:<value2>,
                ...
               }
            ]
        }
    }
                                
    Examples
  • POST
    /rest/apv/loadbalancing/slb/vs/http/global/GlobalHTTPSettings/method_permissions
    Create a Method Permission Rule for corresponding Global HTTP 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
    ip ip4addr
    method_permission multienum
    Response format
            {
                "MethodPermission": {
                    "instance_id":<instance_id>,
                    <param1>:<value1>,
                    <param2>:<value2>,
                    ...
                }
            }
                                        
    Response parameters
    Same as request parameters.
    Examples
  • DELETE
    /rest/apv/loadbalancing/slb/vs/http/global/GlobalHTTPSettings/method_permissions/<methodpermission_id>
    Delete a specific Method Permission Rule of corresponding globalhttpsettings
    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