查询详情
查询当前企业弹性容器集群的详细信息。
GET
https://api.alayanew.com/api/vks/v1/{id}
Authorizations
Authorizations:StringHeaderRequired
用户可通过已获取Serverless API Key做验证,例如:plain Credential=[YOUR_AK],Signature=[YOUR_SK]。
Path Parameters
id:StringRequired
弹性容器集群ID。
Response
状态码:application/json
200
code:Int
code是一种常见的返回值形式,表示查询操作的执行结果。
0
-1
0是成功标识,表示操作成功完成。
data:Object
msg:String
code返回值为-1时,返回异常信息。
cURL
Python
JavaScript
Go
Java
curl -X GET 'https://api.alayanew.com/api/vks/v1/vcldkbd8xsiz'
-H 'Authorization: plain Credential=YOUR_AK,Signature=YOUR_SK'
200
400
401
404
429
503
504
{
"code": 0,
"data": {
"utilizationRate": {
"gpu": [
{
"name": "nvidia.com/gpu-h800-80gb-hbm3",
"hard": 2,
"used": 0,
"ratio": "14:35:80"
},
{
"name": "nvidia.com/gpu-h800-pcie",
"hard": 1,
"used": 0,
"ratio": "64:122:500"
},
{
"name": "nvidia.com/gpu-l40s",
"hard": 4,
"used": 0,
"ratio": "17:108:40"
},
{
"name": "nvidia.com/gpu-100",
"hard": 2,
"used": 0,
"ratio": "14:35:80"
}
],
"mem": {
"hard": 710,
"used": 13
},
"cpu": {
"hard": 204,
"used": 13
}
},
"id": "vcldkbd8xsiz",
"name": "vks003",
"status": "Running"
}
}