General Health Check Settings   /rest/apv/loadbalancing/slb/healthcheck/HCGlobalSettings
  • Relational-instance Queries:
  • GET
    /rest/apv/loadbalancing/slb/healthcheck/HCGlobalSettings/ipreflect
    Query the L2SLB Health Check Reflectors info of the corresponding General Health Check 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
    {
        "HCGlobalSettings": {
            "instance_id":<instance_id>,
            "ipreflect":[
               {
                <field1>:<value1>,
                <field2>:<value2>,
                ...
               }
            ]
        }
    }
                                
    Examples
  • POST
    /rest/apv/loadbalancing/slb/healthcheck/HCGlobalSettings/ipreflect
    Create a L2SLB Health Check Reflector for corresponding General Health Check 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
    reflector_name string Sets the name of the Layer 2 SLB health check reflector, which responds to the received Layer 2 SLB health check requests.
    ip ip4addr
    port port
    protocol enum Available values:
    • tcp (TCP)
    Response format
            {
                "IPReflect": {
                    "instance_id":<instance_id>,
                    <param1>:<value1>,
                    <param2>:<value2>,
                    ...
                }
            }
                                        
    Response parameters
    Same as request parameters.
    Examples
  • DELETE
    /rest/apv/loadbalancing/slb/healthcheck/HCGlobalSettings/ipreflect/<ipreflect_id>
    Delete a specific L2SLB Health Check Reflector of corresponding hcglobalsettings
    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