Moves a resource to another resource group.
Operation description
ChangeResourceGroup 接口不支持在同一个物理专线实例内并发修改物理专线资源所属的资源组。
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceId |
string |
Yes |
The resource ID. |
vpc-hp31psbg8ec3023s6**** |
| ResourceType |
string |
Yes |
The resource type. Valid values:
|
vpc |
| NewResourceGroupId |
string |
Yes |
The destination resource group ID. Note
Resource groups help you organize resources and manage permissions within your Alibaba Cloud account. For more information, see What is resource management? |
rg-acfm3peow3k**** |
| RegionId |
string |
Yes |
The region ID of the resource. Call the DescribeRegions operation to query available regions. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
611CB80C-B6A9-43DB-9E38-0B0AC3D9B58F |
Examples
Success response
JSON format
{
"RequestId": "611CB80C-B6A9-43DB-9E38-0B0AC3D9B58F"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidResourceGroupId | The specified ResourceGroupId does not exist. | The specified resource group ID does not exist. |
| 400 | InvalidResourceId.NotFound | The specified ResourceId does not exist. | |
| 400 | IllegalParam.ResourceType | Invalid Resource Type value. | The ResourceType parameter is not supported or set to an invalid value. |
| 400 | OperationFailed.InstanceStatusNotAllowed | The current status of the resource does not support this operation. | The resource in this state does not support the current operation. |
| 400 | IncorrectStatus.Vpc | The status of %s [%s] is incorrect. | The instance is in an invalid state. |
| 400 | Forbidden.OperateManagedFlowLog | Authentication is failed for operate managed flowlog. | Authentication failed when operating the managed flow log. |
| 404 | InvalidBandwidthPackageId.NotFound | The specified bandwidthPackage resourceId does not exist in our records. | The specified EIP bandwidth plan does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.