调用DeleteSnatEntry接口删除指定的SNAT条目。
接口说明
DeleteSnatEntry 接口属于异步接口,即系统会先返回一个请求 ID,但 SNAT 条目并未删除完成,系统后台的删除任务仍在进行。您可以调用 DescribeSnatTableEntries 查询 SNAT 条目的状态:
-
当 SNAT 条目处于 Deleting 状态时,表示 SNAT 条目正在删除中,在该状态下,您只能执行查询操作,不能执行其他操作。
-
当返回的 SNAT 条目列表为空时,表示 SNAT 条目删除完成。
如果 SNAT 表中有 SNAT 条目的状态为 Pending 时,无法删除该 SNAT 表中的 SNAT 条目。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RegionId |
string |
是 |
NAT 网关所在的地域 ID。 您可以通过调用 DescribeRegions 接口获取地域 ID。 |
cn-hangzhou |
| SnatTableId |
string |
是 |
SNAT 条目所属的 SNAT 表的 ID。 |
stb-bp190wu8io1vgev80**** |
| SnatEntryId |
string |
是 |
要删除的 SNAT 条目的 ID。 |
snat-bp1vcgcf8tm0plqcg**** |
| ClientToken |
string |
否 |
客户端 Token,用于保证请求的幂等性。 从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken 只支持 ASCII 字符。 说明
若您未指定,则系统自动使用 API 请求的 RequestId 作为 ClientToken 标识。每次 API 请求的 RequestId 可能不一样。 |
5A2CFF0E-5718-45B5-9D4D-70B3FF3898 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求 ID。 |
0ED8D006-F706-4D23-88ED-E11ED28DCAC0 |
示例
正常返回示例
JSON格式
{
"RequestId": "0ED8D006-F706-4D23-88ED-E11ED28DCAC0"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | IncorretSnatEntryStatus | Some Snat entry status blocked this operation.. | |
| 400 | IncorrectStatus.SnatEntry | The Specified SnatEntry is not stable status, can not operation | The specified SNAT entries are not in a stable state and cannot be operated. |
| 404 | InvalidRegionId.NotFound | The specified RegionId does not exist in our records. | |
| 404 | InvalidSnatEntryId.NotFound | Specified Snat entry ID does not exist | |
| 404 | InvalidSnatTableId.NotFound | Specified SNAT table does not exist. | |
| 404 | ResourceNotFound.SnatEntry | Specified SNAT entry does not exist. | 指定的SNAT条目不存在。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。