how to pass the template url in curl command for stack creation. [closed]
I am creating a stack using below curl command and it will successfully created-
curl -s http://<controller_ip>:8004/v1/<tenant_id>/stacks \
-H "X-Auth-Token: "<token_id>"" \
-H "User-Agent: python-heatclient" \
-H "Content-type":"application/json" \
-H "Accept: application/json" \
-d '{"files": {}, "disable_rollback": true, "parameters": {}, "stack_name": "test", "environment": {}, "template": {"heat_template_version": "2015-10-15", "description": "Simple template to deploy a single compute instance", "parameters": null, "resources": {"myport": {"type": "OS::Neutron::Port", "properties": {"network_id": "<net_id>", "fixed_ips": [{"subnet": "<subnet_name>", "ip_address": "<ip_address>"}], "name": "<port_name>"}}}}}' \
| python -m json.tool
but i want to specify the template_url instead of mentioning complete template in the curl command. Anyone has idea about it how to specify the template url i.e. test.yaml
When i'm going to try with template_url parameters it will throw an error "Bad Request"
curl -s http://<controller_ip>:8004/v1/<tenant_id>/stacks \
-H "X-Auth-Token: "<token_id>"" \
-H "User-Agent: python-heatclient" \
-H "Content-type":"application/json" \
-H "Accept: application/json" \
-d '{"files": {}, "disable_rollback": true, "parameters": {}, "stack_name": "test", "environment": {}, "template_url": "test.yaml" }' \
| python -m json.tool