You need to enable JavaScript to run this app.
导航

DeleteDnatEntry

最近更新时间2024.04.18 19:19:48

首次发布时间2022.11.03 08:29:57

调用 DeleteDnatEntry 接口,删除DNAT规则。

调试

请求参数

参数名称
类型
是否必选
示例值
描述
ActionStringDeleteDnatEntry要执行的操作,取值:DeleteDnatEntry。
VersionString2020-04-01API的版本信息,当前版本为:2020-04-01。
DnatEntryIdStringdnat-342abc3bc3****DNAT规则的ID。

返回数据

参数名称
类型
示例值
描述
RequestIdString2021062415303301022514515207C4****请求ID。

请求示例

GET /?Action=DeleteDnatEntry&Version=2020-04-01&DnatEntryId=dnat-342abc3bc3**** HTTP/1.1
Host: open.volcengineapi.com
ServiceName: natgateway
Region: cn-beijing

返回示例

{
    "ResponseMetadata": {
        "RequestId": "2021062415303301022514515207C4****",
        "Action": "DeleteDnatEntry",
        "Version": "2020-04-01",
        "Service": "natgateway",
        "Region": "cn-beijing"
    },
    "Result":{
        "RequestId": "2021062415303301022514515207C4****"
    }
}

错误码

公共错误码,请参见 公共错误码 。

HttpCode
错误码
错误信息
描述
400InvalidNatGateway.InvalidStatusThe specified NAT gateway is not in the correct status for the request.指定的NAT网关所处的状态无法响应该请求。
404InvalidDnatEntry.NotFoundThe specified DNAT entry does not exist.指定的DNAT规则不存在。