You can call the ReleaseCluster operation to release all nodes of a cluster.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. You can use OpenAPI Explorer to search for API operations, call API operations, and dynamically generate SDK sample code.

Request parameters

Parameter Type Required Example Description
Action String Yes ReleaseCluster

The operation that you want to perform. This parameter is required for API requests that you create by piecing together HTTP or HTTPS URLs. Set the value to ReleaseCluster.

Id String Yes C-D7958B72E59B****

The ID of the cluster. You can call ListClusters Interface to view the cluster ID.

RegionId String Yes cn-hangzhou

The ID of the region to which the cluster belongs. You can call DescribeRegions Interface to view the latest list of Alibaba Cloud regions.

ForceRelease Boolean No true

Specifies whether you forcibly release the nodes. If you do not specify this parameter and enable the log storage feature, the system will save the job logs to your OSS bucket. The log storage process takes a few minutes.

You can also set this parameter to true. In this case, the nodes are released immediately and the job logs are not saved.

Response parameters

Parameter Type Example Description
RequestId String BF4FBAC6-B03E-4BFB-B6DB-EB53C34F2E22

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=ReleaseCluster
&Id=C-D7958B72E59B****
&RegionId=cn-hangzhou
&<common request parameters>

Sample success responses

XML format

<RequestId>1BD8FE28-82AC-4433-848A-37B4928430C4</RequestId>

JSON Syntax

{
    "RequestId":"1BD8FE28-82AC-4433-848A-37B4928430C4"
}