DeleteNatGateway_专有网络_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.

接口说明

DeleteNatGateway 接口属于异步接口,即系统会先返回一个请求 ID,但该 NAT 网关实例并未删除完成,系统后台的删除任务仍在进行。您可以调用 DescribeNatGateways 查询 NAT 网关的状态:

  • 当 NAT 网关处于 Deleting 状态时,表示 NAT 网关正在删除中,在该状态下,您只能执行查询操作,不能执行其他操作。

  • 当查询不到该 NAT 网关实例时,表示 NAT 网关删除完成。

说明 删除 NAT 网关操作不可恢复,请您谨慎操作。

流控信息

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

授权信息

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

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
vpc:DeleteNatGateway
Delete
NatGateway
acs:vpc:{#regionId}:{#accountId}:natgateway/{#natgatewayid}

请求参数

字段名称字段详情
RegionIdstring

NAT 网关所在的地域 ID。展开详情

示例值:cn-hangzhou参考取值来源:
    DescribeRegions
NatGatewayIdstring

要删除的 NAT 网关的实例 ID。

示例值:ngw-bp1uewa15k4iy5770****参考取值来源:
    CreateNatGateway
    DescribeNatGateways
Forceboolean

是否强制删除 NAT 网关,取值:展开详情

示例值:false

返回参数

字段名称字段详情
RequestIdstring

请求 ID。

示例值:0ED8D006-F706-4D23-88ED-E11ED28DCAC0

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
DependencyViolation.VpcEndpointService
The specified resource of %s depends on %s, so the operation cannot be completed.诊断
400
DependencyViolation.FullNatEntry
The specified resource of %s depends on %s, so the operation cannot be completed.诊断
400
DependencyViolation.RouterEntry
The specified resource of %s depends on %s, so the operation cannot be completed.诊断
400
DependencyViolation.BandwidthPackages
There are BandwidthPackages on specified NatGateway not deleted.诊断
400
DependencyViolation.EIPS
There are Eips on specified NatGateway, please unbind it first.诊断
400
Forbidden.PrePaidNatGateway
The specified NatGateway is PrePaid.诊断
400
InvalidOperation.DeletionProtection
The instance cannnot delete because of deletion protecion.诊断
400
DependencyViolation.SnatEntry
The specified resource of %s depends on %s, so the operation cannot be completed.诊断
400
IncorrectStatus.SnatEntry
The status of %s [%s] is incorrect.诊断
400
DependencyViolation.ForwardEntry
The specified resource of %s depends on %s, so the operation cannot be completed.诊断
400
IncorrectStatus.ForwardEntry
The status of %s [%s] is incorrect.诊断
400
DependencyViolation.NatIp
The specified resource of %s depends on %s, so the operation cannot be completed.诊断
400
IncorrectStatus.NatIp
The status of %s [%s] is incorrect.诊断
400
DependencyViolation.NatIpCidr
The specified resource of %s depends on %s, so the operation cannot be completed.诊断
400
IncorrectStatus.NatGateway
The NatGateway instance is being deleted and needs to wait until the process is complete.诊断
400
IncorrectStatus.RouterEntry
The status of %s [%s] is incorrect.诊断
400
IncorrectStatus.VSwitch
The specified vSwitch status is invalid.诊断
404
INSTANCE_NOT_EXISTS
Instance not exists.诊断
404
InvalidRegionId.NotFound
The specified RegionId does not exist in our records.诊断
404
InvalidNatGatewayId.NotFound
The specified NatGatewayId does not exist in our records.诊断
404
IncorrectStatus.NatGateway
%s诊断
404
ResourceNotFound.NatGateway
The specified resource of %s is not found.诊断

变更历史

变更时间变更内容概要操作
2024-01-18
变更错误码400
2023-12-20
变更错误码400
2021-07-09
变更错误码400

相关示例

删除NAT网关
2021-02-20