def list_services(kwargs=None, conn=None, call=None):
 if (call != 'function'):
  raise SaltCloudSystemExit('The list_services function must be called with -f or --function.')
 if (not conn):
  conn = get_conn()
 data = conn.list_hosted_services()
 ret = {}
 for item in data.hosted_services:
  ret[item.service_name] = object_to_dict(item)
  ret[item.service_name]['name'] = item.service_name
 return ret

def list_services ( kwargs = None , conn = None , call = None ) : if ( call != 'function' ) : raise SaltCloudSystemExit ( 'The list_services function must be called with -f or --function.' ) if ( not conn ) : conn = get_conn ( ) data = conn . list_hosted_services ( ) ret = { } for item in data . hosted_services : ret [ item . service_name ] = object_to_dict ( item ) ret [ item . service_name ] [ 'name' ] = item . service_name return ret
list services belonging to this account cli example: salt myminion pagerduty .