Bases: pecan.rest.RestController
REST controller for VolumeTargets.
Delete a volume target.
target_uuid – UUID of a volume target.
OperationNotPermitted if accessed with specifying a parent node.
NodeLocked if node is locked by another conductor
NodeNotFound if the node associated with the target does not exist
VolumeTargetNotFound if the volume target cannot be found
InvalidStateRequested If a node associated with the volume target is not powered off.
Retrieve a list of volume targets.
node – UUID or name of a node, to get only volume targets for that node.
marker – pagination marker for large data sets.
limit – maximum number of resources to return in a single result. This value cannot be larger than the value of max_limit in the [api] section of the ironic configuration, or only max_limit resources will be returned.
sort_key – column to sort results by. Default: id.
sort_dir – direction to sort. “asc” or “desc”. Default: “asc”.
fields – Optional, a list with a specified set of fields of the resource to be returned.
detail – Optional, whether to retrieve with detail.
project – Optional, an associated node project (owner, or lessee) to filter the query upon.
a list of volume targets, or an empty list if no volume target is found.
InvalidParameterValue if sort_key does not exist
InvalidParameterValue if sort key is invalid for sorting.
InvalidParameterValue if both fields and detail are specified.
Retrieve information about the given volume target.
target_uuid – UUID of a volume target.
fields – Optional, a list with a specified set of fields of the resource to be returned.
API-serializable volume target object.
OperationNotPermitted if accessed with specifying a parent node.
VolumeTargetNotFound if no volume target with this UUID exists
Update an existing volume target.
target_uuid – UUID of a volume target.
patch – a json PATCH document to apply to this volume target.
API-serializable volume target object.
OperationNotPermitted if accessed with specifying a parent node.
PatchError if a given patch can not be applied.
InvalidParameterValue if the volume target’s UUID is being changed
NodeLocked if the node is already locked
NodeNotFound if the node associated with the volume target does not exist
VolumeTargetNotFound if the volume target cannot be found
VolumeTargetBootIndexAlreadyExists if a volume target already exists with the same node ID and boot index values
InvalidUUID if invalid node UUID is passed in the patch.
InvalidStateRequested If a node associated with the volume target is not powered off.
Create a new volume target.
target – a volume target within the request body.
API-serializable volume target object.
OperationNotPermitted if accessed with specifying a parent node.
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
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.