Cosmic User API Reference

createNetworkACL

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

Request parameters

Parameter NameDescriptionRequired
protocolthe protocol for the ACL rule. Valid values are TCP/UDP/ICMP/ALL or valid protocol numbertrue
aclidThe network of the VM the ACL will be created forfalse
actionscl entry action, allow or denyfalse
cidrlistthe CIDR list to allow traffic from/tofalse
endportthe ending port of ACLfalse
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
networkidThe network of the VM the ACL will be created forfalse
numberThe network of the VM the ACL will be created forfalse
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 Item
aclidthe ID of the ACL this item belongs to
actionAction of ACL Item. Allow/Deny
cidrlistthe cidr list to forward traffic from
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
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