Guest User

Heat Stack List

a guest
Jun 23rd, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. from heatclient.client import Client
  2.  
  3.  
  4. tenant_id = 'b363706f891f48019483f8bd6503c54b'
  5. heat_url = 'http://heat.example.org:8004/v1/%s' % tenant_id
  6. auth_token = '3bcc3d3a03f44e3d8377f9247b0ad155'
  7.  
  8. heat = Client('1', endpoint=heat_url, token=auth_token)
  9. stacks = heat.stacks.list()
  10. for stack in stacks:
  11. if stack.status == "CREATE_COMPLETE":
  12. print stack
Add Comment
Please, Sign In to add comment