- 文档首页
NAT网关
API参考
DNAT规则
DescribeDnatEntryAttributes - 查看DNAT规则详情
DNAT规则
DescribeDnatEntryAttributes - 查看DNAT规则详情
DescribeDnatEntryAttributes - 查看DNAT规则详情
调用 DescribeDnatEntryAttributes 接口,查看DNAT规则详情。
使用说明
- 传入多个请求参数,按照传入的参数进行查询,返回符合所有条件的DNAT规则,若没有符合条件的DNAT规则,则返回空值。
- 若请求参数非必选参数均未传入,则按照当前登录账号查询,返回当前账号下的所有DNAT规则。
调试
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
请求参数
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。 Action string 必选 示例值:DescribeDnatEntryAttributes
要执行的操作,取值:DescribeDnatEntryAttributes。
Version string 必选 示例值:2020-04-01
API的版本,取值:2020-04-01。
DnatEntryId string 必选 示例值:dnat-342abc3bc3****
DNAT规则的ID。
返回参数
下方仅列出本接口特有的返回参数。更多信息请参见返回结构。 ExternalPort string 示例值:34
接收来自公网外部请求的端口或端口段。
RequestId string 示例值:2021062415303301022514515207C4****
请求ID。
NatGatewayId string 示例值:ngw-2feq5xhimd88w59gp686****
DNAT规则所属NAT网关的ID。
DnatEntryId string 示例值:dnat-342abc3bc3****
DNAT规则的ID。
DnatEntryName string 示例值:dnat-01
DNAT规则的名称。
Status string 示例值:Available
DNAT规则的状态。
InternalIp string 示例值:192.XX.XX.88
云服务器实例的私网IP。
InternalPort string 示例值:12
云服务器实例私网IP的端口或端口段。
ExternalIp string 示例值:12.XX.XX.34
NAT网关用于网络地址转换的IP地址。
- 当NAT网关为公网NAT网关时,传入其绑定的公网IP地址。
- 当NAT网关为私网NAT网关时,传入其中转IP地址。
Protocol string 示例值:tcp
协议类型。
PortType string 示例值:specified
DNAT规则的端口类型。
请求示例
GET /?Action=DescribeDnatEntryAttributes&Version=2020-04-01&DnatEntryId=dnat-342abc3bc3**** HTTP/1.1
Host: natgateway.cn-beijing.volcengineapi.com
返回示例
"RequestId": "2021062415303301022514515207C4****",
"Action": "DescribeDnatEntryAttributes",
"Version": "2020-04-01",
"Service": "natgateway",
"RequestId": "2021062415303301022514515207C4****",
"NatGatewayId": "ngw-2feq5xhimd88w59gp686****",
"DnatEntryId": "dnat-342abc3bc3****",
"PortType": "specified",
"InternalIp": "192.XX.XX.88",
"ExternalIp": "12.XX.XX.34",
错误码
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。
最近更新时间:2025.08.21 10:11:17