Update a single load balancer node
From Hostway API Documentation
Revision as of 16:43, 2 July 2014 by Mike.robski (Talk | contribs)
This operation will update the contents of a load balancer node.
Contents |
PUT /accounts/{accountId}/loadbalancers/{lbId}/nodes/{nodeId}
This operation will update node attributes
Request
URI Parameters
- accountId - string
- The selected account Id
- lbId
- The unique identifier of the load balancer.
- nodeId -- string
- unique identifier of the load balancer node to modify
Request Body
{ "condition" : "{condition}", }
Parameters
- condition - string
- new condition of the node (ENABLED or DISABLED)
Response
Response Codes
- 204 NoContent
- 400 BadRequest
- 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.
- 502 Bad Gateway
- LB backend server returned error
Examples
Successfully update contents of specified load balancer node
Request
PUT /accounts/{accountId}/loadbalancers/0001/nodes/1234 Content-Type:application/json Charset=UTF-8 Authorization:Base64-encoded username & password string { "condition":"ENABLED" }
Response
HTTP/1.1 204 NoContent
Failure while trying to update a node from a load balancer that does not exist
Request
PUT /accounts/{accountId}/loadbalancers/fake_loadBalancerId/nodes/1234 Content-Type:application/json Charset=UTF-8 Authorization:Base64-encoded username & password string
Response
HTTP/1.1 404 Not Found { "itemNotFound": { "message": "Resource not found", "code": 404, "details": "", "errorid": "59e0b3dd-2173-432a-8ff5-60efe16e83bf" } }