CreatePortForwardingRule
Creates a port forwarding rule. For
example,
CreatePortForwardingRule name=pf1 protocolType=TCP vipUuid=818351340f534190b37dfead4d17341c \
vipPortStart=22 privatePortStart=23 privatePortEnd=23Parameters
| Name | Description | Optional | Valid Value | Starting Version |
|---|---|---|---|---|
| vipUuid | The VIP UUID. | 0.6 | ||
| vipPortStart | The VIP start port. | 0.6 | ||
| vipPortEnd | The VIP end port. If not specified, the value of vipPortStart will be used by default. | Yes | 0.6 | |
| privatePortStart | The start port of the guest IP address (the IP address of the VM NIC). If not specified, the value of vipPortStart will be used by default. | Yes | 0.6 | |
| privatePortEnd | The end port of the guest IP address (the IP address of the VM NIC). If not specified, the value of vipPortEnd will be used by default. | Yes | 0.6 | |
| protocolType | The protocol type of the network traffic. |
|
0.6 | |
| vmNicUuid | The VM NIC UUID. | Yes | 0.6 | |
| allowedCidr | The source CIDR. The port forwarding rule is only applied to the traffics of the source CIDR. If not specified, 0.0.0.0/0 will be used by default. | Yes | 0.6 | |
| name | The name of the port forwarding rule. | 0.6 | ||
| description | The detailed description of the port forwarding rule. | Yes | 0.6 | |
| resourceUuid | The resource UUID. | Yes | 0.6 | |
| userTags | The user tags. For more information, see CreateUserTag. The resource type is PortForwardingRuleVO. | Yes | 0.6 | |
| systemTags | The system tags. For more information, see CreateSystemTag. The resource type is PortForwardingRuleVO. | Yes | 0.6 | |
| timeout | Yes |