调用 ReleaseCluster 接口释放集群所有节点。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String ReleaseCluster

系统规定参数。取值:ReleaseCluster

RegionId String cn-hangzhou

区域ID。

Id String C-D7958B72E59B****

集群ID。

ForceRelease Boolean true

正常释放时,如果您打开了日志保存,系统会花费几分钟时间将作业的日志都保存到您的OSS空间中。

您也可以勾选强制释放选项,放弃日志的保存,立即释放。

返回数据

名称 类型 示例值 描述
RequestId String BF4FBAC6-B03E-4BFB-B6DB-EB53C34F2E22

请求ID。

示例

请求示例

http(s)://[Endpoint]/?Action=ReleaseCluster
&RegionId=cn-hangzhou
&Id=C-D7958B72E59B****
&ForceRelease=true
&公共请求参数

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<ReleaseClusterResponse>
    <RequestId>BF4FBAC6-B03E-4BFB-B6DB-EB53C34F2E22</RequestId>
</ReleaseClusterResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "BF4FBAC6-B03E-4BFB-B6DB-EB53C34F2E22"
}

错误码

HttpCode 错误码 错误信息 描述
400 Cluster.RegionId.NotMatch The cluster does not exist in region %s. 集群不属于该Region,切换到正确的Region
400 Cluster.Cannot.Release Failed to release the cluster. 集群释放失败,请选择正确的集群
400 Prepaid.Cluster.Cannot.Release Prepaid clusters do not support the release operation. 包年包月集群不支持释放操作
400 InternalError The request processing has failed due to some unknown error. 内部错误,请提工单
400 ClusterId.NotFound The specified cluster ID %s does not exist. Cluster Id不存在,确认集群的Cluster Id
400 RAM.Permission.NotAllow You are not authorized to perform the operation. 没有权限执行此操作,请联系主账号授权
400 User.Account.Abnormal The user account is out of service. 用户账号已经停止服务
400 Cluster.Role.NotConfirm The DDI RAM role has not been granted. DDI的RAM角色没有授权,在RAM中授权
400 DB.Fail A database access error occurred. 数据库访问错误,请重试或者提工单
400 User.OtherUserResource.NotAllow You are not authorized to operate other users resource. 不能操作其它用户的资源
403 Params.Illegal The format of the specified parameter is invalid. 参数格式错误

访问错误中心查看更多错误码。

访问错误中心查看更多错误码。