跳到主要内容

查询详情

查询当前企业弹性容器集群的详细信息。
GET
https://api.alayanew.com/api/vks/v1/{id}
Authorizations
AuthorizationsStringHeaderRequired

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

Path Parameters
idStringRequired

弹性容器集群ID。

Response
状态码:application/json
codeInt

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

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

msgString

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

curl -X GET 'https://api.alayanew.com/api/vks/v1/vcldkbd8xsiz' 
     -H 'Authorization: plain Credential=YOUR_AK,Signature=YOUR_SK'
{
    "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"
    }
}