Apache CloudStack 4.23.0.0 Root Admin API Reference
createRoutingFirewallRule
Creates a routing firewall rule in the given network in ROUTED mode
Request parameters
| Parameter Name | Description | Required |
| networkid | The network of the VM the firewall rule will be created for | true |
| protocol | the protocol for the firewall rule. Valid values are TCP/UDP/ICMP/ALL or valid protocol number | true |
| cidrlist | the source CIDR list to allow traffic from. Multiple entries must be separated by a single comma character (,). | false |
| destcidrlist | the destination CIDR list to allow traffic to. Multiple entries must be separated by a single comma character (,). | false |
| endport | the ending port of firewall rule | false |
| fordisplay | an optional field, whether to the display the rule to the end user or not | false |
| icmpcode | error code for this ICMP message | false |
| icmptype | type of the ICMP message being sent | false |
| startport | the starting port of firewall rule | false |
| traffictype | the traffic type for the Routing firewall rule, can be ingress or egress, defaulted to ingress if not specified | 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 |