调用DescribeForwardEntryAttribute查询指DNAT规则的明细信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
ens:DescribeForwardEntryAttribute |
get |
*NatGatewayForwardEntry
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| ForwardEntryId |
string |
是 |
DNAT 条目的 ID。 |
fwd-5tfi6f0rutmd00xrhkag7**** |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回结果。 |
||
| RequestId |
string |
请求 ID。 |
6666C5A5-75ED-422E-A022-7121FA18C968 |
| NatGatewayId |
string |
NAT 网关的 ID。 |
nat-5t7nh1cfm6kxiszlttr38**** |
| ForwardEntryId |
string |
DNAT 条目的 ID。 |
fwd-5tfi6f0rutmd00xrhkag7**** |
| ExternalIp |
string |
DNAT 条目中提供公网访问的弹性公网 IP 地址。 |
36.XXX.XXX.72 |
| InternalIp |
string |
通过 DNAT 条目进行公网通信的实例的私网 IP 地址。 |
10.XXX.XXX.50 |
| ForwardEntryName |
string |
DNAT 条目的名称。 |
test0 |
| Status |
string |
DNAT 条目状态。
|
Available |
| CreationTime |
string |
创建时间,UTC 时间。 |
2020-04-26T15:38:27Z |
| ExternalPort |
string |
需要进行端口转发的外部端口或端口段。
|
22 |
| InternalPort |
string |
进行端口转发的内部端口或端口段。
|
22 |
| IpProtocol |
string |
协议类型,取值:
|
Any |
| HealthCheckPort |
string |
DNAT 的探测端口,需要在内网端口范围内。默认值为空。 |
80 |
| StandbyExternalIp |
string |
提供公网访问的备用弹性公网 IP 地址,需要选择绑定在 NAT 上的备用弹性 IP。DNAT 创建成功后,备用公网 IP 会生效。 |
101.XXX.XXX.4 |
| StandbyStatus |
string |
备用 EIP 状态。
|
Stopped |
示例
正常返回示例
JSON格式
{
"RequestId": "6666C5A5-75ED-422E-A022-7121FA18C968",
"NatGatewayId": "nat-5t7nh1cfm6kxiszlttr38****",
"ForwardEntryId": "fwd-5tfi6f0rutmd00xrhkag7****",
"ExternalIp": "36.XXX.XXX.72",
"InternalIp": "10.XXX.XXX.50",
"ForwardEntryName": "test0",
"Status": "Available",
"CreationTime": "2020-04-26T15:38:27Z",
"ExternalPort": "22",
"InternalPort": "22",
"IpProtocol": "Any",
"HealthCheckPort": "80",
"StandbyExternalIp": "101.XXX.XXX.4",
"StandbyStatus": "Stopped"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | Invalid%s | The specified parameter %s is invalid. | |
| 400 | Missing%s | You must specify the parameter %s. | |
| 400 | InvalidForwardEntryId.NotFound | The specified forwardEntry is not found. | 指定的 DNAT 不存在,请您检查输入参数是否正确。 |
| 400 | ens.interface.error | Failed to call API. | 接口调用发生异常。 |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。