heat.api.cfn.v1.stacks module

heat.api.cfn.v1.stacks module

Stack endpoint for Heat CloudFormation v1 API.

class heat.api.cfn.v1.stacks.StackController(options)[source]

Bases: object

WSGI controller for stacks resource in Heat CloudFormation v1 API.

Implements the API actions.

CREATE_OR_UPDATE_ACTION = ('CreateStack', 'UpdateStack')
CREATE_STACK = 'CreateStack'
UPDATE_STACK = 'UpdateStack'
cancel_update(req)[source]
create(req)[source]
create_or_update(req, action=None)[source]

Implements CreateStack and UpdateStack API actions.

Create or update stack as defined in template file.

default(req, **args)[source]
delete(req)[source]

Implements the DeleteStack API action.

Deletes the specified stack.

describe(req)[source]

Implements DescribeStacks API action.

Gets detailed information for a stack (or all stacks).

describe_stack_resource(req)[source]

Implements the DescribeStackResource API action.

Return the details of the given resource belonging to the given stack.

describe_stack_resources(req)[source]

Implements the DescribeStackResources API action.

Return details of resources specified by the parameters.

StackName: returns all resources belonging to the stack.

PhysicalResourceId: returns all resources belonging to the stack this resource is associated with.

Only one of the parameters may be specified.

Optional parameter:

LogicalResourceId: filter the resources list by the logical resource id.

estimate_template_cost(req)[source]

Implements the EstimateTemplateCost API action.

Get the estimated monthly cost of a template.

events_list(req)[source]

Implements the DescribeStackEvents API action.

Returns events related to a specified stack (or all stacks).

get_template(req)[source]

Implements the GetTemplate API action.

Get the template body for an existing stack.

list(req)[source]

Implements ListStacks API action.

Lists summary information for all stacks.

list_stack_resources(req)[source]

Implements the ListStackResources API action.

Return summary of the resources belonging to the specified stack.

update(req)[source]
validate_template(req)[source]

Implements the ValidateTemplate API action.

Validates the specified template.

heat.api.cfn.v1.stacks.create_resource(options)[source]

Stacks resource factory method.

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.