The Stack
class inherits from Resource
.
The base resource
_synchronized (bool) – This is not intended to be used directly. See
new()
and
existing()
.
connection (openstack.connection.Connection) – Reference to the Connection being used. Defaults to None to allow
Resource objects to be used without an active Connection, such as
in unit tests. Use of self._connection
in Resource code should
protect itself with a check for None.
Placeholder for AWS compatible template listing capabilities required by the stack.
Timestamp of the stack creation.
A text description of the stack.
A list of resource objects that will be deleted if a stack update is performed.
Timestamp of the stack deletion.
A JSON environment for the stack.
An ordered list of names for environment files found in the files dict.
Additional files referenced in the template or the environment
Name of the container in swift that has child templates and environment files.
Whether the stack will support a rollback operation on stack create/update failures. Type: bool
A list of dictionaries containing links relevant to the stack.
Name of the stack.
Placeholder for future extensions where stack related events can be published.
A list containing output keys and values from the stack, if any.
The ID of the owner stack if any.
A dictionary containing the parameter names and values for the stack.
The ID of the parent stack if any
A list of resource objects that will be replaced if a stack update is performed.
A string representation of the stack status, e.g. CREATE_COMPLETE
.
A text explaining how the stack transits to its current status.
A list of strings used as tags on the stack
A dict containing the template use for stack creation.
Stack template description text. Currently contains the same text
as that of the description
property.
A string containing the URL where a stack template can be found.
Stack operation timeout in minutes.
A list of resource objects that will remain unchanged if a stack update is performed.
A list of resource objects that will have their properties updated in place if a stack update is performed.
Timestamp of last update on the stack.
The ID of the user project created for this stack.
Create a remote resource based on this instance.
session (Adapter
) – The session to use for making this request.
prepend_key – A boolean indicating whether the resource_key should be prepended in a resource creation request. Default to True.
base_path (str) – Base part of the URI for creating resources, if
different from base_path
.
params (dict) – Additional params to pass.
This Resource
instance.
MethodNotSupported
if
Resource.allow_create
is not set to True
.
Commit the state of the instance to the remote resource.
session (Adapter
) – The session to use for making this request.
prepend_key – A boolean indicating whether the resource_key should be prepended in a resource update request. Default to True.
retry_on_conflict (bool) – Whether to enable retries on HTTP
CONFLICT (409). Value of None
leaves the Adapter defaults.
base_path (str) – Base part of the URI for modifying resources, if
different from base_path
.
kwargs (dict) – Parameters that will be passed to _prepare_request()
This Resource
instance.
MethodNotSupported
if
Resource.allow_commit
is not set to True
.
If E is present and has a .keys() method, then does: for k in E: D[k] = E[k] If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k]
Get a remote resource based on this instance.
session (Adapter
) – The session to use for making this request.
requires_id (boolean) – A boolean indicating whether resource ID should be part of the requested URI.
base_path (str) – Base part of the URI for fetching resources, if
different from base_path
.
error_message (str) – An Error message to be returned if requested object does not exist.
skip_cache (bool) – A boolean indicating whether optional API cache should be skipped for this invocation.
params (dict) – Additional parameters that can be consumed.
This Resource
instance.
MethodNotSupported
if
Resource.allow_fetch
is not set to True
.
ResourceNotFound
if
the resource was not found.
Find a resource by its name or id.
session (Adapter
) – The session to use for making this request.
name_or_id – This resource’s identifier, if needed by
the request. The default is None
.
ignore_missing (bool) – When set to False
ResourceNotFound
will be
raised when the resource does not exist.
When set to True
, None will be returned when
attempting to find a nonexistent resource.
params (dict) – Any additional parameters to be passed into
underlying methods, such as to
existing()
in order to pass on URI parameters.
The Resource
object matching the given name or id
or None if nothing matches.
openstack.exceptions.DuplicateResource
if more
than one resource is found for this request.
openstack.exceptions.ResourceNotFound
if nothing
is found and ignore_missing is False
.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.