All Products
Search
Document Center

VPN Gateway:MoveVpnResourceGroup

最終更新日:Nov 13, 2024

Moves a VPN gateway resource to a new resource group.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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:MoveVpnResourceGroupupdate
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
InstanceIdstringYes

The ID of the resource.

vpn-8vb3lzn7biepthri8****
ResourceTypestringYes

The type of resource.

  • VpnGateway: VPN gateway

    After you move a VPN gateway to a new resource group, the following associated resources are also moved to the new resource group: IPsec servers, SSL servers, SSL client certificates, and IPsec-VPN connections.

  • CustomerGateway: customer gateway

  • VpnAttachment: IPsec-VPN connection

    An IPsec-VPN connection associated with a transit router or not associate with a resource.

VpnGateway
NewResourceGroupIdstringYes

The ID of the new resource group.

rg-acfmzs372yg****
RegionIdstringYes

The region ID of the resource.

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

cn-zhangjiakou

Response parameters

ParameterTypeDescriptionExample
object

The returned result, which indicates whether the operation was successful.

RequestIdstring

The request ID.

89ED47AF-3319-566E-A5F5-94E3F47F54A8

Examples

Sample success responses

JSONformat

{
  "RequestId": "89ED47AF-3319-566E-A5F5-94E3F47F54A8"
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidInstanceId.NotFoundInstanceId is not found.The Express Connect circuit ID is invalid.
400InvalidResourceGroupIdThe specified ResourceGroupId does not exist.The specified resource group ID does not exist.
400InvalidResourceId.NotFoundThe specified ResourceId does not exist.The specified resource ID does not exist.
400IllegalParam.ResourceTypeInvalid Resource Type value.The ResourceType parameter is not supported or set to an invalid value.
403ForbiddenUser 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.

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