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
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:
|
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:
|
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.