Delete a node from a load balancer
From Hostway API Documentation
(Difference between revisions)
(→DELETE /accounts/{accountId}/loadbalancers/{lbId}/nodes/{lbNodeId}) |
Mike.robski (Talk | contribs) m (1 revision: Release 95) |
||
(2 intermediate revisions by one user not shown) | |||
Line 107: | Line 107: | ||
</pre> | </pre> | ||
− | + | {{disqus}} | |
[[Category:Hostway API]] | [[Category:Hostway API]] | ||
[[Category:Load Balancer API]] | [[Category:Load Balancer API]] |
Latest revision as of 16:43, 2 July 2014
This operation will delete a node from a node balancer.
DELETE /accounts/{accountId}/loadbalancers/{lbId}/nodes/{lbNodeId}
This operation will delete a node from a node balancer.
Request
URI Parameters
- accountId - string
- The selected account Id.
- lbId - string
- The unique load balancer identifier
- lbNodeId - string
- the unique identifier of the node to delete
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 node
Request
DELETE /{accountId}/loadbalancers/{lbId}/nodes/{lbNodeId} 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 a non-existent load balancer node
Request
DELETE /accounts/{accountId}/loadbalancers/0001/nodes/fake_load_balancer_node_id Content-Type:application/json Charset=UTF-8 Authorization:Base64-encoded username & password string
Response
HTTP/1.1 404 Not Found
Failure while trying to delete a node from a non-existent load balancer
Request
DELETE /accounts/{accountId}/loadbalancers/fake_load_balancer_id/nodes/1732 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/nodes/1723 Content-Type:application/json Charset=UTF-8 Authorization:Base64-encoded fake_authentication_string
Response
HTTP/1.1 401 Unauthorized
Failure while trying to pass invalid account number
Request
DELETE /accounts/fake/loadbalancers/0001/nodes/7234 Content-Type:application/json Charset=UTF-8 Authorization:Base64-encoded fake_authentication_string
Response
HTTP/1.1 404 Not Found { "itemNotFound" : { "message": "Resource not found", "code": 404, "details": "", "errorid": "59e0b3dd-2173-432a-8ff5-60efe16e83bf" } }