Queries a DNAT rule.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:DescribeForwardEntryAttribute |
get |
*NatGatewayForwardEntry
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ForwardEntryId |
string |
Yes |
The ID of the DNAT entry. |
fwd-5tfi6f0rutmd00xrhkag7**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| RequestId |
string |
The request ID. |
6666C5A5-75ED-422E-A022-7121FA18C968 |
| NatGatewayId |
string |
The ID of the NAT Gateway. |
nat-5t7nh1cfm6kxiszlttr38**** |
| ForwardEntryId |
string |
The ID of the DNAT entry. |
fwd-5tfi6f0rutmd00xrhkag7**** |
| ExternalIp |
string |
The Elastic IP Address (EIP) that provides public network access in the DNAT entry. |
36.XXX.XXX.72 |
| InternalIp |
string |
The private IP address of the instance that communicates over the public network through the DNAT entry. |
10.XXX.XXX.50 |
| ForwardEntryName |
string |
The name of the DNAT entry. |
test0 |
| Status |
string |
The status of the DNAT entry.
|
Available |
| CreationTime |
string |
The creation time in UTC. |
2020-04-26T15:38:27Z |
| ExternalPort |
string |
The external port or port range for port forwarding.
|
22 |
| InternalPort |
string |
The internal port or port range for port forwarding.
|
22 |
| IpProtocol |
string |
The protocol type. Valid values:
|
Any |
| HealthCheckPort |
string |
The probe port for DNAT. It must fall within the internal port range. The default value is empty. |
80 |
| StandbyExternalIp |
string |
The standby Elastic IP Address (EIP) that provides public network access. You must select a standby EIP attached to the NAT Gateway. The standby public IP becomes active after the DNAT entry is created. |
101.XXX.XXX.4 |
| StandbyStatus |
string |
The status of the standby EIP.
|
Stopped |
Examples
Success response
JSON format
{
"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"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 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. | The specified DNAT does not exist. Check whether the input parameters are correct. |
| 400 | ens.interface.error | Failed to call API. | |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.