部署详情(Expert)
基模型服务详情。
GET
https://api.alayanew.com/api/serverless-infer/v1/deployment/${serviceId}
Authorizations
Authorizations:StringHeaderRequired
用户可通过已获取Serverless API Key做验证,例如:plain Credential=[YOUR_AK],Signature=[YOUR_SK]。
Path Parameters
serviceId:StringRequired
服务ID。
Response
状态码:application/json
200
code:Int
code是一种常见的返回值形式,表示查询操作的执行结果。
0
-1
0是成功标识,表示操作成功完成。
data:Object
msg:String
code返回值为-1时,返回异常信息。
cURL
Python
JavaScript
Go
Java
curl --location --request GET 'https://api.alayanew.com/api/serverless-infer/v1/deployment/38fbfc3d-6a88-4c35-b8b6-9efc83949d47'
--header 'Authorization:plain Credential=YOUR_AK,Signature=YOUR_SK'
--header 'Content-Type: application/json'
200
400
401
403
404
500
{
"code": 0,
"data": {
"serviceId":"",
"serviceUrl":"string",
"apikey":"String",
"status":"string, 状态",
"vksId": "",
"namespace": "",
"name": "",
"modelId": "String, 模型ID",
"mode":"expert",
"expert":{
"headConfig": {
"image": "required, string,",
"imagePullSecret": {
"registry": "",
"username": "",
"password": ""
},
"labels": {},
"env": {},
"cmd": [],
"args": [],
"resource": {
"cpu": "required,int",
"mem": "required,int",
"gpu": {
"gpuType": "required, string, gpu type name",
"count": "required, int, number of gpu to be use"
}
},
"pvcMounts": [
{
"pvcName": "",
"subPath": "optionl",
"containerPath": "",
"readOnly": ""
}
]
},
"workerConfig": {
"image": "required, string,",
"imagePullSecret": {
"registry": "",
"username": "",
"password": ""
},
"workers":"int , worker nums"
"labels": {},
"env": {},
"cmd": [],
"args": [ ],
"resource": {
"cpu": "required,int",
"mem": "required,int",
"gpu": {
"gpuType": "required, string, gpu type name",
"count": "required, int, number of gpu to be use"
}
},
"pvcMounts": [
{
"pvcName": "",
"subPath": "optionl",
"containerPath": "",
"readOnly": ""
}
]
}
},
"quickStart":null
}
}