Skip to main content

SearchImageList

更新时间:2025-05-08 14:32:25
Query the list of image repositories for a user under a specified AIDC, including private images opened by the enterprise and public images preset by the platform.
GET
https://api.alayanew.com/api/image/v1/image/list
Authorizations
AuthorizationsStringHeaderRequired

用户可通过已获取Open API Key做验证,例如:plain Credential=[YOUR_AK],Signature=[YOUR_SK]。

Query Parameters
aidcIdStringRequired

Intelligent Computing Center ID.

imageString

Image name.

projectNameString

Project name; when not empty, queries images under all Projects where permission is granted.

Response
状态码:application/json
codeInt

Code is a common return value format indicating the execution result of the query operation.

0 is the success indicator, meaning the operation completed successfully.
dataObject

data.idInt

Image ID.

data.projectIdInt

Image project ID.

data.nameString

Image name.

data.descriptionString

Image description.

data.artifactCountInt

Number of image tags.

data.pullCountInt

Number of times the image has been pulled.

data.isPublicString

Whether it is public.

data.creationTimeTimestamp

Image creation time.

data.updateTimeTimestamp

Image update time.

msgStringRequired

Exception message returned when the code value is -1.

curl -X GET 'https://api.alayanew.com/api/image/v1/image/list?aidcId=1&image=hello'      -H 'Authorization: plain Credential=YOUR_AK,Signature=YOUR_SK'
{
    "code": 0,
    "data": [
        {
            "id": 145,
            "projectId": 438,
            "name": "alayanew-a26e1508-9fa2-4ad1-a231-a94691ff0feb/hello2",
            "description": null,
            "artifactCount": 3,
            "pullCount": 8,
            "isPublic": "false",
            "createTime": "2025-02-13T12:15:57.784Z",
            "updateTime": "2025-02-28T09:06:40.252Z"
        },
        {
            "id": 140,
            "projectId": 438,
            "name": "alayanew-a26e1508-9fa2-4ad1-a231-a94691ff0feb/pytest",
            "description": null,
            "artifactCount": 1,
            "pullCount": 5,
            "isPublic": "false",
            "createTime": "2025-02-10T08:57:19.967Z",
            "updateTime": "2025-02-20T03:53:45.256Z"
        }
    ]
}