Queries DNAT entries.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
vpc:DescribeForwardTableEntries | get |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The ID of the region where you want to create the NAT gateway. You can call the DescribeRegions operation to query the most recent region list. | cn-hangzhou |
ForwardTableId | string | No | The ID of the DNAT table. ** Description You must specify at least one of ForwardTableId and NatGatewayId. | 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. Valid values:
| TCP |
ForwardEntryName | string | No | 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. | ForwardEntry-1 |
PageNumber | integer | No | The page number. Default value: 1. | 1 |
PageSize | integer | No | The number of entries per page. Maximum value: 50. Default value: 10. | 10 |
NatGatewayId | string | No | The ID of the NAT gateway. ** Description You must specify at least one of ForwardTableId and NatGatewayId. | ngw-bp1uewa15k4iy5770**** |
Response parameters
Examples
Sample success responses
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.. | The operation is not supported because one or more DNAT entries in the DNAT table are in the Pending or Modifying state. |
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. | The specified region ID does not exist. |
404 | InvalidForwardTableId.NotFound | Specified forwardTableId does not exist | The specified DNAT table does not exist. Check the parameter and try again. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2023-08-09 | The Error code has changed. The response structure of the API has changed | View Change Details |
2023-03-01 | The Error code has changed | View Change Details |