def show_stack(name=None, profile=None):
 h_client = _auth(profile)
 if (not name):
  return {'result': False, 'comment': 'Parameter name missing or None'}
 try:
  ret = {}
  stack = h_client.stacks.get(name)
  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, 'parameters': stack.parameters, 'links': links}
  ret['result'] = True
 except exc.HTTPNotFound:
  return {'result': False, 'comment': 'No stack {0}'.format(name)}
 return ret

def show_stack ( name = None , profile = None ) : h_client = _auth ( profile ) if ( not name ) : return { 'result' : False , 'comment' : 'Parameter name missing or None' } try : ret = { } stack = h_client . stacks . get ( name ) 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 , 'parameters' : stack . parameters , 'links' : links } ret [ 'result' ] = True except exc . HTTPNotFound : return { 'result' : False , 'comment' : 'No stack {0}' . format ( name ) } return ret
return details about a specific stack name name of the stack profile profile to use cli example: .