All Products
Search
Document Center

Virtual Private Cloud:ChangeResourceGroup

Last Updated:Mar 22, 2024

Moves an Express Connect circuit to a new resource group.

Operation description

You cannot repeatedly call the ChangeResourceGroup operation to modify the resource group of the same Express Connect circuit.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
vpc:ChangeResourceGroupWrite
  • PhysicalConnection
    acs:vpc:*:{#accountId}:physicalconnection/{#PhysicalConnectionId}
  • VirtualBorderRouter
    acs:vpc:*:{#AccountId}:virtualborderrouter/{#VbrId}
  • RouterInterface
    acs:vpc:*:{#AccountId}:routerinterface/{#RouterInterfaceId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
NewResourceGroupIdstringYes

The ID of the new resource group.

Note You can use resource groups to manage resources within your Alibaba Cloud account by group. This helps you resolve issues such as resource grouping and permission management for your Alibaba Cloud account. For more information, see What is Resource Management?
rg-bp1drpcfz9srr393h****
ResourceTypestringYes

The type of the resource. Valid values:

  • PHYSICALCONNECTION: Express Connect circuit.
  • VIRTUALBORDERROUTER: virtual border router (VBR).
  • ROUTERINTERFACE: router interface.
PHYSICALCONNECTION
ResourceIdstringYes

The ID of the Express Connect circuit whose resource group you want to modify.

pc-bp16qjewdsunr41m1****
RegionIdstringYes

The ID of the region to which the new resource group belongs.

You can call the DescribeRegions operation to obtain the region ID.

cn-hangzhou

Response parameters

ParameterTypeDescriptionExample
object

The request ID.

RequestIdstring

The request ID.

54B48E3D-DF70-471B-AA93-08E683A1B45

Examples

Sample success responses

JSONformat

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

Error codes

HTTP status codeError codeError messageDescription
400ResourceType.UnknownUnknown ResourceType.The resource type is invalid.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-09-11API Description Update. The Error code has changedsee changesets
Change itemChange content
API DescriptionAPI Description Update.
Error CodesThe Error code has changed.
    delete Error Codes: 400
2023-07-25The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    Added Error Codes: 400
2023-07-20The internal configuration of the API is changed, but the call is not affectedsee changesets
Change itemChange content
The internal configuration of the API is changed, but the call is not affected.