This API is used to register an FPGA image.
An FPGA image, which is also called accelerated engine image (AEI), is a logic FPGA file developed by a user. During FPGA image registration, the logic file must be stored in the Object Storage Service (OBS) bucket of the user.
Table 2 describes the request parameters.
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
fpga_image |
Object |
Yes |
Indicates details about an FPGA image. |
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
location |
String |
Yes |
Specifies the OBS bucket path in which the logic FPGA file is stored. The format of the path is "Bucket name:File name", for example, "obs-fpga:fpga.bin". Bucket naming rules comply with the following OBS requirements:
A file name must conform to the following rules:
|
name |
String |
Yes |
Specifies the name of the FPGA image. Value range:
|
metadata |
Object |
Yes |
Specifies the FPGA image metadata, which must be a valid JavaScript Object Notation (JSON) object. The number of characters in metadata after JSON serialization cannot exceed 1024. |
description |
String |
No |
Describes an FPGA image. The value consists of uppercase and lowercase letters, digits, hyphens (-), underscores (_), periods (.), commas, and spaces. The value consists of 0 to 255 characters. |
Table 4 describes the response parameters.
Parameter |
Type |
Description |
---|---|---|
fpga_image |
Object |
Indicates details about an FPGA image. |
Parameter |
Type |
Description |
---|---|---|
id |
String |
ID of an FPGA image |
status |
String |
Specifies the FPGA image status. Options:
|
POST https://{endpoint}/v1/{project_id}/cloudservers/fpga_image
{ "fpga_image": { "location": "obs-fpga:fpga.bin", "name": "fpga-image-test", "description": "fpga description", "metadata": { "shell_type": "OCL", "shell_version": "1.0" } } }
{ "fpga_image": { "status": "saving", "id": "4010a32c5c62bad9015c62dc2290002b" } }
See Error Codes.