StacksΒΆ

class heatclient.v1.stacks.Stack(manager, info, loaded=False)

Bases: heatclient.common.base.Resource

abandon()
action
create(**fields)
delete()
environment()
files()
get()
identifier
output_list()
output_show(output_key)
preview(**fields)
restore(snapshot_id)
snapshot(name=None)
snapshot_delete(snapshot_id)
snapshot_list()
snapshot_show(snapshot_id)
status
update(**fields)
class heatclient.v1.stacks.StackChildManager(client)

Bases: heatclient.common.base.BaseManager

api
class heatclient.v1.stacks.StackManager(client)

Bases: heatclient.v1.stacks.StackChildManager

abandon(stack_id)

Abandon a stack.

create(**kwargs)

Create a stack.

delete(stack_id)

Delete a stack.

environment(stack_id)

Returns the environment for an existing stack.

Parameters:stack_id – identifies the stack
Returns:
files(stack_id)

Returns the files for an existing stack.

Parameters:stack_id – identifies the stack
Returns:
get(stack_id, resolve_outputs=True)

Get the metadata for a specific stack.

Parameters:
  • stack_id – Stack ID to lookup
  • resolve_outputs – If True, then outputs for this stack will be resolved
list(**kwargs)

Get a list of stacks.

Parameters:
  • limit – maximum number of stacks to return
  • marker – begin returning stacks that appear later in the stack list than that represented by this stack id
  • filters – dict of direct comparison filters that mimics the structure of a stack object
Return type:

list of Stack

output_list(stack_id)
output_show(stack_id, output_key)
preview(**kwargs)

Preview a stack.

preview_update(stack_id, **kwargs)

Preview a stack update.

resource_class

alias of Stack

restore(stack_id, snapshot_id)
snapshot(stack_id, name=None)

Snapshot a stack.

snapshot_delete(stack_id, snapshot_id)
snapshot_list(stack_id)
snapshot_show(stack_id, snapshot_id)
template(stack_id)

Get template content for a specific stack as a parsed JSON object.

Parameters:stack_id – Stack ID to get the template for
update(stack_id, **kwargs)

Update a stack.

validate(**kwargs)

Validate a stack template.