Delete a load balancer's health monitor

From Hostway API Documentation
(Difference between revisions)
Jump to: navigation, search
(Examples)
 
m (1 revision: Release 109)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This operation will delete any health monitor currently bound to the specified load balancer.
+
='''DELETE''' /accounts/''{accountId}''/loadbalancers/''{lbId}''/nodePools/''{nodePoolId}''/healthMonitor=
 
+
This operation deletes any health monitor currently bound to the specified load balancer.
='''DELETE''' /accounts/''{accountId}''/loadbalancers/''{lbId}''/healthmonitor=
+
This operation will delete any health monitor currently bound to the specified load balancer.
+
  
 
== Request ==
 
== Request ==
=== URI Parameters ===
+
<code>DELETE /accounts/''{accountId}''/loadbalancers/''{lbId}''/nodePools/''{nodePoolId}''/healthMonitor</code>
 +
 
 +
=== Request Parameters ===
 
; accountId - ''string''
 
; accountId - ''string''
: The selected account Id.
+
: The selected account id.
  
 
; lbId - ''string''
 
; lbId - ''string''
: The unique load balancer identifier
+
: The selected loadbalancer id.
 +
 
 +
; nodePoolId - ''string''
 +
: The selected node pool id.
  
 
== Response ==
 
== Response ==
Line 28: Line 31:
 
'''Request'''
 
'''Request'''
 
<pre>
 
<pre>
DELETE /accounts/{accountId}/loadbalancers/{lbId}/healthmonitor
+
DELETE /accounts/{accountId}/loadbalancers/{lbId}/nodePools/{nodePoolId}/healthMonitor
 
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 37: Line 40:
 
<pre>
 
<pre>
 
HTTP/1.1 204 No Content
 
HTTP/1.1 204 No Content
</pre>
 
 
=== Failure while trying to delete the health monitor from a non-existent load balancer ===
 
'''Request'''
 
<pre>
 
DELETE /accounts/{accountId}/loadbalancers/0001/nodes/fake_load_balancer_node_id/healthmonitor
 
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 make unauthorized access ===
 
'''Request'''
 
<pre>
 
DELETE /accounts/{accountId}/loadbalancers/0001/healthmonitor
 
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 pass invalid account number ===
 
'''Request'''
 
<pre>
 
DELETE /accounts/fake/loadbalancers/0001/healthmonitor
 
</pre>
 
 
'''Response'''
 
<pre>
 
HTTP/1.1 404 Not Found
 
{
 
    "itemNotFound" : {
 
        "message": "Resource not found",
 
        "code": 404,
 
        "details": "",
 
        "errorid": "59e0b3dd-2173-432a-8ff5-60efe16e83bf"
 
    }
 
}
 
 
</pre>
 
</pre>
  
 
[[Category:Hostway API]]
 
[[Category:Hostway API]]
 
[[Category:Load Balancer API]]
 
[[Category:Load Balancer API]]

Latest revision as of 13:13, 24 July 2015

Contents

DELETE /accounts/{accountId}/loadbalancers/{lbId}/nodePools/{nodePoolId}/healthMonitor

This operation deletes any health monitor currently bound to the specified load balancer.

Request

DELETE /accounts/{accountId}/loadbalancers/{lbId}/nodePools/{nodePoolId}/healthMonitor

Request Parameters

accountId - string
The selected account id.
lbId - string
The selected loadbalancer id.
nodePoolId - string
The selected node pool id.

Response

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.

Examples

Successfully delete the specified load balancer's health monitor

Request

DELETE /accounts/{accountId}/loadbalancers/{lbId}/nodePools/{nodePoolId}/healthMonitor
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