Deletes an IPsec-VPN connection.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DeleteVpnConnection |
The operation that you want to perform. Set the value to DeleteVpnConnection. |
RegionId | String | Yes | cn-hangzhou |
The ID of the region where the IPsec-VPN connection is created. You can call the DescribeRegions operation to query region IDs. |
VpnConnectionId | String | Yes | vco-bp1bbi27hojx80nck**** |
The ID of the IPsec-VPN connection. |
ClientToken | String | No | 02fb3da4-130e-11e9-8e44-0016e04115b |
The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must ensure that it is unique among different requests. The token can only contain ASCII characters and cannot exceed 64 characters in length. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 606998F0-B94D-48FE-8316-ACA81BB230DA |
The ID of the request. |
Examples
Sample requests
https://vpc.aliyuncs.com/?Action=DeleteVpnConnection
&RegionId=cn-hangzhou
&VpnConnectionId=vco-bp1bbi27hojx80nck****
&<Common request parameters>
Sample success responses
XML
format
<DeleteVpnConnectionResponse>
<RequestId>606998F0-B94D-48FE-8316-ACA81BB230DA</RequestId>
</DeleteVpnConnectionResponse>
JSON
format
{
"RequestId":"606998F0-B94D-48FE-8316-ACA81BB230DA"
}
Error codes
HttpCode | 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. | The error message returned because you are unauthorized to perform the operation on the specified resource. Apply for the permissions and try again. |
403 | Forbidden | User not authorized to operate on the specified resource. | The error message returned because you are unauthorized to perform the operation on the specified resource. To acquire the required permissions, submit a ticket. |
404 | InvalidVpnConnectionInstanceId.NotFound | The specified vpn connection instance id does not exist. | The error message returned because the specified IPsec-VPN connection does not exist. You must check whether the ID of the IPsec-VPN connection is valid. |
400 | VpnGateway.Configuring | The specified service is configuring. | The error message returned because the specified service is being configured. Try again later. |
For a list of error codes, visit the API Error Center.