Apache CloudStack 4.20.0.0 Root Admin API Reference

createRoutingFirewallRule

Creates a routing firewall rule in the given network in ROUTED mode

Request parameters

Parameter NameDescriptionRequired
networkidThe network of the VM the firewall rule will be created fortrue
protocolthe protocol for the firewall rule. Valid values are TCP/UDP/ICMP/ALL or valid protocol numbertrue
cidrlistthe source CIDR list to allow traffic from. Multiple entries must be separated by a single comma character (,).false
destcidrlistthe destination CIDR list to allow traffic to. Multiple entries must be separated by a single comma character (,).false
endportthe ending port of firewall rulefalse
fordisplayan optional field, whether to the display the rule to the end user or notfalse
icmpcodeerror code for this ICMP messagefalse
icmptypetype of the ICMP message being sentfalse
startportthe starting port of firewall rulefalse
traffictypethe traffic type for the Routing firewall rule, can be ingress or egress, defaulted to ingress if not specifiedfalse

Response Tags

Response NameDescription
idthe ID of the port forwarding rule
cidrlistthe cidr list to forward traffic from. Multiple entries are separated by a single comma character (,).
fordisplayis firewall for display to the regular user
ipaddressthe public ip address for the port forwarding rule
ipaddressidthe public ip address id for the port forwarding rule
networkidthe id of the guest network the port forwarding rule belongs to
privateendportthe ending port of port forwarding rule's private port range
privateportthe starting port of port forwarding rule's private port range
protocolthe protocol of the port forwarding rule
publicendportthe ending port of port forwarding rule's private port range
publicportthe starting port of port forwarding rule's public port range
statethe state of the rule
virtualmachinedisplaynamethe VM display name for the port forwarding rule
virtualmachineidthe VM ID for the port forwarding rule
virtualmachinenamethe VM name for the port forwarding rule
vmguestipthe vm ip address for the port forwarding rule
tags(*)the list of resource tags associated with the rule
accountthe account associated with the tag
customercustomer associated with the tag
domainthe domain associated with the tag
domainidthe ID of the domain associated with the tag
domainpathpath of the Domain associated with the tag
keytag key name
projectthe project name where tag belongs to
projectidthe project id the tag belongs to
resourceidid of the resource
resourcetyperesource type
valuetag value