API Actions: DeleteCluster

API Actions: DeleteCluster

This call can be submitted against the API of either of the cluster servers.

 

Request Syntax:

XML

POST /api/AlterCluster HTTP/1.1
Host: use.your.host.name:82
X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
Content-Type: application/xml
X-Amz-Date: 20171115T202130Z
Authorization: AWS4-HMAC-SHA256 Credential= UQOPWUVNBALABCABCABC/20171115/us-east-1/cloudbasic/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-content-sha256;x-amz-date, Signature=995374189c189e8e68ed3de82c1764ca11971711fb5179eeab2b19edd883dd74
 
<DeleteClusterRequest>
    <StandaloneServer>52.91.179.60</StandaloneServer>
    <PublicKey>DFFCNBRXFYBHXKDASETJ</PublicKey>
    <PrivateKey>XYF18Dz+IgMDJSP9OwK5M0ujFhnd2yh4E3amiMLe</PrivateKey>  
</DeleteClusterRequest>

JSON

POST /api/AlterCluster HTTP/1.1
Host: use.your.host.name:82
X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
Content-Type: application/json
X-Amz-Date: 20171115T202130Z
Authorization: AWS4-HMAC-SHA256 Credential= UQOPWUVNBALABCABCABC/20171115/us-east-1/cloudbasic/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-content-sha256;x-amz-date, Signature=995374189c189e8e68ed3de82c1764ca11971711fb5179eeab2b19edd883dd74
 
{
	"standaloneServer": "52.91.179.60",
	"publicKey": "DFFCNBRXFYBHXKDASETJ",
	"privateKey": "XYF18Dz+IgMDJSP9OwK5M0ujFhnd2yh4E3amiMLe"
}


 

Request Parameters

Parameter Description Required
StandaloneServer Standalone server becomes primary. Schedules on the other server are inactivated, IF the other server is reachable.
Note:
If the other server (being removed from cluster) is down at the time this request is submitted, the other server will remove itself from the cluster upon boot up and reaching to the standalone server.
Below 2 tags (Access Key) is not required if this server becomes standalone. If the API call is submitted against the server being removed from cluster, then 2 tags (authenticating with access key against the server becoming standalone) are required.
Yes
Type: String
Default: None
PublicKey A valid public key of the other server. Yes
Type: String
Default: None
PrivateKey The private key paired with the above PublicKey. Yes
Type: String
Default: None

 

Request Headers

This implementation uses only request headers that are common to all operations. For more information please see the section Common Request Headers

 

Response Syntax:

HTTP/1.1 200
status: 200

 

Response Parameters

None
 

Error Response Syntax:

XML

HTTP/1.1 400
status: 400

<?xml version="1.0" encoding="utf-8"?>
<ErrorResponse> 
  <RequestId>request-id</RequestId> 
  <Errors> 
    <Error> {StandaloneServer}:Invalid value for StandaloneServer </Error> 
    <Error> {PublicKey}:Invalid value for PublicKey </Error> 
  </Errors> 
</ErrorResponse>

JSON

HTTP/1.1 400
status: 400

{
   "errors": [
      "{StandaloneServer}:Invalid value for StandaloneServer"
	],
	"requestId": 20
}