获取只读从实例
接口说明
请求说明
该 API 用于获取特定 Holo 实例上已部署的模型服务信息,包括但不限于 CPU、GPU、内存等资源占用情况。
instanceId参数为可选项,若不提供,则默认返回所有相关实例的信息。此接口适用于 Hologres AI 节点,对于非 AI 节点的部分参数可能无效或不适用。
请确保在使用该接口前,已充分了解阿里云 Hologram 产品的收费方式和价格。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
GET /api/v1/instances/{instanceId}/listFollowerInstances HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| instanceId |
string |
否 |
实例 id。 |
hgprecn-cn-xxxxxxx |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RegionId |
string |
否 |
地域 id。 |
cn-hangzhou |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
D3AE84AB-0873-5FC7-A4C4-8CF869D2FA70 |
| InstanceList |
array<object> |
实例详情。 |
|
|
array<object> |
实例详情。 |
||
| InstanceId |
string |
实例 ID。 |
hgpostcn-cn-aaab9ad2d8fb |
| InstanceName |
string |
实例名称。 |
test_instance |
| CommodityCode |
string |
商品 code,与费用中心产品明细 code 一致 |
hologram_postpay_public_cn |
| InstanceStatus |
string |
实例状态。 |
Running |
| ChargeType |
string |
付费类型。 |
PostPaid |
| CreationTime |
string |
创建时间。 |
2022-12-16T02:24:05Z |
| ExpirationTime |
string |
到期时间。 |
2023-05-04T16:00:00.000Z |
| InstanceType |
string |
实例类型。 |
Standard |
| Tags |
array<object> |
标签详情。 |
|
|
object |
标签详情。 |
||
| Key |
string |
标签键。 |
tag |
| Value |
string |
标签值。 |
value |
| Success |
string |
请求结果,表示此次请求是否发生异常,和业务无关 |
true |
| ErrorCode |
string |
错误码。 |
null |
| ErrorMessage |
string |
错误信息。 |
null |
| HttpStatusCode |
string |
http 状态码。 |
200 |
示例
正常返回示例
JSON格式
{
"RequestId": "D3AE84AB-0873-5FC7-A4C4-8CF869D2FA70",
"InstanceList": [
{
"InstanceId": "hgpostcn-cn-aaab9ad2d8fb",
"InstanceName": "test_instance",
"CommodityCode": "hologram_postpay_public_cn",
"InstanceStatus": "Running",
"ChargeType": "PostPaid",
"CreationTime": "2022-12-16T02:24:05Z",
"ExpirationTime": "2023-05-04T16:00:00.000Z",
"InstanceType": "Standard",
"Tags": [
{
"Key": "tag",
"Value": "value"
}
]
}
],
"Success": "true",
"ErrorCode": "null",
"ErrorMessage": "null",
"HttpStatusCode": "200"
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。