Modifies the resource group to which a cloud resource belongs.
Operation description
The ChangeResourceGroup operation does not support concurrent modifications of the resource group for Express Connect circuit resources within the same Express Connect circuit instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:MoveResourceGroup |
update |
BandwidthPackage
Eip
VPC
PrefixList
GatewayEndpoint
DhcpOptionsSet
FlowLog
HaVip
Ipv4Gateway
Ipv6Gateway
PublicIpAddressPool
TrafficMirrorFilter
TrafficMirrorSession
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceId |
string |
Yes |
The instance ID of the cloud resource for which you want to modify the resource group. |
vpc-hp31psbg8ec3023s6**** |
| ResourceType |
string |
Yes |
The type of the cloud resource for which you want to modify the resource group. Valid values:
|
vpc |
| NewResourceGroupId |
string |
Yes |
The ID of the resource group to which you want to move the cloud resource instance. Note
A resource group is a mechanism for managing resources by group within an Alibaba Cloud account. Resource groups help you address complex resource grouping and authorization management issues within a single cloud account. For more information, see What is Resource Management?. |
rg-acfm3peow3k**** |
| RegionId |
string |
Yes |
The region ID of the cloud resource. You can call the DescribeRegions operation to query the region ID. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The request ID. |
||
| 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 error message returned because the specified EIP bandwidth plan does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.