Transfers a resource share from one resource group to another.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
resourcesharing:ChangeResourceGroup |
update |
*ResourceShare
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceId |
string |
Yes |
The ID of the resource share. |
rs-dz3Ek1iiO*** |
| ResourceRegionId |
string |
Yes |
The ID of the region where the resource share resides. |
cn-hangzhou |
| ResourceGroupId |
string |
Yes |
The destination resource group. |
rg-aek2nb47ueqk*** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| RequestId |
string |
The request ID. |
0A900114-22D3-5E9D-87A2-48E5EB5BF310 |
Examples
Success response
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. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.