You need to enable JavaScript to run this app.
导航

获取规格列表

最近更新时间2023.09.18 20:30:23

首次发布时间2023.09.18 20:30:23

本接口名称为list_cell_spec

请求参数

名称

类型

是否必选

默认值

描述

params

dict

{
"WorkspaceId": 1993
}

参数解释如下:
WorkspaceId:工作区 ID。

返回参数

名称

类型

描述

cell_spec_list

dict
{
"cell_specs": [ { "id": 1,
"cpu_count": 16,
"cpu_type": "CPU",
"gpu_count": 1,
"gpu_type": "**",
"memory": 64,
"system_info": "windows",
"cell_type": "virtual",
"unit_price": 9.8
}
]
}

CellSpec 的参数解释如下:

  • id:规格模板 ID,后续用到规格模板 ID 的地方均使用此 ID。
  • cpu_count:CPU 数量。
  • cpu_typee:CPU 类型。
  • gpu_count:CPU 数量。
  • gpu_type:GPU 类型。
  • memory:内存。
  • system_info:系统信息。取值范围:windows;linux。
  • cell_type:规格类型。
  • unit_price:单价。

异常列表

异常

说明

InternalError

参数错误,如:工作区不存在。

调用示例

请参见 list_cell_specs_demo.py