Queries DNAT entries.
Debugging
Request parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| Action | String | Yes | DescribeForwardTableEntries |
The operation that you want to perform. Set the value to DescribeForwardTableEntries. |
| RegionId | String | Yes | cn-hangzhou |
The region ID of the NAT gateway. You can call the DescribeRegions operation to query the most recent region list. |
| ForwardTableId | String | No | ftb-bp1mbjubq34hlcqpa**** |
The ID of the DNAT table. Note You must set at least one of the ForwardTableId and NatGatewayId parameters.
|
| ForwardEntryId | String | No | fwd-8vbn3bc8roygjp0gy**** |
The ID of the DNAT entry. |
| ExternalIp | String | No | 116.28.XX.XX |
|
| ExternalPort | String | No | 8080 |
|
| InternalIp | String | No | 192.168.XX.XX |
The private IP address.
|
| InternalPort | String | No | 80 |
|
| IpProtocol | String | No | TCP |
The protocol. Valid values:
|
| ForwardEntryName | String | No | ForwardEntry-1 |
The name of the DNAT entry. The name must be 2 to 128 characters in length, and can contain digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. |
| PageNumber | Integer | No | 1 |
The page number of the page to return. Default value: 1. |
| PageSize | Integer | No | 10 |
The number of entries to return on each page. Maximum value: 50. Default value: 10. |
| NatGatewayId | String | No | ngw-bp1uewa15k4iy5770**** |
The ID of the NAT gateway. Note You must set at least one of the ForwardTableId and NatGatewayId parameters.
|
Response parameters
| Parameter | Type | Example | Description |
|---|---|---|---|
| PageSize | Integer | 10 |
The number of entries returned per page. |
| RequestId | String | A6C4A8B1-7561-4509-949C-20DEB40D71E6 |
The ID of the request. |
| PageNumber | Integer | 1 |
The page number of the returned page. |
| TotalCount | Integer | 5 |
The number of entries returned. |
| ForwardTableEntries | Array of ForwardTableEntry |
The details of DNAT entries. |
|
| ForwardTableEntry | |||
| Status | String | Available |
The status of the DNAT entry. Valid values:
|
| ForwardEntryId | String | fwd-119smw5tk**** |
The ID of the DNAT entry. |
| InternalIp | String | 192.168.XX.XX |
The private IP address.
|
| InternalPort | String | 25 |
|
| ForwardEntryName | String | ForwardEntry-1 |
The name of the DNAT entry. |
| ForwardTableId | String | ftb-11tc6xgmv**** |
The ID of the DNAT table to which the DNAT entry belongs. |
| IpProtocol | String | TCP |
The protocol. Valid values:
|
| ExternalPort | String | 80 |
|
| ExternalIp | String | 139.79.XX.XX |
|
Examples
Sample requests
http(s)://[Endpoint]/?Action=DescribeForwardTableEntries
&RegionId=cn-hangzhou
&ForwardTableId=ftb-bp1mbjubq34hlcqpa****
&ForwardEntryId=fwd-8vbn3bc8roygjp0gy****
&ExternalIp=116.28.XX.XX
&ExternalPort=8080
&InternalIp=192.168.XX.XX
&InternalPort=80
&IpProtocol=TCP
&ForwardEntryName=ForwardEntry-1
&PageNumber=1
&PageSize=10
&NatGatewayId=ngw-bp1uewa15k4iy5770****
&Common request parameters
Sample responses
XML format
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeForwardTableEntriesResponse>
<PageSize>10</PageSize>
<RequestId>A6C4A8B1-7561-4509-949C-20DEB40D71E6</RequestId>
<PageNumber>1</PageNumber>
<TotalCount>5</TotalCount>
<ForwardTableEntries>
<Status>Available</Status>
<ForwardEntryId>fwd-119smw5tk****</ForwardEntryId>
<InternalIp>192.168.XX.XX</InternalIp>
<InternalPort>25</InternalPort>
<ForwardEntryName>ForwardEntry-1</ForwardEntryName>
<ForwardTableId>ftb-11tc6xgmv****</ForwardTableId>
<IpProtocol>TCP</IpProtocol>
<ExternalPort>80</ExternalPort>
<ExternalIp>139.79.XX.XX</ExternalIp>
</ForwardTableEntries>
</DescribeForwardTableEntriesResponse>
JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"PageSize" : 10,
"RequestId" : "A6C4A8B1-7561-4509-949C-20DEB40D71E6",
"PageNumber" : 1,
"TotalCount" : 5,
"ForwardTableEntries" : [ {
"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"
} ]
}
Error codes
| HttpCode | Error code | Error message | Description |
|---|---|---|---|
| 400 | IncorretForwardEntryStatus | Some Forward entry status blocked this operation.. | The error message returned because you are not authorized to perform the specified operation. The error message returned because one or more DNAT entries in the DNAT table are in the Pending or Modifying state. |
| 404 | InvalidRegionId.NotFound | The specified RegionId does not exist in our records. | The error message returned because the specified region ID does not exist. |
| 404 | InvalidForwardTableId.NotFound | Specified forwardTableId does not exist | The error message returned because the specified DNAT table does not exist. Check the parameter value and try again. |
For a list of error codes, visit the API Error Center.