ironic.api.controllers.v1.allocation.Allocation(**kwargs)[source]¶Bases: ironic.api.controllers.base.APIBase
API representation of an allocation.
This class enforces type checking and value constraints, and converts between the internal object model and the API representation of a allocation.
candidate_nodes¶Candidate nodes for this allocation
convert_with_links(rpc_allocation, fields=None, sanitize=True)[source]¶Add links to the allocation.
created_at¶Complex type attribute definition.
Example:
class MyComplexType(wsme.types.Base):
optionalvalue = int
mandatoryvalue = wsattr(int, mandatory=True)
named_value = wsattr(int, name='named.value')
After inspection, the non-wsattr attributes will be replaced, and the above class will be equivalent to:
class MyComplexType(wsme.types.Base):
optionalvalue = wsattr(int)
mandatoryvalue = wsattr(int, mandatory=True)
extra¶This allocation’s meta data
last_error¶Last error that happened to this allocation
links¶A list containing a self link and associated allocation links
name¶The logical name for this allocation
node_uuid¶The UUID of the node this allocation belongs to
resource_class¶Requested resource class for this allocation
sanitize(fields=None)[source]¶Removes sensitive and unrequested data.
Will only keep the fields specified in the fields parameter.
| Parameters: | fields (list of str) – list of fields to preserve, or None to preserve them all |
|---|
state¶The current state of the allocation
traits¶Requested traits for the allocation
updated_at¶Complex type attribute definition.
Example:
class MyComplexType(wsme.types.Base):
optionalvalue = int
mandatoryvalue = wsattr(int, mandatory=True)
named_value = wsattr(int, name='named.value')
After inspection, the non-wsattr attributes will be replaced, and the above class will be equivalent to:
class MyComplexType(wsme.types.Base):
optionalvalue = wsattr(int)
mandatoryvalue = wsattr(int, mandatory=True)
uuid¶Unique UUID for this allocation
ironic.api.controllers.v1.allocation.AllocationCollection(**kwargs)[source]¶Bases: ironic.api.controllers.v1.collection.Collection
API representation of a collection of allocations.
allocations¶A list containing allocation objects
created_at¶Complex type attribute definition.
Example:
class MyComplexType(wsme.types.Base):
optionalvalue = int
mandatoryvalue = wsattr(int, mandatory=True)
named_value = wsattr(int, name='named.value')
After inspection, the non-wsattr attributes will be replaced, and the above class will be equivalent to:
class MyComplexType(wsme.types.Base):
optionalvalue = wsattr(int)
mandatoryvalue = wsattr(int, mandatory=True)
next¶Complex type attribute definition.
Example:
class MyComplexType(wsme.types.Base):
optionalvalue = int
mandatoryvalue = wsattr(int, mandatory=True)
named_value = wsattr(int, name='named.value')
After inspection, the non-wsattr attributes will be replaced, and the above class will be equivalent to:
class MyComplexType(wsme.types.Base):
optionalvalue = wsattr(int)
mandatoryvalue = wsattr(int, mandatory=True)
updated_at¶Complex type attribute definition.
Example:
class MyComplexType(wsme.types.Base):
optionalvalue = int
mandatoryvalue = wsattr(int, mandatory=True)
named_value = wsattr(int, name='named.value')
After inspection, the non-wsattr attributes will be replaced, and the above class will be equivalent to:
class MyComplexType(wsme.types.Base):
optionalvalue = wsattr(int)
mandatoryvalue = wsattr(int, mandatory=True)
ironic.api.controllers.v1.allocation.AllocationsController[source]¶Bases: pecan.rest.RestController
REST controller for allocations.
delete(**kwargs)[source]¶Delete an allocation.
| Parameters: | allocation_ident – UUID or logical name of an allocation. |
|---|
get_all(**kwargs)[source]¶Retrieve a list of allocations.
| Parameters: |
|
|---|
get_one(**kwargs)[source]¶Retrieve information about the given allocation.
| Parameters: |
|
|---|
invalid_sort_key_list = ['extra', 'candidate_nodes', 'traits']¶
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.