调用DeleteResourceGroup删除资源组。
接口说明
说明
删除资源组前,请先删除资源组中的资源。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
ResourceGroupId | string | 是 | 资源组 ID。 您可以调用 ListResourceGroups 查询资源组 ID。 | rg-9gLOoK**** |
返回参数
示例
正常返回示例
JSON
格式
{
"RequestId": "1C488B66-B819-4D14-8711-C4EAAA13AC01",
"ResourceGroup": {
"DisplayName": "my-project",
"Status": "PendingDelete",
"RegionStatuses": {
"RegionStatus": [
{
"Status": "PendingDelete",
"RegionId": "cn-qingdao"
}
]
},
"AccountId": "123456789****",
"Name": "my-project",
"CreateDate": "2015-01-23T12:33:18Z",
"Id": "rg-9gLOoK****"
}
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | InvalidParameter.ResourceGroupId | The ResourceGroupId is invalid. | 资源组ID无效。 |
404 | EntityNotExists.ResourceGroup | The specified resource group does not exist. You must first create a resource group. | 资源组不存在,请先创建资源组。 |
409 | DeleteConflict.ResourceGroup.Resource | Failed to delete the resource group because one or more cloud resources exist in the resource group. Try again later after you release the cloud resources. | 资源组下存在云资源,请先释放资源。 |
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 |
---|
暂无变更历史