Update a node
From Hostway API Documentation
This operation will update the contents of a load balancer node.
Contents |
PUT /accounts/{accountId}/loadbalancers/{lbId}/nodePools/{nodePoolId}/nodes/{nodeId}
This operation updates node attributes.
Request
PUT /accounts/{accountId}/loadbalancers/{lbId}/nodePools/{nodePoolId}/nodes/{nodeId}
Request Parameters
- accountId - string
- The selected account id.
- lbId - string
- The selected loadbalancer id.
- nodePoolId - string
- The selected node pool id.
- nodeId -- string
- The selected node id.
Request Body
{ "status": "{status}", }
Parameters
- status - string
- The status of a node
- Allowed values are ENABLED or DISABLED
Response
Response Codes
- 204 No Content
- 400 Bad Request
- The request has wrong data
- 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/{lbId}/nodePools/{nodepoolId}/nodes/{nodeId} Content-Type:application/json Charset=UTF-8 Authorization: Basic {Base64-encoded username & password string} { "status":"ENABLED" }
Response
HTTP/1.1 204 NoContent