All Products
Search
Document Center

Express Connect:MoveResourceGroup

Last Updated:Jun 19, 2026

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

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

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

vpc:MoveResourceGroup

update

BandwidthPackage

acs:vpc:{#regionId}:{#accountId}:bandwidthpackage/{#BandwidthPackageId}

Eip

acs:vpc:{#regionId}:{#accountId}:eip/{#AllocationId}

VPC

acs:vpc:{#regionId}:{#accountId}:vpc/{#VpcId}

PrefixList

acs:vpc:{#regionId}:{#accountId}:prefixlist/{#PrefixListId}

GatewayEndpoint

acs:vpc:{#regionId}:{#accountId}:gatewayendpoint/{#GatewayEndpointId}

DhcpOptionsSet

acs:vpc:{#regionId}:{#accountId}:dhcpoptionsset/{#DhcpOptionsSetId}

FlowLog

acs:vpc:{#regionId}:{#accountId}:flowlog/{#FlowLogId}

HaVip

acs:vpc:{#regionId}:{#accountId}:havip/{#HaVipId}

Ipv4Gateway

acs:vpc:{#regionId}:{#accountId}:ipv4gateway/{#Ipv4GatewayId}

Ipv6Gateway

acs:vpc:{#regionId}:{#accountId}:ipv6gateway/{#Ipv6GatewayId}

PublicIpAddressPool

acs:vpc:{#regionId}:{#accountId}:publicipaddresspool/{#PublicIpAddressPoolId}

TrafficMirrorFilter

acs:vpc:{#regionId}:{#accountId}:trafficmirrorfilter/{#TrafficMirrorFilterId}

TrafficMirrorSession

acs:vpc:{#regionId}:{#accountId}:trafficmirrorsession/{#TrafficMirrorSessionId}

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: virtual private cloud (VPC)

  • Eip: elastic IP address (EIP)

  • BandwidthPackage: Internet Shared Bandwidth

  • PrefixList: prefix list

  • PublicIpAddressPool: IPAM pool

  • FlowLog: flow log

  • HaVip: high-availability (HA) virtual IP address

  • TrafficMirrorFilter: traffic mirror filter

  • TrafficMirrorSession: traffic mirror session

  • IPv4Gateway: IPv4 gateway

  • IPv6Gateway: IPv6 gateway

  • IPv6Address: IPv6 address

  • DhcpOptionsSet: DHCP options set

  • GatewayEndpoint: gateway endpoint

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.