Edit a load balancer
(Difference between revisions)
Mike.robski (Talk | contribs) m (1 revision: Release 95) |
Mike.robski (Talk | contribs) |
||
Line 1: | Line 1: | ||
='''PUT''' /accounts/''{accountId}''/loadbalancers/''{lbId}''= | ='''PUT''' /accounts/''{accountId}''/loadbalancers/''{lbId}''= | ||
− | This operation | + | This operation updates the specified load balancer attributes. |
== Request == | == Request == | ||
− | === | + | <code>PUT /accounts/''{accountId}''/loadbalancers/''{lbId}''</code> |
+ | |||
+ | === Request Parameters === | ||
; accountId - ''string'' | ; accountId - ''string'' | ||
− | : The selected account | + | : The selected account id. |
; lbId - ''string'' | ; lbId - ''string'' | ||
− | : The | + | : The selected load balancer id. |
=== Request Body === | === Request Body === | ||
<nowiki> | <nowiki> | ||
{ | { | ||
− | + | "displayName": "{lbDisplayName}" | |
− | + | }</nowiki> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
==== Parameters ==== | ==== Parameters ==== | ||
; displayName - ''string'' | ; displayName - ''string'' | ||
− | : | + | : new name for this load balancer |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
== Response == | == Response == | ||
Line 37: | Line 26: | ||
=== Response Codes === | === Response Codes === | ||
; 204 No Content | ; 204 No Content | ||
+ | |||
+ | ; 400 Bad Request | ||
+ | : The request has wrong data | ||
; 401 Unauthorized | ; 401 Unauthorized | ||
Line 53: | Line 45: | ||
Content-Type:application/json | Content-Type:application/json | ||
Charset=UTF-8 | Charset=UTF-8 | ||
− | Authorization:Base64-encoded username & password string | + | Authorization: Basic {Base64-encoded username & password string} |
{ | { | ||
− | "displayName": "New display name | + | "displayName": "New display name" |
− | + | ||
}</pre> | }</pre> | ||
Line 63: | Line 54: | ||
<pre> | <pre> | ||
HTTP/1.1 204 OK | HTTP/1.1 204 OK | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</pre> | </pre> | ||
Revision as of 10:17, 6 February 2015
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