Skip to main content

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

NameLocationTypeRequiredSample valueDescription
ExternalPortBODYstringYes8080public network port, value range:1~65535.
PortBreakBODYbooleanNofalseWhether 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.
versionBODYstringNo2016-01-01version of api
ForwardTableIdBODYstringYesftb-bp1mbjubq34hlcqpa****DNAT list ID.
ExternalIpBODYstringYes116.XX.XX.28public IP address.
regionIdBODYstringYesNo sample value for this parameter.region id
IpProtocolBODYstringYesTCPprotocol type. Value: TCP: Forwarding TCP protocol messages. UDP: Forwarding UDP protocol messages. Any: forward messages of all protocols.
InternalPortBODYstringYes80target private network port, value range:1~65535.
RegionIdBODYstringYescn-qingdao-env17-d0the region ID where the NAT gateway is located. You can obtain the region ID by calling the DescribeRegions interface.
ClientTokenBODYstringNo0c593ea1-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.
ForwardEntryNameBODYstringNoForwardEntry-1DNAT rule name. 2 to 128 characters in length, which must start with a letter or Chinese, but cannot start with http:// or https://.
InternalIpBODYstringYes192.XX.XX.1target private network IP.

Return data

NameTypeSample valueDescription
RequestIDstring1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DCRequest id

Example

Successful Response example

{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}