Edit a load balancer

From Hostway API Documentation
(Difference between revisions)
Jump to: navigation, search
m (1 revision: Release 109)
 

Latest revision as of 12:13, 24 July 2015

Contents

[edit] PUT /accounts/{accountId}/loadbalancers/{lbId}

This operation updates the specified load balancer attributes.

[edit] Request

PUT /accounts/{accountId}/loadbalancers/{lbId}

[edit] Request Parameters

accountId - string
The selected account id.
lbId - string
The selected load balancer id.

[edit] Request Body

{ 
    "displayName": "{lbDisplayName}"
}

[edit] Parameters

displayName - string
new name for this load balancer

[edit] Response

[edit] 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.

[edit] Examples

[edit] 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


blog comments powered by Disqus

Personal tools
Namespaces
Variants
Actions
APIs
Navigation
Toolbox