Cyborg REST API¶
Cyborg introduced and landed a totally new DB modeling schema for tracking cyborg resources in Stein release. The legacy v1 api does not match the new data model, which we changed pretty much, so cyborg starts to support a new set of api(v2) as well.
v2.0¶
The Train release introduced version 2.0 APIs. Details of these APIs can be found here. However, Train release landed partial V2 APIs, which means incomplete. One can expect full support V2 APIs (as well as full V2 API documentation) from cyborg in the Ussuri release.
The supported V2 APIs in Train are listed below.
The URIs are relative to http://<controller-ip>/accelerator/v2
.
Verb |
URI |
Description |
---|---|---|
GET |
|
List all device profiles |
GET |
|
Retrieve a certain device profile info identified by {uuid} |
POST |
|
Create a new device profile |
DELETE |
|
Delete the device_profile identified by {uuid} |
DELETE |
|
Delete the device_profiles identified by {name} |
GET |
|
List Accelerator Requests |
GET |
|
Get one Accelerator Requests |
POST |
|
Create Accelerator Requests |
PATCH |
|
Update Accelerator Requests |
DELETE |
|
Delete the accelerator_requests identified by {ARQ_uuid} |
DELETE |
|
Delete the accelerator_requests identified by {instance_uuid} |
v1.0¶
The following v1 APIs are deprecated in Train and will be removed in the Ussuri release.
The URIs are relative to http://<controller-ip>/accelerator/v1
.
Verb |
URI |
Description |
---|---|---|
GET |
|
Return a list of accelerators |
GET |
|
Retrieve a certain accelerator info identified by {uuid} |
POST |
|
Create a new accelerator |
PUT |
|
Update the spec for the accelerator identified by {uuid} |
DELETE |
|
Delete the accelerator identified by {uuid} |
GET |
|
Return a list of deployables |
GET |
|
Retrieve a certain deployable info identified by {uuid} |
POST |
|
Create a new deployable |
PATCH |
|
Program a new deployable(FPGA) |
PATCH |
|
Update the spec for the deployable identified by {uuid} |
DELETE |
|
Delete the deployable identified by {uuid} |