CreateForwardEntry
Description
Use CreateForwardEntry to add DNAT entries to the DNAT list.
Request Method
POST
Request Path
/apsara/route/Vpc/CreateForwardEntry
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
ExternalPort | BODY | string | Yes | 8080 | public network port, value range:1~65535. |
PortBreak | BODY | boolean | No | false | Whether to open port breakthrough, value: true: open port breakthrough. false(default): do not open port breakthrough. description when DNAT entry and SNAT entry use the same public IP address, if you want to configure a port number greater than 1024, you need to specify PortBreak as true. |
version | BODY | string | No | 2016-01-01 | version of api |
ForwardTableId | BODY | string | Yes | ftb-bp1mbjubq34hlcqpa**** | DNAT list ID. |
ExternalIp | BODY | string | Yes | 116.XX.XX.28 | public IP address. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
IpProtocol | BODY | string | Yes | TCP | protocol type. Value: TCP: Forwarding TCP protocol messages. UDP: Forwarding UDP protocol messages. Any: forward messages of all protocols. |
InternalPort | BODY | string | Yes | 80 | target private network port, value range:1~65535. |
RegionId | BODY | string | Yes | cn-qingdao-env17-d0 | the region ID where the NAT gateway is located. You can obtain the region ID by calling the DescribeRegions interface. |
ClientToken | BODY | string | No | 0c593ea1-3bea-11e9-b96b-88e9fe637**** | Ensure request idempotence. Generate a parameter value from your client to ensure that the parameter value is unique between different requests. The ClientToken only supports ASCII characters and cannot exceed 64 characters. |
ForwardEntryName | BODY | string | No | ForwardEntry-1 | DNAT rule name. 2 to 128 characters in length, which must start with a letter or Chinese, but cannot start with http:// or https://. |
InternalIp | BODY | string | Yes | 192.XX.XX.1 | target private network IP. |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestID | string | 1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC | Request id |
Example
Successful Response example
{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}