This URL deletes a cluster based on the cluster ID.
Resource URL
DELETE /cluster/<cluster id>
Request Parameters
URL Parameters:
| Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| cluster id | Cluster ID.
You can use the GET /cluster method to get the details of all the clusters. |
number | Yes |
Payload Parameters:
NoneResponse Parameters
Following fields are returned in the response.
| Field Name | Description | Data Type |
|---|---|---|
| success | Indicates if the DELETE operation was successful.
Value is set to true if the DELETE operation is successful. Value is set to false if the DELETE operation is not successful. |
string |
| msg | Message if the deletion of the cluster is successful | string |
| errMsg | Not applicable | Not applicable |
| domainName | Not applicable | Not applicable |
| data | Not applicable | Not applicable |
Example
Request
DELETE https://%3CNSM_IP%3E/intruvert/webservice/api/v1/cloud/cluster/3
Response
{
"success": true,
"msg": "Cluster deleted",
"errMsg": null,
"domainName": null,
"data": null
}