查询模型列表
查询模型列表。
GET
https://api.alayanew.com/api/serverless-infer/v1/deployment/list
Authorizations
Authorizations:StringHeaderRequired
用户可通过已获取Serverless API Key做验证,例如:plain Credential=[YOUR_AK],Signature=[YOUR_SK]。
Query Parameters
aidcId:String
智算中心ID。
vksId:String
弹性容器集群(VKS)ID。
namespace:String
弹性容器集群(VKS)NameSpace。
name:String
服务名称。
modelId:String
模型ID。
modelType:String
模型类型。
model:String
创建来源(lora|expert|quickstart)。
status:String
Service状态。
extensions.<key>:String
extensions查询参数。
page:Int
页码。默认1。
size:Int
页码数量,默认10, 最大100
Response
状态码:application/json
200
code:Int
code是一种常见的返回值形式,表示查询操作的执行结果。
0
-1
0是成功标识,表示操作成功完成。
data:ObjectRequired
msg:String
code返回值为-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, 状态, staring, running, stopping, stopped, failed",
"vksId": "",
"namespace": "",
"name":"",
"servedName": "",
"modelId": "String, 模型ID",
"type":"base/lora"
}
]
},
"msg":""
}