Deletes a specified IPsec-VPN connection.
Operation description
- The DeleteVpnConnection operation is asynchronous. After you call this operation, the system returns a request ID, but the IPsec-VPN connection is not immediately deleted. The deletion task is still running in the background. You can call DescribeVpnGateway to query the status of the VPN gateway to check the deletion status of the IPsec-VPN connection:
If the VPN gateway is in the updating state, the IPsec-VPN connection is being deleted.
If the VPN gateway is in the active state, the IPsec-VPN connection is deleted.
The DeleteVpnConnection operation does not support concurrent deletion of specified IPsec-VPN connections under the same VPN gateway.
After an 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 the DescribeRegions operation to query region IDs. |
cn-hangzhou |
| ClientToken |
string |
No |
The client token that is used to ensure the idempotence of the request. You can generate the parameter value on your client. Make sure that the client 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 of each API request is different. |
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.