Apache CloudStack 4.23.0.0 Root Admin API Reference
updatePortForwardingRule
Updates a port forwarding rule. Only the private port and the Instance can be updated.
Request parameters
| Parameter Name | Description | Required |
| id | The ID of the port forwarding rule | true |
| cidrlist | the source CIDR list to allow traffic from; all other CIDRs will be blocked. Multiple entries must be separated by a single comma character (,). This param will be used only for VPC tiers. By default, all CIDRs are allowed. | false |
| customid | An optional field, in case you want to set a custom id to the resource. Allowed to Root Admins only | false |
| fordisplay | An optional field, whether to the display the rule to the end user or not | false |
| privateendport | The private end port of the port forwarding rule | false |
| privateport | The private start port of the port forwarding rule | false |
| virtualmachineid | The ID of the Instance for the port forwarding rule | false |
| vmguestip | Instance guest NIC Secondary IP address for the port forwarding rule | false |
Response Tags
| Response Name | Description |
| id | The ID of the port forwarding rule |
| cidrlist | The CIDR list to forward traffic from. Multiple entries are separated by a single comma character (,). |
| fordisplay | Is firewall for display to the regular user |
| ipaddress | The public IP address for the port forwarding rule |
| ipaddressid | The public IP address id for the port forwarding rule |
| networkid | The ID of the guest Network the port forwarding rule belongs to |
| networkname | The Name of the guest Network the port forwarding rule belongs to |
| privateendport | The ending port of port forwarding rule's private port range |
| privateport | The starting port of port forwarding rule's private port range |
| protocol | The protocol of the port forwarding rule |
| publicendport | The ending port of port forwarding rule's private port range |
| publicport | The starting port of port forwarding rule's public port range |
| state | The state of the rule |
| virtualmachinedisplayname | The Instance display name for the port forwarding rule |
| virtualmachineid | The Instance ID for the port forwarding rule |
| virtualmachinename | The Instance name for the port forwarding rule |
| vmguestip | The Instance IP address for the port forwarding rule |
| tags(*) | The list of resource tags associated with the rule |
| account | The Account associated with the tag |
| customer | Customer associated with the tag |
| domain | The domain associated with the tag |
| domainid | The ID of the domain associated with the tag |
| domainpath | Path of the Domain associated with the tag |
| key | Tag key name |
| project | The project name where tag belongs to |
| projectid | The project ID the tag belongs to |
| resourceid | ID of the resource |
| resourcetype | Resource type |
| value | Tag value |