How to create a heat stack with Availability zone parameter. [closed]

asked 2016-02-29 00:34:40 -0500

CloudIsMyLife gravatar image

updated 2016-02-29 12:00:26 -0500

I wanted to create a Heat Stack API with a parameter availabilty zone in it: I have created the below mentioned API please help me in this issue.

curl -g -i -X POST http://***************:8004/v1/698c07fcc8a4487ba722dc3c289ab25b/stacks -H "User-Agent: python-heatclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: **************************" -d'{"files":{},"disable_rollback":true,"stack_name":"mystack12345","environment":{},"template":{"outputs":{"server1_private_ip":{"description":"IP address of server1 in private network","value":{"get_attr":["server1","first_address"]}}},"heat_template_version":"2013-05-23","availability_zone":{"type":"string","description":"The Availability Zone to launch the instance.","default":"AZ-1"},"description":"Hot Template to deploy a single server\n","resources":{"server1_port":{"type":"OS::Neutron::Port","properties":{"network_id":"152d9feb-96b9-443d-90c6-7dd2f32fbd59","fixed_ips":[{"subnet_id":"f986742b-c457-487d-9e91-6bc59b21cfb9"}],"security_groups":[{"get_resource":"server_security_group"}]}},"server1":{"type":"OS::Nova::Server","properties":{"key_name":"samplekeypair","flavor":"m1.small","networks":[{"port":{"get_resource":"server1_port"}}],"image":"4fd7ce64-871d-4728-b0ee-c698e1896e62","availability_zone":"AZ-1","name":"Server1"}},"server_security_group":{"type":"OS::Neutron::SecurityGroup","properties":{"description":"Add security group rules for server","name":"security-group"}}}}}'**
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by CloudIsMyLife
close date 2016-03-02 01:15:04.755303