Terminating a Cluster
Scenarios
This API is used to delete a cluster after data processing and analysis are completed or the cluster is abnormal.
- Scaling-out: The cluster is being scaled out.
- Scaling-in: The cluster is being scaled in.
- Starting: The cluster is being started.
- Terminating: The cluster is being deleted.
- Terminated: The cluster has been terminated.
- Failed: The cluster is failed.
For details on how to call APIs, see Making an API Request.
Constraints
- You have obtained the project ID of the region where the cluster is to be created. For details, see Obtaining a Project ID.
- You have obtained the cluster ID, that is, the value of cluster_id in the command output returned after the cluster is successfully created. For details about how to obtain the cluster ID, see Obtaining a Cluster ID.
Procedure
- API
URI format: DELETE /V1.1/{project_id}/clusters/{cluster_id}
For details, see Deleting a Cluster.
- Request example
DELETE: https://{endpoint}/v1.1/{project_id}/clusters/{cluster_id}
- Obtain the {endpoint} information. For more information about regions and AZs, see Regions and Endpoints.
- For details about {project_id}, see Obtaining a Project ID.
- {cluster_id} indicates the value of cluster_id in the command output returned after the cluster is successfully created. You can also obtain the value of cluster_id by referring to Obtaining a Cluster ID.
Body: None
- Response example
{ "result": "succeeded" }
Last Article: Terminating a Job
Next Article: API V2
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.