CreateForwardEntry çağrısı yaparak bir DNAT girişi ekler.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:CreateForwardEntry |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| NatGatewayId |
string |
Yes |
NAT ağ geçidinin kimliği. |
nat-5t7nh1cfm6kxiszlttr38**** |
| ExternalIp |
string |
Yes |
Genel ağ erişimi sağlayan Esnek IP adresi (EIP). EIP, aynı NAT ağ geçidine ait bir SNAT kuralı tarafından kullanılmamalıdır. EIP'nin Boşta (Idle) durumunda olduğunu doğrulamak için DescribeNatGateways tarafından döndürülen IpLists.UsingStatus alanını kontrol edebilirsiniz. |
121.XXX.XXX.28 |
| ExternalPort |
string |
Yes |
Port yönlendirme için harici port veya port aralığı.
|
22 |
| InternalIp |
string |
Yes |
DNAT girişi üzerinden İnternet ile iletişim kuran örneğin özel IP adresi. |
10.0.XXX.XXX |
| InternalPort |
string |
Yes |
Port yönlendirme için dahili port veya port aralığı.
|
22 |
| ForwardEntryName |
string |
No |
DNAT kuralının adı. Ad, 2 ila 128 karakter uzunluğunda olmalıdır ve http:// veya https:// ile başlamamalıdır. |
test0 |
| IpProtocol |
string |
No |
Protokol türü. Geçerli değerler:
Valid values:
|
Any |
| HealthCheckPort |
integer |
No |
DNAT için sağlık kontrolü portu. Port, dahili port aralığında olmalıdır. Varsayılan değer: boş. |
80 |
| StandbyExternalIp |
string |
No |
Genel ağ erişimi sağlayan yedek EIP. Yedek EIP, NAT ağ geçidine bağlı olmalıdır. DNAT girişi oluşturulduktan sonra yedek EIP devreye girer. |
101.XXX.XXX.4 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Yanıt şeması. |
||
| RequestId |
string |
İstek kimliği. |
EF6D6FA4-DACA-5822-A981-81006271D263 |
| ForwardEntryId |
string |
DNAT girişinin kimliği. |
fwd-5tc07cw14metghn3siv4a**** |
Examples
Success response
JSON format
{
"RequestId": "EF6D6FA4-DACA-5822-A981-81006271D263",
"ForwardEntryId": "fwd-5tc07cw14metghn3siv4a****"
}
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 | InvalidParameter.NatNotFound | The specified Nat is not found. | |
| 400 | InvalidParameter.ExternalIp | The specified externalIp is not found. | |
| 400 | Forbidden.ExternalIpUsedInSnat | Forbidden.ExternalIpUsedInSnat | |
| 400 | InvalidParameter.InternalIpNotFound | The input parameter internalIp that is not found. | |
| 400 | Forbidden.ExternalPort.Duplicated | The specified ExternalPort is duplicated. | |
| 400 | ForwardEntryLimitExceed | The limit of forward entry in the nat reaches. | |
| 400 | InvalidParameter.HealthCheckPort | HealthCheckPort is not in the range of InternalPort | |
| 400 | IncorrectInstanceStatus | The current status of the instance does not support this operation. | |
| 400 | SystemBusy | System is busy, please try again later. | |
| 400 | InvalidParameter.InternalIp | The specified parameter internalIp is invalid. | |
| 400 | InvalidPort.Malformed | The specified port is not a valid port. | |
| 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.