Ask Your Question

Get a list of virtual machines from stack using heat API

asked 2013-05-31 00:40:05 -0500

Serg.Slipushenko gravatar image

updated 2013-05-31 00:40:44 -0500

I have a question about Heat API. Does any one can help me? I create a stack using Heat API. Question is, how we can get a list of virtual machines from this stack using heat API?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-06-12 09:49:25 -0500

gfidente gravatar image

I suppose you meant to ask how to get a list of instances composing a stack.

For that I'd try the following, assuming you have some wordpress stack running:

# heat resource-list wordpress
| DatabaseTemplate | AWS::CloudFormation::Stack | CREATE_COMPLETE | 2013-06-12T13:52:17Z |
| WebServer        | AWS::EC2::Instance         | CREATE_COMPLETE | 2013-06-12T13:52:26Z |
# heat resource-show wordpress WebServer
| logical_resource_id    | WebServer |
| physical_resource_id   | 181b6265-21a6-468e-b3c9-939956621fc3 |

that physical_resource_id is the id of a nova instance

edit flag offensive delete link more


I need to write code that accesses Heat via a Rest API to invoke Heat commands (i.e. : a Heat Rest client) I found only a python client, but I need java/groovy code. - Where can I find Java/Groovy client docs and/or libs that I can use to do that ? Where can I find such examples ? I want to be able to invoke the following commands (from a remote machine) : (These are some examples of what I need) heat stack-create myAppName .... heat stack-list heat event-list myAppName heat stack-delete myApp3 Thanks

tamirko gravatar imagetamirko ( 2013-08-11 08:40:22 -0500 )edit

Given that Heat implements the AWS CloudFormation API ( you could probably learn more about the API calls in the AWS docs (

gfidente gravatar imagegfidente ( 2013-08-16 04:15:22 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-05-31 00:40:05 -0500

Seen: 1,176 times

Last updated: Jun 12 '13