ResourcesΒΆ

class heatclient.v1.resources.Resource(manager, info, loaded=False)

Bases: heatclient.openstack.common.apiclient.base.Resource

Resource.data(**kwargs)
Resource.delete()
Resource.stack_name None
Resource.update(**fields)
class heatclient.v1.resources.ResourceManager(client)

Bases: heatclient.v1.stacks.StackChildManager

ResourceManager.generate_template(resource_name)

Deprecated in favor of generate_template in ResourceTypeManager.

ResourceManager.get(stack_id, resource_name, with_attr=None)

Get the details for a specific resource.

Parameters:
  • stack_id – ID of stack containing the resource
  • resource_name – ID of resource to get the details for
  • with_attr – Attributes to show
ResourceManager.list(stack_id, **kwargs)

Get a list of resources.

Return type:list of Resource
ResourceManager.mark_unhealthy(stack_id, resource_name, mark_unhealthy, resource_status_reason)

Mark a resource as healthy or unhealthy.

Parameters:
  • stack_id – ID of stack containing the resource
  • resource_name – ID of resource
  • mark_unhealthy – Mark resource unhealthy if set to True
  • resource_status_reason – Reason for resource status change.
ResourceManager.metadata(stack_id, resource_name)

Get the metadata for a specific resource.

Parameters:
  • stack_id – ID of stack containing the resource
  • resource_name – ID of resource to get metadata for
ResourceManager.resource_class

alias of Resource

ResourceManager.signal(stack_id, resource_name, data=None)

Signal a specific resource.

Parameters:
  • stack_id – ID of stack containing the resource
  • resource_name – ID of resource to send signal to

Previous topic

Stacks

Next topic

Events

This Page