openstack.orchestration.v1.resource

openstack.orchestration.v1.resource

The Resource Class

The Resource class inherits from Resource.

class openstack.orchestration.v1.resource.Resource(attrs=None, loaded=False)

Construct a Resource to interact with a service’s REST API.

The Resource class offers two class methods to construct resource objects, which are preferrable to entering through this initializer. See Resource.new() and Resource.existing().

Parameters:
  • attrs (dict) – The attributes to set when constructing this Resource.
  • loaded (bool) – True if this Resource exists on the server, False if it does not.

A list of dictionaries containing links relevant to the resource.

logical_resource_id = None

ID of the logical resource, usually the literal name of the resource as it appears in the stack template.

physical_resource_id = None

ID of the physical resource (if any) that backs up the resource. For example, it contains a nova server ID if the resource is a nova server.

required_by = None

A list of resource names that depend on this resource. This property facilitates the deduction of resource dependencies. Type: list

resource_type = None

A string representation of the resource type.

status = None

A string representing the status the resource is currently in.

status_reason = None

A string that explains why the resource is in its current status.

updated_at = None

Timestamp of the last update made to the resource.

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.