SearchProjectlist
Query the list of image repository projects for a user under a specified AIDC.
GET
https://api.alayanew.com/api/image/v1/registry/project/list
Authorizations
Authorizations:StringHeaderRequired
用户可通过已获取Open API Key做验证,例如:plain Credential=[YOUR_AK],Signature=[YOUR_SK]。
Query Parameters
aidcId:StringRequired
Intelligent Computing Center ID.
Response
状态码:application/json
200
code:Int
code is a common return value format, representing the execution result of the query operation.
0
-1
0 is the success indicator, meaning the operation completed successfully.
data:Object
data.projectId:Int
Image repository project ID.
data.name:String
Image repository project name.
data.creationTime:Timestamp
Image repository project creation time.
data.updateTime:Timestamp
Image repository project update time.
data.repoCount:Int
Number of images within the image repository project.
data.isPublic:String
Whether it is public.
msg:StringRequired
Returns exception information when the code value is -1.
cURL
Python
JavaScript
Go
Java
curl -X GET 'https://api.alayanew.com/api/image/v1/registry/project/list?aidcId=1' -H 'Authorization: plain Credential=YOUR_AK,Signature=YOUR_SK'
200
400
401
403
404
500
{
"code": 0,
"data": [
{
"projectId": 94,
"name": "8b91acfa-109c-4da2-825a-ad5973a1322a",
"createTime": "2024-12-17T10:12:26.233Z",
"updateTime": "2024-12-17T10:12:26.233Z",
"repoCount": 0,
"isPublic": "false"
},
{
"projectId": 1,
"name": "library",
"createTime": "2024-10-24T18:09:51.429Z",
"updateTime": "2024-10-24T18:09:51.429Z",
"repoCount": 1,
"isPublic": "false"
}
]
}