All Products
Search
Document Center

Resource Management:DisassociateResourceSharePermission

Last Updated:Mar 22, 2024

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

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ResourceShareIdstringYes

The ID of the resource share.

rs-6GRmdD3X****
PermissionNamestringYes

The name of the permission. For more information, see Permission library.

AliyunRSDefaultPermissionVSwitch

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

111FB84A-60A9-403E-9067-E55D7EE95BD1

Examples

Sample success responses

JSONformat

{
  "RequestId": "111FB84A-60A9-403E-9067-E55D7EE95BD1"
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidParameter.ResourceShareIdThe ResourceShareId is invalid.The ResourceShareId parameter is invalid.
400MissingParameter.ResourceShareIdYou must specify ResourceShareId.You must specify ResourceShareId.
400MissingParameter.PermissionNameYou must specify PermissionName.PermissionName is not configured.
404EntityNotExists.PermissionThe resource share permission does not exist.You do not have the required permissions.
409DisassociateConflict.PermissionExisting associated resource when disassociating permission with resource share.-

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-05-18The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
    delete Error Codes: 404
    delete Error Codes: 409