You need to enable JavaScript to run this app.
文档中心
NAT网关

NAT网关

复制全文
下载 pdf
DNAT规则
DescribeDnatEntryAttributes - 查看DNAT规则详情
复制全文
下载 pdf
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规则的状态。​
  • Creating:创建中。​
  • Deleting:删除中。​
  • Available:可用。​
​
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​
协议类型。​
  • tcp:转发TCP协议的报文。​
  • udp:转发UDP协议的报文。​
​
PortType string 示例值:specified​
DNAT规则的端口类型。​
  • specified:指定端口。​
  • any:任意端口。即IP映射。​
​
​
​
请求示例​
​
GET /?Action=DescribeDnatEntryAttributes&Version=2020-04-01&DnatEntryId=dnat-342abc3bc3**** HTTP/1.1​
Host: natgateway.cn-beijing.volcengineapi.com​
ServiceName: natgateway​
Region: cn-beijing​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "2021062415303301022514515207C4****",​
"Action": "DescribeDnatEntryAttributes",​
"Version": "2020-04-01",​
"Service": "natgateway",​
"Region": "cn-beijing"​
},​
"Result":{​
"RequestId": "2021062415303301022514515207C4****",​
"NatGatewayId": "ngw-2feq5xhimd88w59gp686****",​
"DnatEntryId": "dnat-342abc3bc3****",​
"PortType": "specified",​
"Protocol": "tcp",​
"InternalIp": "192.XX.XX.88",​
"InternalPort": "12",​
"ExternalIp": "12.XX.XX.34",​
"ExternalPort": "34",​
"Status": "Available"​
}​
}​
​
错误码​
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。​
​
状态码​
错误码​
错误信息​
说明​
400​
MissingParameter​
The request is missing a required parameter.​
该请求缺少必要参数。​
400​
InvalidParameter​
A parameter specified in the request is not valid, is unsupported or cannot be used.​
该请求传入了非法或不支持的参数。​
404​
InvalidDnatEntry.NotFound​
The specified DNAT entry does not exist.​
指定的DNAT规则不存在。​
500​
InternalError​
An internal error has occurred.​
发生内部错误。​
​
​
最近更新时间:2025.08.21 10:11:17
这个页面对您有帮助吗?
有用
有用
无用
无用