The accelerator high-level interface is available through the accelerator
member of a Connection
object.
The accelerator
member will only be added if the service is detected.
Retrieve a generator of devices.
query (kwargs) – Optional query parameters to be sent to
restrict the devices to be returned. Available parameters include:
* hostname: The hostname of the device.
* type: The type of the device.
* vendor: The vendor ID of the device.
* sort: A list of sorting keys separated by commas. Each sorting
key can optionally be attached with a sorting direction
modifier which can be asc
or desc
.
* limit: Requests a specified size of returned items from the
query. Returns a number of items up to the specified limit
value.
* marker: Specifies the ID of the last-seen item. Use the limit
parameter to make an initial limited request and use the ID of
the last-seen item from the response as the marker parameter
value in a subsequent limited request.
A generator of device instances.
Get a single device.
uuid – The value can be the UUID of a device.
One Device
ResourceNotFound
when no
device matching the criteria could be found.
Retrieve a generator of deployables.
query (kwargs) – Optional query parameters to be sent to restrict the deployables to be returned.
A generator of deployable instances.
Get a single deployable.
uuid – The value can be the UUID of a deployable.
One Deployable
ResourceNotFound
when no
deployable matching the criteria could be found.
Reconfig the FPGA with new bitstream.
uuid – The value can be the UUID of a deployable
patch – The information to reconfig.
The results of FPGA reconfig.
Retrieve a generator of device profiles.
query (kwargs) – Optional query parameters to be sent to restrict the device profiles to be returned.
A generator of device profile instances.
Create a device_profile.
attrs (kwargs) – a list of device_profiles.
The list of created device profiles
Delete a device profile
name_or_id – The value can be either the ID or name of a device profile.
ignore_missing (bool) – When set to False
ResourceNotFound
will be
raised when the device profile does not exist.
When set to True
, no exception will be set when
attempting to delete a nonexistent device profile.
None
Get a single device profile.
uuid – The value can be the UUID of a device profile.
One :class: ~openstack.accelerator.v2.device_profile.DeviceProfile
ResourceNotFound
when no
device profile matching the criteria could be found.
Retrieve a generator of accelerator requests.
query (kwargs) – Optional query parameters to be sent to restrict the accelerator requests to be returned.
A generator of accelerator request instances.
Create an ARQs for a single device profile.
attrs (kwargs) – request body.
The created accelerator request instance.
Delete a device profile
:param name_or_id: The value can be either the ID or name of
an accelerator request.
:param bool ignore_missing: When set to False
ResourceNotFound
will be
raised when the device profile does not exist.
When set to True
, no exception will be set when
attempting to delete a nonexistent accelerator request.
:returns: None
Get a single accelerator request.
:param uuid: The value can be the UUID of a accelerator request.
:returns: One :class:
~openstack.accelerator.v2.accelerator_request.AcceleratorRequest
:raises: ResourceNotFound
when no
accelerator request matching the criteria could be found.
Bind/Unbind an accelerator to VM. :param uuid: The uuid of the accelerator_request to be bound/unbound. :param properties: The info of VM that will bind/unbind the accelerator. :returns: True if bind/unbind succeeded, False otherwise.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.