Deletes an IPsec connection.

Note After an IPsec connection is deleted, the VPC is disconnected from the network of the on-premises data center.


By using API Explorer, you can easily debug APIs, automatically generate SDK code examples, and quickly search for APIs.

Request parameters

Parameter Type Required? Example value Description
Action String Yes DeleteVpnConnection

The name of this action. Value:


RegionId String Yes cn-hangzhou

The ID of the region to which the IPsec connection belongs.

To query the region ID, call DescribeRegions.

VpnConnectionId String Yes vco-bp1bbi27hojx80nck9k1i

The ID of the IPsec connection.

ClientToken String No 02fb3da4-130e-11e9-8e44-0016e04115b

A client token used to guarantee the idempotence of requests.

This parameter value is generated by the client and must be unique. It must be 1 to 64 ASCII characters in length.

Response parameters

Parameter Type Example value Description
RequestId String 606998F0-B94D-48FE-8316-ACA81BB230DA The ID of the request.


Request example
Response example
  • XML format

  • JSON format


Error codes

HTTP status code Error code Error message Description
403 Forbbiden.SubUser User not authorized to operate on the specified resource as your account is created by another user. You are not authorized to operate on this resource. Please apply for the permission and try again.
403 Forbidden User not authorized to operate on the specified resource. You are not authorized to operate on this resource. For more information, open a ticket.
404 InvalidVpnConnectionInstanceId.NotFound The specified vpn connection instance id does not exist. The specified VPN connection does not exist. Check that the VPN connection exists.
400 VpnGateway.Configuring The specified service is configuring. The service is being configured. Please try again later.

See common error codes