8000 support for listNetworkACLs by devnuller · Pull Request #4 · jasonhancock/cloudstack-python-client · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Aug 22, 2020. It is now read-only.

support for listNetworkACLs #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 55 additions & 1 deletion CloudStack/Client.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,27 @@ def updateNetwork(self, args={}):
raise RuntimeError("Missing required argument 'id'")

return self.request('updateNetwork', args)

def listNetworkACLs(self, args={}):
'''
args - A dictionary. The following are options for keys:
id - Lists network ACL with the specified ID
account - List resources by account. Must be used with the
domainId parameter.
domainid - list only resources belonging to the domain specified
isrecursive - defaults to false, but if true, lists all resources from
the parent specified by the domainId till leaves
keyword - List by keyword
listall - If set to false, list only resources belonging to the command's
caller; if set to true - list resources that the caller is authorized to see.
Default value is false
networkid - list network ACLs by network Id
projectid - list objects by project
tags - List resources by tags (key/value pairs)
traffictype - list network ACLs by traffic type - Ingress or Egress
'''

return self.request('listNetworkACLs', args)


def createPhysicalNetwork(self, args={}):
Expand Down Expand Up @@ -901,7 +922,40 @@ def listNetscalerLoadBalancers(self, args={}):
'''

return self.request('listNetscalerLoadBalancers', args)


def listVPCs(self,args={}):
'''
lists Virtual Private Clouds (VPCs) configured

args - A dictionary. The following are options for keys:
account - list by account associated with the VPC. Must be used
with the domainId parameter.
account - List resources by account. Must be used with the domainId parameter.
cidr - list by cidr of the VPC. All VPC guest networks' cidrs should be within this CIDR
displaytext - List by display text of the VPC
domainid - list by dom 7ACB ain ID associated with the VPC. If used with the account
parameter returns the VPC associated with the account for the specified domain.
domainid - list only resources belonging to the domain specified
id - list VPC by id false
isrecursive - defaults to false, but if true, lists all resources from the parent
specified by the domainId till leaves.
keyword - List by keyword
listall - If set to false, list only resources belonging to the command's caller;
if set to true - list resources that the caller is authorized to see. Default
value is false
name - list by name of the VPC
page -
pagesize -
projectid - list objects by project
restartrequired - list VPCs by restartRequired option
state - list VPCs by state
supportedservices - list VPC supporting certain services
tags - List resources by tags (key/value pairs)
vpcofferingid - list by ID of the VPC offering
zoneid - list by zone
'''

return self.request('listVPCs',args)

def deployVirtualMachine(self, args={}):
'''
Expand Down
0