AI节点资源列表
接口说明
请求说明
该 API 用于获取特定 Holo 实例上已部署的模型服务信息,包括但不限于 CPU、GPU、内存等资源占用情况。
instanceId参数为可选项,若不提供,则默认返回所有相关实例的信息。此接口适用于 Hologres AI 节点,对于非 AI 节点的部分参数可能无效或不适用。
请确保在使用该接口前,已充分了解阿里云 Hologram 产品的收费方式和价格。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
GET /api/v1/instances/rpc/listInstanceModel HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
当前API无需请求参数
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| requestId |
string |
Id of the request |
2C2ECDC1-FBAD-14A5-AA4A-96BC787FBDBC |
| instanceModelList |
array<object> |
AI 资源列表 |
|
|
object |
|||
| cpu |
integer |
CPU 规格,此参数仅适用于 Hologres AI 节点 |
7 |
| gpu |
integer |
gpu 卡数,此参数仅适用于 Hologres AI 节点 |
1 |
| memory |
integer |
内存,单位 GiB,此参数仅适用于 Hologres AI 节点 |
16 |
| gpuMemory |
integer |
显存大小,单位 GB,此参数仅适用于 Hologres AI 节点 |
32 |
| cpuUsed |
integer |
已使用的节点总 CPU,此参数仅适用于 Hologres AI 节点 |
7 |
| memoryUsed |
integer |
已使用的节点总内存,此参数仅适用于 Hologres AI 节点 |
32 |
| gpuUsed |
integer |
已使用的节点总 GPU,此参数仅适用于 Hologres AI 节点 |
32 |
| aiInstanceId |
string |
AI 节点实例 id |
hologram_aicombo_public_cn-77xxx |
| gpuMemoryUsed |
integer |
已使用的节点总显存,此参数仅适用于 Hologres AI 节点 |
32 |
| regionId |
string |
无 |
cn-hangzhou |
| resourceType |
string |
无 |
small |
| nodeCount |
integer |
节点数量 |
2 |
| commodityCode |
string |
无 |
hologram_aipostpay_public_cn |
| chargeType |
string |
无 |
PostPaid |
| status |
string |
状态 |
ResourceReady |
| expirationTime |
string |
过期时间(UTC) |
2026-01-28T07:44:27.535Z |
| autoRenewal |
boolean |
是否自动续费 |
|
| holoInstanceId |
string |
Holo 实例 ID |
hgpostcn-cn-yi34hlzdx003 |
| holoInstanceName |
string |
Holo 实例名称 |
AI节点List测试 |
| aiSpec |
string |
AI 规格 |
small-8core-30G-24G |
示例
正常返回示例
JSON格式
{
"requestId": "2C2ECDC1-FBAD-14A5-AA4A-96BC787FBDBC",
"instanceModelList": [
{
"cpu": 7,
"gpu": 1,
"memory": 16,
"gpuMemory": 32,
"cpuUsed": 7,
"memoryUsed": 32,
"gpuUsed": 32,
"aiInstanceId": "hologram_aicombo_public_cn-77xxx",
"gpuMemoryUsed": 32,
"regionId": "cn-hangzhou",
"resourceType": "small",
"nodeCount": 2,
"commodityCode": "hologram_aipostpay_public_cn",
"chargeType": "PostPaid",
"status": "ResourceReady",
"expirationTime": "2026-01-28T07:44:27.535Z",
"autoRenewal": true,
"holoInstanceId": "hgpostcn-cn-yi34hlzdx003",
"holoInstanceName": "AI节点List测试",
"aiSpec": "small-8core-30G-24G"
}
]
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。