Disassociates a permission from a resource share. You can disassociate a permission from a resource share only if the resource share does not contain resources of the type indicated by the permission.
Operation description
This topic provides an example on how to call the API operation to disassociate the AliyunRSDefaultPermissionVSwitch
permission from the rs-6GRmdD3X****
resource share in the cn-hangzhou
region.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
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 parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "111FB84A-60A9-403E-9067-E55D7EE95BD1"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
The ResourceShareId parameter is invalid. | |||
You must specify ResourceShareId. | |||
PermissionName is not configured. | |||
You do not have the required permissions. | |||
- |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
see changesets | ||||||||||
|