All Products
Search
Document Center

:ChangeResourceGroup

更新時間:Aug 15, 2023

Moves an Express Connect circuit to a new resource group.

Usage notes

The ChangeResourceGroup operation holds an exclusive lock on the Express Connect circuit. While the operation is in progress, you cannot call the same operation in the same Alibaba Cloud account.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ChangeResourceGroup

The operation that you want to perform. Set the value to ChangeResourceGroup.

NewResourceGroupId String Yes rg-bp1drpcfz9srr393h****

The ID of the resource group to which you want to move the resource.

Note You can use resource groups to manage resources owned by your Alibaba Cloud account. Resource groups simplify the resource and permission management of your Alibaba Cloud account. For more information, see What is resource management?
ResourceType String Yes PHYSICALCONNECTION

The resource type. Valid values:

  • PHYSICALCONNECTION:: an Express Connect circuit.
  • VIRTUALBORDERROUTER:: a virtual border router (VBR).
  • ROUTERINTERFACE:: a VBR-to-VPC connection.
ResourceId String Yes pc-bp16qjewdsunr41m1****

The Express Connect circuit ID.

RegionId String Yes cn-hangzhou

The region ID of the resource group.

You can call the DescribeRegions operation to query the most recent region list.

Response parameters

Parameter Type Example Description
RequestId String 54B48E3D-DF70-471B-AA93-08E683A1B45

The request ID.

Examples

Sample requests

http(s)://[Endpoint]/?Action=ChangeResourceGroup
&NewResourceGroupId=rg-bp1drpcfz9srr393h****
&ResourceType=PHYSICALCONNECTION
&ResourceId=pc-bp16qjewdsunr41m1****
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<ChangeResourceGroupResponse>
    <RequestId>54B48E3D-DF70-471B-AA93-08E683A1B45</RequestId>
</ChangeResourceGroupResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "54B48E3D-DF70-471B-AA93-08E683A1B45"
}

Error codes

For a list of error codes, see Service error codes.