调用DeleteForwardEntry接口删除指定的DNAT条目。
接口说明
DeleteForwardEntry 接口属于异步接口,即系统会先返回一个请求 ID,但 DNAT 条目并未删除完成,系统后台的删除任务仍在进行。您可以调用 DescribeForwardTableEntries 查询 DNAT 条目的状态:
-
当 DNAT 条目处于 Deleting 状态时,表示 DNAT 条目正在删除中,在该状态下,您只能执行查询操作,不能执行其他操作。
-
当查询不到该 DNAT 条目时,表示 DNAT 条目已删除完成。
如果 DNAT 表中有 DNAT 条目的状态为 Pending 时,无法删除该 DNAT 表中的 DNAT 条目。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RegionId |
string |
是 |
NAT 网关所在的地域 ID。 您可以通过调用 DescribeRegions 接口获取地域 ID。 |
cn-hangzhou |
| ForwardTableId |
string |
是 |
DNAT 条目所属的 DNAT 列表 ID。 |
ftb-8vbx8xu2lqj9qb334**** |
| ForwardEntryId |
string |
是 |
要删除的 DNAT 条目 ID。 |
fwd-8vbn3bc8roygjp0gy**** |
| ClientToken |
string |
否 |
客户端 Token,用于保证请求的幂等性。 从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken 只支持 ASCII 字符。 说明
若您未指定,则系统自动使用 API 请求的 RequestId 作为 ClientToken 标识。每次 API 请求的 RequestId 可能不一样。 |
123e4567-e89b-12d3-a456-426655440000 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
请求 ID。 |
||
| RequestId |
string |
请求 ID。 |
0ED8D006-F706-4D23-88ED-E11ED28DCAC0 |
示例
正常返回示例
JSON格式
{
"RequestId": "0ED8D006-F706-4D23-88ED-E11ED28DCAC0"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | IncorretForwardEntryStatus | Some Forward entry status blocked this operation.. | |
| 400 | MissingParameter | Missing mandatory parameter | |
| 400 | IncorrectStatus.NATGW | The status of the specified NAT gateway is abnormal. | NAT网关状态异常。 |
| 400 | IncorrectStatus.ForwardEntry | The status of %s [%s] is incorrect. | 要删除的DNAT条目实例状态不对 |
| 404 | InvalidRegionId.NotFound | The specified RegionId does not exist in our records. | |
| 404 | InvalidForwardEntryId.NotFound | Specified forward entry ID does not exist | |
| 404 | InvalidForwardTableId.NotFound | Specified forward table does not exist. | |
| 404 | ResourceNotFound.ForwardEntry | The specified resource of %s is not found. | 找不到指定的%s资源。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。