diff --git a/api-ref/src/wadls/orchestration-api/src/v1/samples/stack_create.json b/api-ref/src/wadls/orchestration-api/src/v1/samples/stack_create.json index 814a8fbd2..65d661333 100644 --- a/api-ref/src/wadls/orchestration-api/src/v1/samples/stack_create.json +++ b/api-ref/src/wadls/orchestration-api/src/v1/samples/stack_create.json @@ -1,9 +1,27 @@ { - "stack_name": "{stack_name}", - "template_url": "{template_url}", - "parameters": { - "param_name-1": "param_value-1", - "param_name-2": "param_value-2" - }, - "timeout_mins": "{timeout_mins}" -} \ No newline at end of file + "disable_rollback": true, + "stack_name": "teststack", + "template": { + "heat_template_version": "2013-05-23", + "description": "Simple template to test heat commands", + "parameters": { + "flavor": { + "default": "m1.tiny", + "type": "string" + } + }, + "resources": { + "hello_world": { + "type":"OS::Nova::Server", + "properties": { + "key_name": "heat_key", + "flavor": { + "get_param": "flavor" + }, + "image": "40be8d1a-3eb9-40de-8abd-43237517384f", + "user_data": "#!/bin/bash -xv\necho \"hello world\" > /root/hello-world.txt\n" + } + } + } + } +} diff --git a/api-ref/src/wadls/orchestration-api/src/v1/samples/stack_update.json b/api-ref/src/wadls/orchestration-api/src/v1/samples/stack_update.json index 755a91219..407a3c03c 100644 --- a/api-ref/src/wadls/orchestration-api/src/v1/samples/stack_update.json +++ b/api-ref/src/wadls/orchestration-api/src/v1/samples/stack_update.json @@ -1,8 +1,28 @@ { - "template_url": "{template_url}", - "parameters": { - "param_name-1": "param_value-1", - "param_name-2": "param_value-2" + "template": { + "heat_template_version": "2013-05-23", + "description": "Create a simple stack", + "parameters": { + "flavor": { + "default": "m1.tiny", + "type": "string" + } + }, + "resources": { + "hello_world": { + "type": "OS::Nova::Server", + "properties": { + "key_name": "heat_key", + "flavor": { + "get_param": "flavor" + }, + "image": "40be8d1a-3eb9-40de-8abd-43237517384f", + "user_data": "#!/bin/bash -xv\necho \"hello world\" > /root/hello-world.txt\n" + } + } + } }, - "timeout_mins": "{timeout_mins}" -} \ No newline at end of file + "parameters": { + "flavor": "m1.small" + } +}