Edit a load balancer
From Hostway API Documentation
Contents |
PUT /accounts/{accountId}/loadbalancers/{lbId}
This operation updates the specified load balancer attributes.
Request
PUT /accounts/{accountId}/loadbalancers/{lbId}
Request Parameters
- accountId - string
- The selected account id.
- lbId - string
- The selected load balancer id.
Request Body
{ "displayName": "{lbDisplayName}" }
Parameters
- displayName - string
- new name for this load balancer
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.
Examples
Successfully edit details for specified load balancer
Request
PUT /accounts/{accountId}/loadbalancers/0001 Content-Type:application/json Charset=UTF-8 Authorization: Basic {Base64-encoded username & password string} { "displayName": "New display name" }
Response
HTTP/1.1 204 OK