Bases: IronicObject
, VersionedObjectDictCompat
Create a VolumeTarget 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.: VolumeTarget(context).
VolumeTargetBootIndexAlreadyExists if a volume target already exists with the same node ID and boot index
VolumeTargetAlreadyExists if a volume target with the same UUID exists
Delete the VolumeTarget 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.: VolumeTarget(context).
VolumeTargetNotFound if the volume target cannot be found
Find a volume target based on its ID or UUID.
context – security context
ident – the database primary key ID or the UUID of a volume target
a VolumeTarget
object
InvalidIdentity if ident is neither an integer ID nor a UUID
VolumeTargetNotFound if no volume target with this ident exists
Find a volume target based on its database ID.
cls – the VolumeTarget
context – security context
db_id – the database primary key (integer) ID of a volume target
a VolumeTarget
object
VolumeTargetNotFound if no volume target with this ID exists
Find a volume target based on its UUID.
cls – the VolumeTarget
context – security context
uuid – the UUID of a volume target
a VolumeTarget
object
VolumeTargetNotFound if no volume target with this UUID exists
Return a list of VolumeTarget objects.
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”.
project – The associated node project to search with.
a list of VolumeConnector
objects
a list of VolumeTarget
objects
InvalidParameterValue if sort_key does not exist
Return a list of VolumeTarget objects related to a given node ID.
context – security context
node_id – the integer 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”.
project – The associated node project to search with.
a list of VolumeConnector
objects
a list of VolumeTarget
objects
InvalidParameterValue if sort_key does not exist
Return a list of VolumeTarget objects related to a given volume ID.
context – security context
volume_id – the UUID of the volume
limit – maximum number of volume targets 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 VolumeTarget
objects
InvalidParameterValue if sort_key does not exist
Loads updates for this VolumeTarget.
Load a volume target with the same UUID from the database and check for updated attributes. If there are any updates, they are applied from the loaded volume target, column by column.
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.: VolumeTarget(context).
VolumeTargetNotFound if the volume target cannot be found
Save updates to this VolumeTarget.
Updates will be made column by column based on the result of self.do_version_changes_for_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.: VolumeTarget(context).
InvalidParameterValue if the UUID is being changed
VolumeTargetBootIndexAlreadyExists if a volume target already exists with the same node ID and boot index values
VolumeTargetNotFound if the volume target cannot be found
Bases: NotificationBase
Notification emitted at CRUD of a volume target.
Bases: NotificationPayloadBase
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.