Apache CloudStack v4.1.0 User API Reference

createNetworkACL

Creates a ACL rule the given network (the network has to belong to VPC)

Request parameters

Parameter NameDescriptionRequired
networkidThe network of the vm the ACL will be created fortrue
protocolthe protocol for the ACL rule. Valid values are TCP/UDP/ICMP.true
cidrlistthe cidr list to allow traffic from/tofalse
endportthe ending port of ACLfalse
icmpcodeerror code for this icmp messagefalse
icmptypetype of the icmp message being sentfalse
startportthe starting port of ACLfalse
traffictypethe traffic type for the ACL,can be Ingress or Egress, defaulted to Ingress if not specifiedfalse

Response Tags

Response NameDescription
idthe ID of the ACL
cidrlistthe cidr list to forward traffic from
endportthe ending port of ACL's port range
icmpcodeerror code for this icmp message
icmptypetype of the icmp message being sent
protocolthe protocol of the ACL
startportthe starting port of ACL's port range
statethe state of the rule
traffictypethe traffic type for the ACL
tags(*)the list of resource tags associated with the network ACLs
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
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