Transfers a resource share from one resource group to another.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
resourcesharing:ChangeResourceGroup | update | *ResourceShare acs:resourcesharing:{#regionId}:{#accountId}:resourceshare/{#ResourceShareId} |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ResourceId | string | Yes | The ID of the resource share. | rs-dz3Ek1iiO*** |
ResourceRegionId | string | Yes | The region ID of the resource share. | cn-hangzhou |
ResourceGroupId | string | Yes | The ID of the destination resource group. | rg-aek2nb47ueqk*** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "0A900114-22D3-5E9D-87A2-48E5EB5BF310"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | NoPermission.ChangeResourceGroup | You are not authorized to change resourcegroup | You do not have permissions to change the resource group. |
400 | MissingParameter.ResourceRegionId | The ResourceRegionId parameters that are required for processing this request are missing | The ResourceRegionId parameter is not configured. |
400 | MissingParameter.ResourceId | The ResourceId parameters that are required for processing this request are missing | The ResourceId parameter is not configured. |
400 | MissingParameter.ResourceGroupId | The ResourceGroupId parameters that are required for processing this request are missing | The ResourceGroupId parameter is not configured. |
400 | InvalidResourceGroup | The specified ResourceGroupId is invalid | The ResourceGroupId parameter is invalid. |
400 | SystemError | A system error occurred while processing your request | A system exception occurred. |
400 | ResourceNotFound | The specified resource is not found | The resource does not exist within your account. |
For a list of error codes, visit the Service error codes.