Modifies the resource group to which a VPN gateway resource belongs.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:MoveVpnResourceGroup |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID of the resource. |
vpn-8vb3lzn7biepthri8**** |
| ResourceType |
string |
Yes |
The resource type. Valid values:
|
VpnGateway |
| NewResourceGroupId |
string |
Yes |
The ID of the new resource group to which the resource belongs. |
rg-acfmzs372yg**** |
| RegionId |
string |
Yes |
The region ID of the resource. You can call the DescribeRegions operation to query the region ID. |
cn-zhangjiakou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
89ED47AF-3319-566E-A5F5-94E3F47F54A8 |
Examples
Success response
JSON format
{
"RequestId": "89ED47AF-3319-566E-A5F5-94E3F47F54A8"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidInstanceId.NotFound | InstanceId is not found. | The Express Connect circuit ID is invalid. |
| 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. |
| 403 | Forbidden | User not authorized to operate on the specified resource. | You do not have the permissions to manage the specified resource. Apply for the permissions and try again. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.