Apache CloudStack 4.23.0.0 Root Admin API Reference

importNetworkACL

Imports Network ACL rules.

Request parameters

Parameter NameDescriptionRequired
aclidThe ID of the Network ACL to which the rules will be importedtrue
rulesRules param list, id and protocol are must. Invalid rules will be discarded. Example: rules[0].id=101&rules[0].protocol=tcp&rules[0].traffictype=ingress&rules[0].state=active&rules[0].cidrlist=192.168.1.0/24&rules[0].tags=web&rules[0].aclid=acl-001&rules[0].aclname=web-acl&rules[0].number=1&rules[0].action=allow&rules[0].fordisplay=true&rules[0].description=allow%20web%20traffic&rules[1].id=102&rules[1].protocol=udp&rules[1].traffictype=egress&rules[1].state=enabled&rules[1].cidrlist=10.0.0.0/8&rules[1].tags=db&rules[1].aclid=acl-002&rules[1].aclname=db-acl&rules[1].number=2&rules[1].action=deny&rules[1].fordisplay=false&rules[1].description=deny%20database%20traffictrue

Response Tags

Response NameDescription
idThe ID of the ACL Item
aclidThe ID of the ACL this item belongs to
aclnameThe name of the ACL this item belongs to
actionAction of ACL Item. Allow/Deny
cidrlistThe CIDR list to forward traffic from. Multiple entries are separated by a single comma character (,).
endportThe ending port of ACL's port range
fordisplayIs rule for display to the regular user
icmpcodeError code for this icmp message
icmptypeType of the icmp message being sent
numberNumber of the ACL Item
protocolThe protocol of the ACL
reasonAn explanation on why this ACL rule is being applied
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
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