Queries the created DNAT entries.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:DescribeForwardTableEntries |
get |
*ForwardTable
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the NAT gateway. You can call the DescribeRegions operation to obtain the region ID. |
cn-hangzhou |
| ForwardTableId |
string |
No |
The ID of the DNAT table. Note
You must specify at least one of the ForwardTableId and NatGatewayId parameters. |
ftb-bp1mbjubq34hlcqpa**** |
| ForwardEntryId |
string |
No |
The ID of the DNAT entry. |
fwd-8vbn3bc8roygjp0gy**** |
| ExternalIp |
string |
No |
|
116.28.XX.XX |
| ExternalPort |
string |
No |
|
8080 |
| InternalIp |
string |
No |
The private IP address.
|
192.168.XX.XX |
| InternalPort |
string |
No |
|
80 |
| IpProtocol |
string |
No |
The protocol type. Valid values:
|
tcp |
| ForwardEntryName |
string |
No |
The name of the DNAT entry. The name must be 2 to 128 characters in length, and must start with a letter or Chinese character. It can contain digits, underscores (_), and hyphens (-). |
ForwardEntry-1 |
| PageNumber |
integer |
No |
The page number of the list. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page for a paged query. Maximum value: 50. Default value: 10. |
10 |
| NatGatewayId |
string |
No |
The ID of the NAT gateway to query. Note
You must specify at least one of the ForwardTableId and NatGatewayId parameters. |
ngw-bp1uewa15k4iy5770**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| PageSize |
integer |
The number of entries per page. |
10 |
| RequestId |
string |
The request ID. |
A6C4A8B1-7561-4509-949C-20DEB40D71E6 |
| PageNumber |
integer |
The current page number. |
1 |
| TotalCount |
integer |
The total number of entries in the list. |
5 |
| ForwardTableEntries |
object |
||
| ForwardTableEntry |
array<object> |
The details of the queried DNAT table. |
|
|
object |
The details of the queried DNAT table. |
||
| Status |
string |
The status of the DNAT entry. Valid values:
|
Available |
| ForwardEntryId |
string |
The ID of the DNAT entry. |
fwd-119smw5tk**** |
| InternalIp |
string |
The private IP address.
|
192.168.XX.XX |
| InternalPort |
string |
|
25 |
| ForwardEntryName |
string |
The name of the DNAT entry. |
ForwardEntry-1 |
| ForwardTableId |
string |
The ID of the DNAT table to which the DNAT entry belongs. |
ftb-11tc6xgmv**** |
| IpProtocol |
string |
The protocol type. Valid values:
|
tcp |
| ExternalPort |
string |
|
80 |
| ExternalIp |
string |
|
139.79.XX.XX |
| NatGatewayId |
string |
The ID of the NAT gateway to which the DNAT entry belongs. |
ngw-bp1uewa15k4iy5770**** |
Examples
Success response
JSON format
{
"PageSize": 10,
"RequestId": "A6C4A8B1-7561-4509-949C-20DEB40D71E6",
"PageNumber": 1,
"TotalCount": 5,
"ForwardTableEntries": {
"ForwardTableEntry": [
{
"Status": "Available",
"ForwardEntryId": "fwd-119smw5tk****",
"InternalIp": "192.168.XX.XX",
"InternalPort": "25",
"ForwardEntryName": "ForwardEntry-1",
"ForwardTableId": "ftb-11tc6xgmv****",
"IpProtocol": "tcp",
"ExternalPort": "80",
"ExternalIp": "139.79.XX.XX",
"NatGatewayId": "ngw-bp1uewa15k4iy5770****"
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IncorretForwardEntryStatus | Some Forward entry status blocked this operation.. | |
| 400 | DESCRIBE_FORWARD_PARAM_INVALID | ForwardTableId and natGatewayId can not both be null | |
| 404 | InvalidRegionId.NotFound | The specified RegionId does not exist in our records. | |
| 404 | InvalidForwardTableId.NotFound | Specified forwardTableId does not exist |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.