Deleting a VPN Gateway
Function
This API is used to delete a VPN gateway with a specified gateway ID. If a pay-per-use VPN gateway to be deleted is bound to yearly/monthly EIPs, unbind the EIPs first. Otherwise, the VPN gateway cannot be deleted.
Calling Method
For details, see Calling APIs.
URI
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.  | 
     
Request
Response
- Response parameters
 - Example response
    
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" } 
Status Codes
For details, see Status Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.