002e31a129
Add the DeviceProfile objects version 1.1, and add 'description' field to the DeviceProfile's fields. And 'description' also will expose to end users from the GET/POST response body. Story: 2007397 Partial-Implements: blueprint add-description-field-to-device-profiles Change-Id: I15fd9a430d09b20b55375b374fd7fd96542c6358
12 lines
542 B
JSON
12 lines
542 B
JSON
curl -g -i -X POST $cyborg_endpoint_url/device_profiles \
|
|
-H "Accept: application/json" \
|
|
-H "Content-Type: application/json" \
|
|
-H "User-Agent:None" \
|
|
-H "X-Auth-Token: yourtoken" \
|
|
-d '[{"name": "afexample_3",
|
|
"description": "device profile description",
|
|
"groups": [{"resources:CUSTOM_ACCELERATOR_FPGA": "1",
|
|
"trait:CUSTOM_FPGA_1": "required",
|
|
"trait:CUSTOM_FUNCTION_ID_3AFB": "required",
|
|
"accel:bitstream_id": "a6a12670-7014-4cff-a563-cea949b57fb3"}]}]'
|