URI
DELETE /v5/{project_id}/customer-gateways/{customer_gateway_id}
表1 参数说明
名称 |
类型 |
是否必选 |
描述 |
project_id |
String |
是 |
项目ID,可以通过获取项目ID获取项目ID。 |
customer_gateway_id |
String |
是 |
对端网关ID。 |
响应消息
- 响应参数
返回状态码为 204: 删除成功。
- 响应样例
对端网关上已创建有VPN连接,删除失败。
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"
}