调用DisassociateResourceSharePermission为共享单元解除共享权限。当共享单元下权限对应的资源类型没有关联具体资源时,才允许从共享单元中删除权限。
接口说明
本文将提供一个示例,在cn-hangzhou地域的共享单元rs-6GRmdD3X****中,解除共享权限AliyunRSDefaultPermissionVSwitch。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| ResourceShareId |
string |
是 |
共享单元 ID。 |
rs-6GRmdD3X**** |
| PermissionName |
string |
是 |
共享权限名称。在权限库文档中查看。 |
AliyunRSDefaultPermissionVSwitch |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回结果。 |
||
| RequestId |
string |
请求 ID。 |
111FB84A-60A9-403E-9067-E55D7EE95BD1 |
示例
正常返回示例
JSON格式
{
"RequestId": "111FB84A-60A9-403E-9067-E55D7EE95BD1"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InvalidParameter.ResourceShareId | The ResourceShareId is invalid. | |
| 400 | MissingParameter.ResourceShareId | You must specify ResourceShareId. | |
| 400 | MissingParameter.PermissionName | You must specify PermissionName. | |
| 404 | EntityNotExists.Permission | The resource share permission does not exist. | |
| 409 | DisassociateConflict.Permission | Existing associated resource when disassociating permission with resource share. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。