跳到主要内容

查询模型列表

查询模型列表。
GET
https://api.alayanew.com/api/serverless-infer/v1/deployment/list
Authorizations
AuthorizationsStringHeaderRequired

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

Query Parameters
aidcIdString

智算中心ID。

vksIdString

弹性容器集群(VKS)ID。

namespaceString

弹性容器集群(VKS)NameSpace。

nameString

服务名称。

modelIdString

模型ID。

modelTypeString

模型类型。

modelString

创建来源(lora|expert|quickstart)。

statusString

Service状态。

extensions.<key>String

extensions查询参数。

pageInt

页码。默认1。

sizeInt

页码数量,默认10, 最大100

Response
状态码:application/json
codeInt

code是一种常见的返回值形式,表示查询操作的执行结果。

0是成功标识,表示操作成功完成。
dataObjectRequired

msgString

code返回值为-1时,返回异常信息。

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' 
{
  "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":""
}