Moves a Cloud Enterprise Network (CEN) instance or a bandwidth plan to another resource group.

Usage notes

By default, CEN instances and bandwidth plans are in the default resource group. You can call MoveResourceGroup to move CEN instances or bandwidth plans to another resource group.

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 MoveResourceGroup

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

ClientToken String No 123e456****

The client token that is used to ensure the idempotence of the request.

You can use the client to generate the value, but you must make sure that it is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.

Note If you do not set this parameter, the system automatically uses RequestId as ClientToken. RequestId may be different for each API request.
DryRun Boolean No false

Specifies whether to only precheck the request. Valid values:

  • true precheck the request and does not change the resource group to which the CEN instance or bandwidth plan belongs. The system checks the required parameters, request syntax, and limits. If the request fails the precheck, an error message is returned. If the request passes the precheck, the DryRunOperation error code is returned.
  • false (default): sends the API request. If the request passes the precheck, a 2xx HTTP status code is returned and the operation is performed.
NewResourceGroupId String Yes rg-aekzqqurtfg****

The ID of the resource group to which you want to move the CEN instance or bandwidth plan.

ResourceType String Yes cen

The resource type. Valid values:

  • CEN: CEN instance
  • bandwidthpackage: bandwidth plan
ResourceId String Yes cen-nye53d7p3hzyu4****

The ID of the resource.

Response parameters

Parameter Type Example Description
RequestId String 1D169236-7C76-57CF-B6C8-B4CACE0BA1BB

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=MoveResourceGroup
&ClientToken=123e456****
&DryRun=false
&NewResourceGroupId=rg-aekzqqurtfg****
&ResourceType=cen
&ResourceId=cen-nye53d7p3hzyu4****
&Common request parameters

Sample success responses

XML format

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

<MoveResourceGroupResponse>
    <RequestId>1D169236-7C76-57CF-B6C8-B4CACE0BA1BB</RequestId>
</MoveResourceGroupResponse>

JSON format

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

{
  "RequestId" : "1D169236-7C76-57CF-B6C8-B4CACE0BA1BB"
}

Error codes

For a list of error codes, visit the API Error Center.