CloudStack v2.2.13 - 2.2.14 Root Admin API Reference

createFirewallRule

Creates a firewall rule for a given ip address

Request parameters

Parameter NameDescriptionRequired
protocolthe protocol for the firewall rule. Valid values are TCP/UDP/ICMP.true
cidrlistthe cidr list to forward traffic fromfalse
endportthe ending port of firewall rulefalse
icmpcodeerror code for this icmp messagefalse
icmptypetype of the icmp message being sentfalse
ipaddressidthe IP address id of the port forwarding rulefalse
startportthe starting port of firewall rulefalse
typetype of firewallrule: system/userfalse

Response Tags

Response NameDescription
idthe ID of the firewall rule
cidrlistthe cidr list to forward traffic from
endportthe ending port of firewall rule's port range
icmpcodeerror code for this icmp message
icmptypetype of the icmp message being sent
ipaddressthe public ip address for the port forwarding rule
ipaddressidthe public ip address id for the port forwarding rule
protocolthe protocol of the firewall rule
startportthe starting port of firewall rule's port range
statethe state of the rule