Delete load balancer

From Hostway API Documentation
(Difference between revisions)
Jump to: navigation, search
m (1 revision: Release 109)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
='''DELETE''' /accounts/''{accountId}''/loadbalancers/''{lbd}''=
+
='''DELETE''' /accounts/''{accountId}''/loadbalancers/''{lbId}''=
This operation will delete the specified firewall group.
+
This operation deletes the specified load balancer.
  
 
== Request ==
 
== Request ==
=== URI Parameters ===
+
<code>DELETE /accounts/''{accountId}''/loadbalancers/''{lbId}''</code>
 +
 
 +
=== Request Parameters ===
 
; accountId - ''string''
 
; accountId - ''string''
: The selected account Id.
+
: The selected account id.
  
 
; lbId - ''string''
 
; lbId - ''string''
: The unique identifier of the load balancer.
+
: The selected load balancer id.
  
 
== Response ==
 
== Response ==
 +
 
=== Response Codes ===
 
=== Response Codes ===
 
; 204 No Content
 
; 204 No Content
Line 28: Line 31:
 
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}
 
</pre>
 
</pre>
  
Line 36: Line 39:
 
</pre>
 
</pre>
  
=== Failure while trying to make unauthorized access ===
 
'''Request'''
 
<pre>
 
DELETE /accounts/{accountId}/loadbalancers/0001
 
Content-Type:application/json
 
Charset=UTF-8
 
Authorization:Base64-encoded fake_authentication_string
 
</pre>
 
 
'''Response'''
 
<pre>
 
HTTP/1.1 401 Unauthorized
 
</pre>
 
 
=== Failure while trying to delete a non-existent load balancer ===
 
'''Request'''
 
<pre>
 
DELETE /accounts/{accountId}/loadbalancers/fake_lb_id
 
Content-Type:application/json
 
Charset=UTF-8
 
Authorization:Base64-encoded username & password string
 
</pre>
 
 
'''Response'''
 
<pre>
 
HTTP/1.1 404 Not Found
 
</pre>
 
 
=== Failure while trying to pass invalid account number ===
 
'''Request'''
 
<pre>
 
DELETE /accounts/fake/loadbalancers/0001
 
</pre>
 
 
'''Response'''
 
<pre>
 
HTTP/1.1 404 Not Found
 
 
{
 
    "itemNotFound" : {
 
      "message": "Resource not found",
 
      "code": 404,
 
      "details": "",
 
      "errorid": "59e0b3dd-2173-432a-8ff5-60efe16e83bf"
 
    }
 
}
 
</pre>
 
 
{{disqus}}
 
 
[[Category:Hostway API]]
 
[[Category:Hostway API]]
 
[[Category:Load Balancer API]]
 
[[Category:Load Balancer API]]

Latest revision as of 12:13, 24 July 2015

Contents

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

This operation deletes the specified load balancer.

[edit] Request

DELETE /accounts/{accountId}/loadbalancers/{lbId}

[edit] Request Parameters

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

[edit] Response

[edit] Response Codes

204 No Content
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 delete the specified load balancer

Request

DELETE /accounts/{accountId}/loadbalancers/0001
Content-Type:application/json
Charset=UTF-8
Authorization: Basic {Base64-encoded username & password string}

Response

HTTP/1.1 204 No Content
Personal tools
Namespaces
Variants
Actions
APIs
Navigation
Toolbox