2016-05-04 15:23:15 -04:00
|
|
|
.. -*- rst -*-
|
|
|
|
|
|
|
|
=========
|
|
|
|
Templates
|
|
|
|
=========
|
|
|
|
|
2016-08-18 05:58:24 -04:00
|
|
|
List template versions
|
|
|
|
======================
|
2016-05-23 13:50:53 +05:30
|
|
|
|
2016-08-18 05:58:24 -04:00
|
|
|
.. rest_method:: GET /v1/{tenant_id}/template_versions
|
2016-05-23 13:50:53 +05:30
|
|
|
|
2016-08-18 05:58:24 -04:00
|
|
|
Lists all available template versions.
|
2016-05-23 13:50:53 +05:30
|
|
|
|
2016-08-21 23:07:10 -04:00
|
|
|
Response Codes
|
|
|
|
--------------
|
2016-05-23 13:50:53 +05:30
|
|
|
|
2016-08-21 23:07:10 -04:00
|
|
|
.. rest_status_code:: success status.yaml
|
|
|
|
|
|
|
|
- 200
|
|
|
|
|
|
|
|
.. rest_status_code:: error status.yaml
|
|
|
|
|
|
|
|
- 400
|
|
|
|
- 401
|
|
|
|
- 404
|
|
|
|
- 500
|
|
|
|
|
|
|
|
Request Parameters
|
|
|
|
------------------
|
2016-05-23 13:50:53 +05:30
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- tenant_id: tenant_id
|
|
|
|
|
2016-08-21 23:07:10 -04:00
|
|
|
Response Parameters
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- X-Openstack-Request_id: request_id
|
|
|
|
- template_versions: template_versions
|
|
|
|
- alias: template_version_alias
|
|
|
|
- type: template_type
|
|
|
|
- version: template_version
|
|
|
|
|
|
|
|
|
2016-05-23 13:50:53 +05:30
|
|
|
Response Example
|
|
|
|
----------------
|
|
|
|
|
2016-08-18 05:58:24 -04:00
|
|
|
.. literalinclude:: samples/template-versions-response.json
|
2016-05-23 13:50:53 +05:30
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
|
2016-08-18 05:58:24 -04:00
|
|
|
List template functions
|
|
|
|
=======================
|
2016-05-04 15:23:15 -04:00
|
|
|
|
2016-08-18 05:58:24 -04:00
|
|
|
.. rest_method:: GET /v1/{tenant_id}/template_versions/{template_version}/functions
|
2016-05-04 15:23:15 -04:00
|
|
|
|
2016-08-18 05:58:24 -04:00
|
|
|
Lists all available functions for a template version.
|
2016-05-04 15:23:15 -04:00
|
|
|
|
2016-08-21 23:07:10 -04:00
|
|
|
Response Codes
|
|
|
|
--------------
|
|
|
|
|
|
|
|
.. rest_status_code:: success status.yaml
|
2016-05-04 15:23:15 -04:00
|
|
|
|
2016-08-21 23:07:10 -04:00
|
|
|
- 200
|
2016-05-04 15:23:15 -04:00
|
|
|
|
2016-08-21 23:07:10 -04:00
|
|
|
.. rest_status_code:: error status.yaml
|
2016-05-04 15:23:15 -04:00
|
|
|
|
2016-08-21 23:07:10 -04:00
|
|
|
- 400
|
|
|
|
- 401
|
|
|
|
- 404
|
|
|
|
- 500
|
|
|
|
|
|
|
|
Request Parameters
|
|
|
|
------------------
|
2016-05-04 15:23:15 -04:00
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- tenant_id: tenant_id
|
2016-08-21 23:07:10 -04:00
|
|
|
- template_version: template_version_url
|
|
|
|
|
|
|
|
Reponse Parameters
|
|
|
|
------------------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- X-Openstack-Request-Id: request_id
|
|
|
|
- template_functions: template_functions
|
2016-08-23 04:16:03 -04:00
|
|
|
- description: function_description
|
2016-08-21 23:07:10 -04:00
|
|
|
- functions: functions
|
2016-05-04 15:23:15 -04:00
|
|
|
|
|
|
|
Response Example
|
|
|
|
----------------
|
|
|
|
|
2016-08-18 05:58:24 -04:00
|
|
|
.. literalinclude:: samples/template-functions-list-response.json
|
2016-05-04 15:23:15 -04:00
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
|
|
|
|
Validate template
|
|
|
|
=================
|
|
|
|
|
|
|
|
.. rest_method:: POST /v1/{tenant_id}/validate
|
|
|
|
|
|
|
|
Validates a template.
|
|
|
|
|
2016-08-21 23:07:10 -04:00
|
|
|
Response Codes
|
|
|
|
--------------
|
|
|
|
|
|
|
|
.. rest_status_code:: success status.yaml
|
|
|
|
|
|
|
|
- 200
|
2016-05-04 15:23:15 -04:00
|
|
|
|
2016-08-21 23:07:10 -04:00
|
|
|
.. rest_status_code:: error status.yaml
|
|
|
|
|
|
|
|
- 400
|
|
|
|
- 500
|
|
|
|
|
|
|
|
Request Parameters
|
|
|
|
------------------
|
2016-05-04 15:23:15 -04:00
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- tenant_id: tenant_id
|
2016-08-21 23:07:10 -04:00
|
|
|
- environment: environment
|
|
|
|
- environment_files: environment_files
|
|
|
|
- files: files
|
2016-05-23 15:17:05 +05:30
|
|
|
- ignore_errors: ignore_errors
|
2016-08-21 23:07:10 -04:00
|
|
|
- show_nested: show_nested
|
|
|
|
- template: template
|
|
|
|
- template_url: template_url
|
2016-05-04 15:23:15 -04:00
|
|
|
|
|
|
|
Request Example
|
|
|
|
---------------
|
|
|
|
|
|
|
|
.. literalinclude:: samples/template-validate-request.json
|
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
Response Parameters
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2016-08-21 23:07:10 -04:00
|
|
|
- X-Openstack-Request-Id: request_id
|
2016-05-04 15:23:15 -04:00
|
|
|
- Description: Description
|
2016-08-21 23:07:10 -04:00
|
|
|
- ParameterGroups: ParameterGroups
|
2016-05-04 15:23:15 -04:00
|
|
|
- Parameters: Parameters
|
|
|
|
|
|
|
|
Response Example
|
|
|
|
----------------
|
|
|
|
|
|
|
|
.. literalinclude:: samples/template-validate-response.json
|
|
|
|
:language: javascript
|