Orchestration API¶
For details on how to use orchestration, see Using OpenStack Orchestration
The Orchestration Class¶
The orchestration high-level interface is available through the
orchestration member of a Connection
object. The orchestration member will only be added if the service
is detected.
-
class
openstack.orchestration.v1._proxy.Proxy(session)¶ -
create_stack(preview=False, **attrs)¶ Create a new stack from attributes
Parameters: Returns: The results of stack creation
Return type:
-
find_stack(name_or_id, ignore_missing=True)¶ Find a single stack
Parameters: - name_or_id – The name or ID of a stack.
- ignore_missing (bool) – When set to
FalseResourceNotFoundwill be raised when the resource does not exist. When set toTrue, None will be returned when attempting to find a nonexistent resource.
Returns: One
Stackor None
-
stacks(**query)¶ Return a generator of stacks
Parameters: **query (kwargs) – Optional query parameters to be sent to limit the resources being returned. Returns: A generator of stack objects Return type: Stack
-
get_stack(stack)¶ Get a single stack
Parameters: stack – The value can be the ID of a stack or a Stackinstance.Returns: One StackRaises: ResourceNotFoundwhen no resource can be found.
-
update_stack(stack, **attrs)¶ Update a stack
Parameters: - stack – The value can be the ID of a stack or a
Stackinstance. - **attrs (kwargs) – The attributes to update on the stack
represented by
value.
Returns: The updated stack
Return type: Raises: ResourceNotFoundwhen no resource can be found.- stack – The value can be the ID of a stack or a
-
delete_stack(stack, ignore_missing=True)¶ Delete a stack
Parameters: - stack – The value can be either the ID of a stack or a
Stackinstance. - ignore_missing (bool) – When set to
FalseResourceNotFoundwill be raised when the stack does not exist. When set toTrue, no exception will be set when attempting to delete a nonexistent server.
Returns: None- stack – The value can be either the ID of a stack or a
-
resources(stack, **query)¶ Return a generator of resources
Parameters: - stack – This can be a stack object, or the name of a stack for which the resources are to be listed.
- **query (kwargs) – Optional query parameters to be sent to limit the resources being returned.
Returns: A generator of resource objects if the stack exists and there are resources in it. If the stack cannot be found, an exception is thrown.
Return type: A generator of
ResourceRaises: ResourceNotFoundwhen the stack cannot be found.
-