更新时间:2024-04-19 GMT+08:00
分享

查询边缘资源池详情

功能介绍

查询边缘资源池详情

URI

GET /v2/{project_id}/edge-pools/{id}

表1 路径参数

参数

是否必选

参数类型

描述

project_id

String

用户项目ID,获取方法参见获取项目ID和名称

id

String

边缘资源池id,满足正则^[a-zA-Z0-9-]{1,64}$

请求参数

表2 请求Header参数

参数

是否必选

参数类型

描述

X-Auth-Token

String

用户Token,获取方法参见认证鉴权

响应参数

状态码: 200

表3 响应Body参数

参数

参数类型

描述

id

String

边缘池ID

name

String

边缘池名称

description

String

描述信息

state

String

边缘池状态

project_id

String

用户项目ID

workspace_id

String

工作空间ID

created_at

Long

创建时间

updated_at

Long

更新时间

nodes

Array of EdgeNodeInfoDto objects

边缘节点列表

表4 EdgeNodeInfoDto

参数

参数类型

描述

id

String

边缘节点ID。

name

String

边缘池名称。

description

String

描述信息。描述为空则不返回该字段。

state

String

边缘池状态

cpu

Integer

CPU核心数量。

arch

String

计算机架构。

enable_gpu

Boolean

是否使用GPU。

enable_npu

Boolean

是否使用NPU。

memory

Integer

内存大小。

gpu_info

Array of GpuInfo objects

GPU信息。

npu_info

Array of NpuInfo objects

NPU信息。

表5 GpuInfo

参数

参数类型

描述

name

String

GPU卡名称

driver_version

String

GPU卡驱动版本

type

String

GPU卡类型

capacity

String

GPU卡容量

表6 NpuInfo

参数

参数类型

描述

name

String

NPU卡名称

driver_version

String

NPU卡驱动版本

type

String

NPU卡类型

capacity

String

NPU卡容量

状态码: 400

表7 响应Body参数

参数

参数类型

描述

error_code

String

错误码

error_msg

String

错误信息描述

detail

String

错误详情

params

Array of strings

错误参数列举

数组长度:0 - 1

reason

String

错误原因

advice

String

建议

状态码: 500

表8 响应Body参数

参数

参数类型

描述

error_code

String

错误码

error_msg

String

错误信息描述

detail

String

错误详情

params

Array of strings

错误参数列举

数组长度:0 - 1

reason

String

错误原因

advice

String

建议

请求示例

查询边缘资源池id为xxx的边缘资源池详情

GET https://{endpoint}/v2/{project_id}/edge-pools/xxx

响应示例

状态码: 200

边缘资源池详情响应体

{
  "id" : "xxx",
  "name" : "yundao2",
  "state" : "Running",
  "project_id" : "xxx",
  "workspace_id" : "0",
  "created_at" : 1683344661036,
  "updated_at" : 1683344661036,
  "nodes" : [ {
    "id" : "xxx",
    "name" : "测试边缘节点-2",
    "state" : "Running",
    "cpu" : 16,
    "arch" : "x86_64",
    "enable_gpu" : true,
    "enable_npu" : false,
    "memory" : 64263,
    "gpu_info" : [ {
      "name" : "gp0",
      "driver_version" : "418.67",
      "type" : "Tnt004",
      "capacity" : "15079Mi"
    } ],
    "npu_info" : [ ]
  } ]
}

状态码

状态码

描述

200

边缘资源池详情响应体

400

请求错误

500

内部错误

错误码

请参见错误码

分享:

    相关文档

    相关产品