Delete a load balancer's session persistence

From Hostway API Documentation
Revision as of 16:01, 9 January 2014 by Youngbae.oh (Talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This operation will delete session persistence from a node balancer.

Contents

DELETE /accounts/{accountId}/loadbalancers/{lbId}/sessionpersistence

This operation will delete session persistence from a node balancer.

Request

URI Parameters

accountId - string
The selected account Id.
lbId - string
The unique load balancer identifier

Response

Response Codes

204 No Content
401 Unauthorized
This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required.
404 Not Found
The resource does not exist.

Examples

Successfully delete the specified load balancer's persistence

Request

DELETE /accounts/{accountId}/loadbalancers/{lbId}/sessionpersistence
Content-Type:application/json
Charset=UTF-8
Authorization:Base64-encoded username & password string

Response

HTTP/1.1 204 No Content

Failure while trying to delete persistence from a non-existent load balancer

Request

DELETE /accounts/{accountId}/loadbalancers/fake_load_balancer_id/sessionpersistence
Content-Type:application/json; Charset=UTF-8
Authorization:Base64-encoded username & password string

Response

HTTP/1.1 404 Not Found

Failure while trying to make unauthorized access

Request

DELETE /accounts/{accountId}/loadbalancers/0001/sessionpersistence
Content-Type:application/json
Charset=UTF-8
Authorization:Base64-encoded fake_authentication_string

Response

HTTP/1.1 401 Unauthorized

401 Unauthorized
This server could not verify that you are authorized to
access the document you requested.  Either you supplied the
wrong credentials (e.g., bad password), or your browser
does not understand how to supply the credentials required.

Failure while trying to pass invalid account number

Request

DELETE /accounts/fake/loadbalancers/0001/sessionpersistence

Response

HTTP/1.1 404 Not Found

{
    "itemNotFound" : {
        "message": "Resource not found", 
        "code": 404, 
        "details": "",
        "errorid": "59e0b3dd-2173-432a-8ff5-60efe16e83bf"
    }
 }
Personal tools
Namespaces
Variants
Actions
APIs
Navigation
Toolbox