ironic.objects.node_history.
NodeHistory
(context=None, **kwargs)[source]¶Bases: ironic.objects.base.IronicObject
, oslo_versionedobjects.base.VersionedObjectDictCompat
VERSION
= '1.0'¶conductor
¶create
(context=None)[source]¶Create a NodeHistory record in the DB.
context – Security context. NOTE: This should only be used internally by the indirection_api. Unfortunately, RPC requires context as the first argument, even though we don’t use it. A context should be set when instantiating the object, e.g.: NodeHistory(context)
created_at
¶dbapi
= <oslo_db.api.DBAPI object>¶destroy
(context=None)[source]¶Delete the NodeHistory from the DB.
context – Security context. NOTE: This should only be used internally by the indirection_api. Unfortunately, RPC requires context as the first argument, even though we don’t use it. A context should be set when instantiating the object, e.g.: NodeHistory(context)
NodeHistoryNotFound
event
¶event_type
¶fields
= {'conductor': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'created_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'event': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'event_type': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'id': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'node_id': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'severity': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'updated_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'user': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'uuid': UUID(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True)}¶get
(context, history_ident)[source]¶Get a history based on its id or uuid.
history_ident – The id or uuid of a history.
context – Security context
A NodeHistory
object.
InvalidIdentity
get_by_id
(context, history_id)[source]¶Get a NodeHistory object by its integer ID.
cls – the NodeHistory
context – Security context
history_id – The ID of a history.
A NodeHistory
object.
NodeHistoryNotFound
get_by_uuid
(context, uuid)[source]¶Get a NodeHistory object by its UUID.
cls – the NodeHistory
context – Security context
uuid – The UUID of a NodeHistory.
A NodeHistory
object.
NodeHistoryNotFound
id
¶list
(context, limit=None, marker=None, sort_key=None, sort_dir=None)[source]¶Return a list of NodeHistory objects.
cls – the NodeHistory
context – Security context.
limit – Maximum number of resources to return in a single result.
marker – Pagination marker for large data sets.
sort_key – Column to sort results by.
sort_dir – Direction to sort. “asc” or “desc”.
A list of NodeHistory
object.
InvalidParameterValue
list_by_node_id
(context, node_id, limit=None, marker=None, sort_key=None, sort_dir=None)[source]¶Return a list of NodeHistory objects belongs to a given node ID.
cls – the NodeHistory
context – Security context.
node_id – The ID of the node.
limit – Maximum number of resources to return in a single result.
marker – Pagination marker for large data sets.
sort_key – Column to sort results by.
sort_dir – Direction to sort. “asc” or “desc”.
A list of NodeHistory
object.
InvalidParameterValue
node_id
¶severity
¶updated_at
¶user
¶uuid
¶Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.