Example #1
0
def getMetricData(namespace, metricName, labels=[], functions=[]):
	action = api_actions.GetMetricDataAction()
	action.namespace = namespace
	action.metricName = metricName
	action.labels = labels
	action.functions = functions
	evt = zs.execute_action_with_session(action,zs.login_as_admin())
	return evt
Example #2
0
def getIpAddressCapacity_all(all=True):
	action = api_actions.GetIpAddressCapacityAction()
	action.all = all
	evt = zs.execute_action_with_session(action,zs.login_as_admin())
	return evt
Example #3
0
def query_host(conditions=[], parameters=[]):
	action = api_actions.QueryHostAction()
	action.conditions = conditions
	action.parameters = parameters
	evt = zs.execute_action_with_session(action,zs.login_as_admin())
	return evt
Example #4
0
def query_shareable_volume_vminstance_ref(conditions=[], parameters=[]):
	action = api_actions.QueryShareableVolumeVmInstanceRefAction()
	action.conditions = conditions
	action.parameters = parameters
	evt = zs.execute_action_with_session(action,zs.login_as_admin())
	return evt
Example #5
0
def query_backupstorage(conditions=[], parameters=[]):
	action = api_actions.QueryBackupStorageAction()
	action.conditions = conditions
	action.parameters = parameters
	evt = zs.execute_action_with_session(action,zs.login_as_admin())
	return evt