Viewing Details of FPGA Images¶
Function¶
This API is used to view the details of the FPGA images of a tenant.
URI¶
GET /v1/{project_id}/cloudservers/fpga_image/detail?fpga_image_id={fpga_image_id}&page={page}&size={size}
Table 1 describes the parameters in the URI.
Parameter | Mandatory | Description |
---|---|---|
project_id | Yes | Specifies the project ID. |
fpga_image_id | No | Specifies the FPGA image ID. |
page | No | Specifies the number of pages in a pagination query. The value of this parameter must meet the following requirements:
|
size | No | Specifies the maximum records displayed on a page in a pagination query.
|
Note
Pagination query takes effect only if parameters page and size both have a value. If only one of them has a value, an error message indicating invalid parameter will be displayed.
If fpga_image_id is used, pagination query specified by page and size does not take effect.
Request¶
None
Response¶
Table 2 describes the response parameters.
Parameter | Type | Description |
---|---|---|
count | Integer | Specifies the number of FPGA images to be queried. |
fpgaimages | Array of objects | Specifies details of FPGA images. |
Parameter | Type | Description |
---|---|---|
id | String | Specifies the FPGA image ID. |
name | String | Specifies the FPGA image name. |
description | String | Describes the FPGA image. |
status | String | Specifies the FPGA image status. Options:
|
size | Integer | Specifies the size (MB) of the FPGA image file. |
createdAt | String | Specifies the time when the FPGA image was created. Coordinated Universal Time (UTC) time is used. |
protected | Boolean | Specifies whether an FPGA image is protected. If an FPGA image is protected, it is associated with an image used to create ECSs and cannot be deleted. |
message | String | Specifies the FPGA image supplementation. |
metadata | Object | Specifies the FPGA image metadata. |
log_directory | String | Specifies the directory, in the format of "Bucket name:Directory", in which the log file for constructing the FPGA image is stored in OBS, for example, "obs-fpga:vu9p/log". |
Example Request¶
GET https://{endpoint}/v1/{project_id}/cloudservers/fpga_image/detail
Example Response¶
{
"count": 2,
"fpgaimages": [
{
"id": "4010a32c5c7d7711015c81ac714c009d",
"name": "FPGA001",
"description": "fpga test",
"status": "active",
"size": 40,
"createdAt": "2017-06-07 08:29:41",
"protected": false,
"message": null,
"metadata": {
"shell_type": "OCL",
"shell_version": "1.0"
},
"log_directory": "obs-fpga:vu9p/log"
},
{
"id": "4010a32c5c7d7711015c813e69bd002c",
"name": "FPGA002",
"description": "fpga test",
"status": "active",
"size": 43,
"createdAt": "2017-06-07 16:29:30",
"protected": true,
"message": null,
"metadata": {
"shell_type": "OCL",
"shell_version": "1.0"
},
"log_directory": "obs-fpga:vu9p/log"
}
]
}
Returned Values¶
Error Codes¶
See Error Codes.