DeleteCustomerGateway_专有网络_API文档

插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

接口说明

删除用户网关前,请确保用户网关未关联任何 IPsec 连接。删除 IPsec 连接,请参见 DeleteVpnAttachmentDeleteVpnConnection

流控信息

当前云产品API请求速率暂未透出。

授权信息

如下是此API对应的授权信息,用于RAM权限策略语句的Action元素中,为RAM用户或RAM角色授予调用此API的权限。请通过 RAM 访问控制设置,使用方法可参考访问控制帮助文档

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
vpc:DeleteCustomerGateway
Delete
CustomerGateway
acs:vpc:{#regionId}:{#accountId}:customergateway/{#CustomerGatewayId}

请求参数

字段名称字段详情
RegionIdstring

用户网关所在的地域 ID。您可以通过调用 DescribeRegions 接口获取地域 ID。

示例值:cn-shanghai参考取值来源:
    DescribeRegions
ClientTokenstring

客户端 Token,用于保证请求的幂等性。展开详情

示例值:02fb3da4-130e-11e9-8e44-0016e04****
CustomerGatewayIdstring

用户网关的实例 ID。

示例值:cgw-bp1pvpl9r9adju6l5****参考取值来源:
    CreateCustomerGateway
    DescribeCustomerGateways
    ModifyCustomerGatewayAttribute

返回参数

字段名称字段详情
RequestIdstring

请求 ID。

示例值:606998F0-B94D-48FE-8316-ACA81BB230DA

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
DependencyViolation.VpnConnection
There are vpn connections on specified customer gateway not deleted.诊断
400
VpnGateway.task.conflict
The VPN is in the configuration state, please wait a while before operating.诊断
403
Forbbiden.SubUser
User not authorized to operate on the specified resource as your account is created by another user.诊断
403
Forbidden
User not authorized to operate on the specified resource.诊断
404
InvalidCustomerGatewayInstanceId.NotFound
The specified customer gateway instance id does not exist.诊断

变更历史

变更时间变更内容概要操作
2024-01-04
变更错误码400

相关示例

创建用户网关->查询已创建的用户网关列表->查询已创建的用户网关->修改用户网关的名称和描述信息->删除指定的用户网关
2022-08-01