删除共享单元。
接口说明
删除共享单元后,与该共享单元关联的所有资源使用者都将失去对共享资源的访问权限。删除共享单元不会删除共享资源。
已成功删除的共享单元,其状态为Deleted,该条记录会在 48~96 小时内被系统自动删除。
本文将提供一个示例,删除地域cn-hangzhou下的共享单元rs-qSkW1HBY****。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| ResourceShareId |
string |
是 |
共享单元 ID。 |
rs-qSkW1HBY**** |
关于公共请求参数的详情,请参见公共参数。
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回结果。 |
||
| RequestId |
string |
请求 ID。 |
A627EE2A-223D-4E1F-A954-394686AEA916 |
示例
正常返回示例
JSON格式
{
"RequestId": "A627EE2A-223D-4E1F-A954-394686AEA916"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | MissingParameter.ResourceShareId | You must specify ResourceShareId. | |
| 400 | InvalidParameter.ResourceShareId | The ResourceShareId is invalid. | |
| 400 | InvalidParameter | The specified parameter is invalid. | |
| 404 | EntityNotExists.ResourceShare | The resource share does not exist in the current account. | |
| 409 | ResourceShareStatusMismatchAction | The status of the resource share does not allow the specified operation. | |
| 409 | DeleteResourceShareConflict | You cannot delete a resource share while there are unfinished tasks. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。