The heat.api.openstack.v1.stacks Module¶
Stack endpoint for Heat v1 REST API.
-
class
heat.api.openstack.v1.stacks.InstantiationData(data, patch=False)[source]¶ Bases:
objectThe data to create or update a stack.
The data accompanying a PUT or POST request.
-
PARAMS= ('stack_name', 'template', 'template_url', 'parameters', 'environment', 'files', 'environment_files')¶
-
PARAM_ENVIRONMENT= 'environment'¶
-
PARAM_ENVIRONMENT_FILES= 'environment_files'¶
-
PARAM_FILES= 'files'¶
-
PARAM_STACK_NAME= 'stack_name'¶
-
PARAM_TEMPLATE= 'template'¶
-
PARAM_TEMPLATE_URL= 'template_url'¶
-
PARAM_USER_PARAMS= 'parameters'¶
-
-
class
heat.api.openstack.v1.stacks.StackController(options)[source]¶ Bases:
objectWSGI controller for stacks resource in Heat v1 API.
Implements the API actions.
-
REQUEST_SCOPE= 'stacks'¶
-
abandon(controller, req, tenant_id, **kwargs)[source]¶ Abandons specified stack.
Abandons specified stack by deleting the stack and it’s resources from the database, but underlying resources will not be deleted.
-
environment(controller, req, tenant_id, **kwargs)[source]¶ Get the environment for an existing stack.
-
export(controller, req, tenant_id, **kwargs)[source]¶ Export specified stack.
Return stack data in JSON format.
-
generate_template(controller, req, tenant_id, **kwargs)[source]¶ Generates a template based on the specified type.
-
list_resource_types(controller, req, tenant_id, **kwargs)[source]¶ Returns a resource types list which may be used in template.
-
list_template_functions(controller, req, tenant_id, **kwargs)[source]¶ Returns a list of available functions in a given template.
-
list_template_versions(controller, req, tenant_id, **kwargs)[source]¶ Returns a list of available template versions.
-
preview(controller, req, tenant_id, **kwargs)[source]¶ Preview the outcome of a template and its params.
-
preview_update(controller, req, tenant_id, **kwargs)[source]¶ Preview update for existing stack with a new template/parameters.
-
preview_update_patch(controller, req, tenant_id, **kwargs)[source]¶ Preview PATCH update for existing stack.
-
resource_schema(controller, req, tenant_id, **kwargs)[source]¶ Returns the schema of the given resource type.
-
template(controller, req, tenant_id, **kwargs)[source]¶ Get the template body for an existing stack.
-
update(controller, req, tenant_id, **kwargs)[source]¶ Update an existing stack with a new template and/or parameters.
-