Stack endpoint for Heat v1 ReST API.
-
class heat.api.openstack.v1.stacks.InstantiationData(data)[source]
Bases: object
The data accompanying a PUT or POST request to create or update a stack.
-
PARAMS = ('stack_name', 'template', 'template_url', 'parameters')
-
PARAM_STACK_NAME = 'stack_name'
-
PARAM_TEMPLATE = 'template'
-
PARAM_TEMPLATE_URL = 'template_url'
-
PARAM_USER_PARAMS = 'parameters'
-
args()[source]
Get any additional arguments supplied by the user.
-
static format_parse(data, data_type)[source]
Parse the supplied data as JSON or YAML, raising the appropriate
exception if it is in the wrong format.
-
stack_name()[source]
Return the stack name.
-
template()[source]
Get template file contents, either inline or from a URL, in JSON
or YAML format.
-
user_params()[source]
Get the user-supplied parameters for the stack in JSON format.
-
class heat.api.openstack.v1.stacks.StackController(options)[source]
Bases: object
WSGI controller for stacks resource in Heat v1 API
Implements the API actions
-
create(controller, req, tenant_id, **kwargs)[source]
Create a new stack
-
default(req, **args)[source]
-
delete(controller, req, tenant_id, **kwargs)[source]
Delete the specified stack
-
index(controller, req, tenant_id, **kwargs)[source]
Lists summary information for all stacks
-
list_resource_types(controller, req, tenant_id, **kwargs)[source]
Returns a list of valid resource types that may be used in a template.
-
lookup(controller, req, tenant_id, **kwargs)[source]
Redirect to the canonical URL for a stack
-
show(controller, req, tenant_id, **kwargs)[source]
Gets detailed information for a stack
-
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
-
validate_template(controller, req, tenant_id, **kwargs)[source]
Implements the ValidateTemplate API action
Validates the specified template
-
heat.api.openstack.v1.stacks.create_resource(options)[source]
Stacks resource factory method.
-
heat.api.openstack.v1.stacks.format_stack(req, stack, keys=[])[source]