Resources¶
- class heatclient.v1.resources.Resource(manager, info, loaded=False)
Bases:
heatclient.common.base.Resource
- data(**kwargs)
- delete()
- property stack_name
- update(**fields)
- class heatclient.v1.resources.ResourceManager(client)
Bases:
heatclient.v1.stacks.StackChildManager
- generate_template(resource_name)
Deprecated in favor of generate_template in ResourceTypeManager.
- get(stack_id, resource_name, with_attr=None)
Get the details for a specific resource.
- Parameters
stack_id – ID or name of stack containing the resource
resource_name – ID of resource to get the details for
with_attr – Attributes to show
- list(stack_id, **kwargs)
Get a list of resources.
- Return type
list of
Resource
- mark_unhealthy(stack_id, resource_name, mark_unhealthy, resource_status_reason)
Mark a resource as healthy or unhealthy.
- Parameters
stack_id – ID or name 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.
- metadata(stack_id, resource_name)
Get the metadata for a specific resource.
- Parameters
stack_id – ID or name of stack containing the resource
resource_name – ID of resource to get metadata for
- resource_class
alias of
heatclient.v1.resources.Resource
- signal(stack_id, resource_name, data=None)
Signal a specific resource.
- Parameters
stack_id – ID or name of stack containing the resource
resource_name – ID of resource to send signal to