ironicclient.v1.allocation.AllocationManager(api)[source]¶Bases: ironicclient.common.base.CreateManager
delete(allocation_id)[source]¶Delete the Allocation.
| Parameters: | allocation_id – The UUID or name of an allocation. |
|---|
get(allocation_id, fields=None)[source]¶Get an allocation with the specified identifier.
| Parameters: |
|
|---|---|
| Returns: | an |
list(resource_class=None, state=None, node=None, limit=None, marker=None, sort_key=None, sort_dir=None, fields=None)[source]¶Retrieve a list of allocations.
| Parameters: |
|
|---|---|
| Returns: | A list of allocations. |
| Raises: | InvalidAttribute if a subset of fields is requested with detail option set. |
resource_class¶alias of Allocation
wait(allocation_id, timeout=0, poll_interval=1, poll_delay_function=None)[source]¶Wait for the Allocation to become active.
| Parameters: |
|
|---|---|
| Returns: | updated |
| Raises: | StateTransitionFailed if allocation reaches the error state. |
| Raises: | StateTransitionTimeout on timeout. |
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.