For details on how to use orchestration, see Using OpenStack Orchestration
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.
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: |
check_stack
(stack)¶Check a stack’s status
Since this is an asynchronous action, the only way to check the result is to track the stack’s status.
Parameters: | stack – The value can be either the ID of a stack or an instance
of Stack . |
---|---|
Returns: | None |
update_stack
(stack, **attrs)¶Update a stack
Parameters: |
|
---|---|
Returns: | The updated stack |
Return type: | |
Raises: |
|
delete_stack
(stack, ignore_missing=True)¶Delete a stack
Parameters: | |
---|---|
Returns: |
|
find_stack
(name_or_id, ignore_missing=True)¶Find a single stack
Parameters: |
|
---|---|
Returns: | One |
get_stack
(stack)¶Get a single stack
Parameters: | stack – The value can be the ID of a stack or a
Stack instance. |
---|---|
Returns: | One Stack |
Raises: | ResourceNotFound
when no resource can be found. |
get_stack_environment
(stack)¶Get environment used by a stack
Parameters: | stack – The value can be the ID of a stack or an instance of
Stack |
---|---|
Returns: | One object of
StackEnvironment |
Raises: | ResourceNotFound when no
resource can be found. |
get_stack_files
(stack)¶Get files used by a stack
Parameters: | stack – The value can be the ID of a stack or an instance of
Stack |
---|---|
Returns: | A dictionary containing the names and contents of all files used by the stack. |
Raises: | ResourceNotFound
when the stack cannot be found. |
get_stack_template
(stack)¶Get template used by a stack
Parameters: | stack – The value can be the ID of a stack or an instance of
Stack |
---|---|
Returns: | One object of
StackTemplate |
Raises: | ResourceNotFound
when no resource can be found. |
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 |
validate_template
(template, environment=None, template_url=None, ignore_errors=None)¶Validates a template.
Parameters: |
|
---|---|
Returns: | The result of template validation. |
Raises: |
|
Raises: |
|
resources
(stack, **query)¶Return a generator of resources
Parameters: |
|
---|---|
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
|
Raises: |
|
openstack.orchestration.v1._proxy.
Proxy
(session)create_software_config
(**attrs)¶Create a new software config from attributes
Parameters: | attrs (dict) – Keyword arguments which will be used to create a
SoftwareConfig ,
comprised of the properties on the SoftwareConfig class. |
---|---|
Returns: | The results of software config creation |
Return type: | SoftwareConfig |
delete_software_config
(software_config, ignore_missing=True)¶Delete a software config
Parameters: |
|
---|---|
Returns: |
|
get_software_config
(software_config)¶Get details about a specific software config.
Parameters: | software_config – The value can be the ID of a software config
or a instace of
SoftwareConfig , |
---|---|
Returns: | An object of type
SoftwareConfig |
openstack.orchestration.v1._proxy.
Proxy
(session)create_software_deployment
(**attrs)¶Create a new software deployment from attributes
Parameters: | attrs (dict) – Keyword arguments which will be used to create a
SoftwareDeployment ,
comprised of the properties on the SoftwareDeployment class. |
---|---|
Returns: | The results of software deployment creation |
Return type: | SoftwareDeployment |
update_software_deployment
(software_deployment, **attrs)¶Update a software deployment
Parameters: |
|
---|---|
Returns: | The updated software deployment |
Return type: |
|
delete_software_deployment
(software_deployment, ignore_missing=True)¶Delete a software deployment
Parameters: |
|
---|---|
Returns: |
|
get_software_deployment
(software_deployment)¶Get details about a specific software deployment resource
Parameters: | software_deployment – The value can be the ID of a software
deployment or an instace of
SoftwareDeployment , |
---|---|
Returns: | An object of type
SoftwareDeployment |
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.