查询模型列表
Query the list of models.
GET
https://api.alayanew.com/api/serverless-infer/v1/deployment/list
Authorizations
Authorizations:StringHeaderRequired
用户可通过已获取Open API Key做验证,例如:plain Credential=[YOUR_AK],Signature=[YOUR_SK]。
Query Parameters
aidcId:String
AIDC ID (Artificial Intelligence Data Center ID).
vksId:String
Elastic Container Cluster (VKS) ID.
namespace:String
Elastic Container Cluster (VKS) NameSpace.
name:String
Service name.
modelId:String
Model ID.
modelType:String
Model type.
model:String
Creation source (lora|expert|quickstart).
status:String
Service status.
extensions.<key>:String
Extensions query parameter.
page:Int
Page number. Default is 1.
size:Int
Number of items per page. Default is 10, maximum is 100.
Response
状态码:application/json
200
code:Int
The 'code' is a common return value format indicating the execution result of the query operation.
0
-1
0 is the success indicator, meaning the operation completed successfully.
data:ObjectRequired
msg:String
Returns error information when the code value is -1.
cURL
Python
JavaScript
Go
Java
curl --location --request GET 'https://api.alayanew.com/api/serverless-infer/v1/deployment/list'
--header 'Authorization:plain Credential=YOUR_AK,Signature=YOUR_SK'
--header 'Content-Type: application/json'
200
400
401
403
404
500
{
"code": "0",
"data": {
"count":"",
"rows":[
{
"serviceId":"",
"serviceUrl":"string",
"apikey":"String ",
"status":"string, status, staring, running, stopping, stopped, failed",
"vksId": "",
"namespace": "",
"name":"",
"servedName": "",
"modelId": "String, Model ID",
"type":"base/lora"
}
]
},
"msg":""
}
服务状态
服务状态(status)流转详情如下图所示。
