Disassociates a permission from a resource share. A permission can be disassociated only if the resource share does not contain resources of the type indicated by the permission.
Operation description
The following example shows how to disassociate the AliyunRSDefaultPermissionVSwitch permission from the rs-6GRmdD3X**** resource share in the cn-hangzhou region.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceShareId |
string |
Yes |
The ID of the resource share. |
rs-6GRmdD3X**** |
| PermissionName |
string |
Yes |
The name of the permission. For more information, see Permission library. |
AliyunRSDefaultPermissionVSwitch |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
111FB84A-60A9-403E-9067-E55D7EE95BD1 |
Examples
Success response
JSON format
{
"RequestId": "111FB84A-60A9-403E-9067-E55D7EE95BD1"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 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. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.