Deleting a Customer Gateway
Function
This API is used to delete a customer gateway with a specified gateway ID.
Calling Method
For details, see Calling APIs.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
- If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
- If you are using identity policy-based authorization, the following identity policy-based permissions are required.
| Action | Access Level | Resource Type (*: required) | Condition Key | Alias | Dependencies |
|---|---|---|---|---|---|
| vpn:customerGateways:delete | write | customerGateways | g:ResourceTag/<tag-key> | - | - |
URI
DELETE /v5/{project_id}/customer-gateways/{customer_gateway_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. |
| customer_gateway_id | String | Yes | Specifies a customer gateway ID. |
Request
Response
- Response parameters
- Example response Response returned when a customer gateway that has been created and has VPN connections fails to be deleted
DELETE https://{Endpoint}/v5/{project_id}/customer-gateways/{customer_gateway_id} { "error_code": "VPN.0001", "error_msg": "invalid request: customer gateway 575c1722-demo-a8df-va86-dd7f41876332 has connection", "request_id": "c923ac44-1890-48d5-a004-5be6432cf361" }
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.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot