Queries DNAT entries that are associated with a Smart Access Gateway (SAG) instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
smartag:DescribeDnatEntries |
get |
*SmartAccessGateway
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the SAG instance. |
cn-hangzhou |
| SagId |
string |
Yes |
The ID of the SAG instance. Note
Only SAG customer-premises equipment (CPE) instances are supported. |
sag-djgd************* |
| Type |
string |
No |
The type of the DNAT entry. Valid values:
|
Intranet |
| PageSize |
integer |
No |
The number of entries to return on each page. Default value: 10. Maximum value: 50. |
12 |
| PageNumber |
integer |
No |
The number of the page to return. Default value: 1. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| TotalCount |
integer |
The total number of entries returned. |
50 |
| PageSize |
integer |
The number of entries returned per page. Default value: 10. Maximum value: 50. |
1 |
| RequestId |
string |
The ID of the request. |
635640CA-2335-4856-A9CB-1CB5C444DC5A |
| PageNumber |
integer |
The page number of the returned page. Default value: 1. |
12 |
| DnatEntries |
object |
||
| DnatEntry |
array<object> |
The list of DNAT entries. |
|
|
object |
|||
| Type |
string |
The type of the DNAT entry. Valid values:
|
Intranet |
| SagId |
string |
The ID of the SAG instance. |
sag-jfh******** |
| InternalIp |
string |
The destination private IP address. |
192.168.0.1 |
| InternalPort |
string |
The destination private port. Valid values: 1 to 65535 and any. The value any indicates all ports. |
80 |
| IpProtocol |
string |
The protocol used in DNAT. Valid values:
|
tcp |
| ExternalPort |
string |
The public port. Valid values: 1 to 65535 and any. The value any indicates all ports. |
12 |
| DnatEntryId |
string |
The ID of the DNAT entry. |
fwd-kxe4fq3xuzczze**** |
| ExternalIp |
string |
The public IP address. |
10.10.**.** |
Examples
Success response
JSON format
{
"TotalCount": 50,
"PageSize": 1,
"RequestId": "635640CA-2335-4856-A9CB-1CB5C444DC5A",
"PageNumber": 12,
"DnatEntries": {
"DnatEntry": [
{
"Type": "Intranet",
"SagId": "sag-jfh********",
"InternalIp": "192.168.0.1",
"InternalPort": "80",
"IpProtocol": "tcp",
"ExternalPort": "12",
"DnatEntryId": "fwd-kxe4fq3xuzczze****",
"ExternalIp": "10.10.**.**"
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | Forbidden | User not authorized to operate on the specified resource. | You do not have permissions to manage the specified resource. |
| 403 | MissingParameter | The input parameter is missing, please check your input. | Missing parameters. Check whether all required parameters are set. |
| 403 | InvalidParameter | The specified parameter is invalid. | Invalid parameters. |
| 403 | InternalError | An internal server error occurred. | An internal server error occurred. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.