Deletes a specified IPsec-VPN connection.
Operation description
- DeleteVpnConnection is an asynchronous operation. After you send a request, the system returns a request ID, but the IPsec-VPN connection is not yet deleted. The deletion task continues to run in the background. You can call DescribeVpnGateway to query the status of the VPN gateway instance to determine the deletion status of the IPsec-VPN connection:
If the VPN gateway instance is in the updating state, the IPsec-VPN connection is being deleted.
If the VPN gateway instance is in the active state, the IPsec-VPN connection is deleted.
DeleteVpnConnection does not support concurrent deletion of IPsec-VPN connections under the same VPN gateway.
After the IPsec-VPN connection is deleted, the connection between the on-premises data center and Alibaba Cloud is interrupted.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:DeleteVpnConnection |
delete |
*VpnConnection
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the IPsec-VPN connection. You can call DescribeRegions to query the most recent region list. |
cn-hangzhou |
| ClientToken |
string |
No |
The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters. Note
If you do not specify this parameter, the system automatically uses the RequestId of the API request as the ClientToken. The RequestId may be different for each API request. |
02fb3da4-130e-11e9-8e44-0016e04115b |
| VpnConnectionId |
string |
Yes |
The ID of the IPsec-VPN connection. |
vco-bp1bbi27hojx80nck**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
606998F0-B94D-48FE-8316-ACA81BB230DA |
Examples
Success response
JSON format
{
"RequestId": "606998F0-B94D-48FE-8316-ACA81BB230DA"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | VpnGateway.Configuring | The specified service is configuring. | |
| 400 | VpnTask.CONFLICT | Vpn task has conflict. | The VPN operation conflicts. Try again later. |
| 400 | VpnGateway.FinancialLocked | The specified service is financial locked. | |
| 400 | InternalError | The request processing has failed due to some unknown error, exception or failure. | |
| 400 | InvalidVpnGatewayInstanceId.NotFound | The specified vpn gateway instance id does not exist. | The specified VPN gateway does not exist. Check whether the specified VPN gateway is valid. |
| 403 | Forbbiden.SubUser | User not authorized to operate on the specified resource as your account is created by another user. | |
| 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. |
| 404 | InvalidVpnConnectionInstanceId.NotFound | The specified vpn connection instance id does not exist. | The specified vpn connection instance id does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.