An Action is what enables Watcher to transform the current state of a Cluster after an Audit.
An Action is an atomic task which changes the current state of a target Managed resource of the OpenStack Cluster such as:
In most cases, an Action triggers some concrete commands on an existing OpenStack module (Nova, Neutron, Cinder, Ironic, etc.).
An Action has a life-cycle and its current state may be one of the following:
Some default implementations are provided, but it is possible to develop new implementations which are dynamically loaded by Watcher at launch time.
None
Bases: watcher.api.controllers.base.APIBase
API representation of a action.
This class enforces type checking and value constraints, and converts between the internal object model and the API representation of a action.
Action.
convert_with_links
(action, expand=True)¶Action.
sample
(expand=True)¶None
Bases: watcher.api.controllers.v1.collection.Collection
API representation of a collection of actions.
ActionCollection.
convert_with_links
(actions, limit, url=None, expand=False, **kwargs)¶ActionCollection.
sample
()¶None
Bases: watcher.api.controllers.v1.types.JsonPatchType
ActionPatchType.
mandatory_attrs
()¶Returns a list of mandatory attributes.
Mandatory attributes can’t be removed from the document. This method should be overwritten by derived class.
None
Bases: pecan.rest.RestController
REST controller for Actions.
ActionsController.
delete
(action_uuid)[source]¶Delete a action(forbidden).
Parameters: | action_uuid – UUID of a action. |
---|
ActionsController.
detail
(marker=None, limit=None, sort_key='id', sort_dir='asc', action_plan_uuid=None, audit_uuid=None)[source]¶Retrieve a list of actions with detail.
Parameters: |
|
---|
ActionsController.
get_all
(marker=None, limit=None, sort_key='id', sort_dir='asc', action_plan_uuid=None, audit_uuid=None)[source]¶Retrieve a list of actions.
Parameters: |
|
---|
ActionsController.
get_one
(action_uuid)[source]¶Retrieve information about the given action.
Parameters: | action_uuid – UUID of a action. |
---|
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.