All Products
Search
Document Center

Resource Management:DisassociateResourceSharePermission

Last Updated:Aug 28, 2026

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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

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.