This API is used to delete a VPN gateway with a specified gateway ID.
For details, see Calling APIs.
DELETE /v5/{project_id}/vpn-gateways/{vgw_id}
Parameter |
Type |
Mandatory |
Description |
|---|---|---|---|
project_id |
String |
Yes |
Specifies a project ID. You can obtain the project ID by referring to Obtaining the Project ID. |
vgw_id |
String |
Yes |
Specifies the ID of a VPN gateway instance. |
Response returned when a VPN gateway being created fails to be deleted
{
"error_code":"VPN.0003",
"error_msg":"resource (type=GATEWAY, ID=ff9bdca6-demo-a8df-va86-e4bcc1ea52bc) is not ready, currently CREATING",
"request_id": "1d94a4e8-fdc2-7bfd-943e-19bfa9b234ac"
}
For details, see Status Codes.