您可以通过GetResourceGroupMachineGroup获取机器组的详情。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
pai:GetResourceGroupMachineGroup |
get |
*MachineGroup
|
无 | 无 |
请求语法
GET /api/v1/resources/{ResourceGroupID}/machinegroups/{MachineGroupID} HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| MachineGroupID |
string |
是 |
MachineGroup 的 ID。 |
mgmioirqjgw6c5lg |
| ResourceGroupID |
string |
是 |
资源组 ID,每一个资源组都有全局唯一的资源组 ID。可以通过资源组 ID 来获取资源组的信息。 |
rgf0zhfqn1d4ity2 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| Tag |
array<object> |
否 |
对应新增标签列表,最多包含 20 个子项 |
|
|
object |
否 |
|||
| Key |
string |
否 |
实例的标签键。N 的取值范围为 1~20。 |
TestKey |
| Value |
string |
否 |
实例的标签值。N 的取值范围为 1~20。 |
TestValue |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| MachineGroupID |
string |
MachineGroup 的 ID。 |
mgmioirqjgw6c5lg |
| ResourceGroupID |
string |
资源组 ID,每一个资源组都有全局唯一的资源组 ID。可以通过资源组 ID 来获取资源组的信息。 |
rgf0zhfqn1d4ity2 |
| Status |
string |
实例状态。 Creating:创建中 Ready:运行中 Expiring: 即将过期 Expired: 已过期 Stopping:停止中 Stopped:已停止 |
Ready |
| PaymentType |
string |
付费类型。 |
PREPAY |
| PaymentDurationUnit |
string |
机器组计费时间单位。 |
Month |
| PaymentDuration |
string |
付费时长。当 PaymentDurationUnit 取值为 Month 时,取值:1、2、3、4、5、6、7、8、9、12、24、36、48、60。 |
1 |
| EcsSpec |
string |
Ecs 规格。 |
ecs.c6.large |
| EcsCount |
integer |
Ecs 实例数。 |
1 |
| GmtCreatedTime |
string |
机器组创建时间。 |
2023-06-22T00:00:00Z |
| GmtModifiedTime |
string |
机器组更新时间。 |
2023-06-22T00:00:00Z |
| GmtStartedTime |
string |
机器组启动时间。 |
2023-06-22T00:00:00Z |
| GmtExpiredTime |
string |
机器组失效时间。 |
2023-06-22T00:00:00Z |
| RequestId |
string |
请求 ID。 |
18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E |
| Cpu |
string |
机器组中每一台机器的 CPU 总核数。 |
2 |
| Gpu |
string |
机器组中每一台机器的 GPU 核数。 |
8 |
| GpuType |
string |
机器组中每一台机器的 GPU 卡型。 |
A100 |
| Memory |
string |
机器组中每一台机器的内存数。 |
64 |
| SupportedDrivers |
array |
机器组中节点支持的 GPU 显卡驱动版本。 |
|
|
string |
535,550 |
535,550 |
|
| DefaultDriver |
string |
机器组中每一台机器的默认的显卡驱动的版本。 |
535 |
| Name |
string |
机器组名称。 |
testMachineGroup |
| Tags |
array<object> |
要查询的 Tags 列表,采用 JSON 字符串的形式,最多包含 20 个子项。 |
|
|
object |
标签数组。数组元素个数 N 取值范围:1~20。 |
||
| TagKey |
string |
实例的标签键。N 的取值范围为 1~20。 |
TestKey |
| TagValue |
string |
实例的标签值。N 的取值范围为 1~20。 |
TestValue |
| AllocatableCpu |
string |
||
| AllocatableMemory |
string |
||
| SystemReservedCpu |
string |
||
| SystemReservedMemory |
string |
示例
正常返回示例
JSON格式
{
"MachineGroupID": "mgmioirqjgw6c5lg",
"ResourceGroupID": "rgf0zhfqn1d4ity2",
"Status": "Ready",
"PaymentType": "PREPAY",
"PaymentDurationUnit": "Month",
"PaymentDuration": "1",
"EcsSpec": "ecs.c6.large",
"EcsCount": 1,
"GmtCreatedTime": "2023-06-22T00:00:00Z",
"GmtModifiedTime": "2023-06-22T00:00:00Z",
"GmtStartedTime": "2023-06-22T00:00:00Z",
"GmtExpiredTime": "2023-06-22T00:00:00Z\n",
"RequestId": "18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E",
"Cpu": "2",
"Gpu": "8",
"GpuType": "A100",
"Memory": "64",
"SupportedDrivers": [
"535,550"
],
"DefaultDriver": "535",
"Name": "testMachineGroup",
"Tags": [
{
"TagKey": "TestKey",
"TagValue": "TestValue"
}
],
"AllocatableCpu": "",
"AllocatableMemory": "",
"SystemReservedCpu": "",
"SystemReservedMemory": ""
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。