def list_stack(profile=None):
 ret = {}
 h_client = _auth(profile)
 for stack in h_client.stacks.list():
  links = {}
  for link in stack.links:
   links[link['rel']] = link['href']
  ret[stack.stack_name] = {'status': stack.stack_status, 'id': stack.id, 'name': stack.stack_name, 'creation': stack.creation_time, 'owner': stack.stack_owner, 'reason': stack.stack_status_reason, 'links': links}
 return ret

def list_stack ( profile = None ) : ret = { } h_client = _auth ( profile ) for stack in h_client . stacks . list ( ) : links = { } for link in stack . links : links [ link [ 'rel' ] ] = link [ 'href' ] ret [ stack . stack_name ] = { 'status' : stack . stack_status , 'id' : stack . id , 'name' : stack . stack_name , 'creation' : stack . creation_time , 'owner' : stack . stack_owner , 'reason' : stack . stack_status_reason , 'links' : links } return ret
return a list of available stack profile profile to use cli example: .