GetResourceGroupMachineGroup
Call GetResourceGroupMachineGroup to retrieve the details of a machine group.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
pai:GetResourceGroupMachineGroup |
get |
*MachineGroup
|
None | None |
Request syntax
GET /api/v1/resources/{ResourceGroupID}/machinegroups/{MachineGroupID} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| MachineGroupID |
string |
Yes |
The ID of the machine group. |
mgmioirqjgw6c5lg |
| ResourceGroupID |
string |
Yes |
The globally unique ID of the resource group. You can use this ID to retrieve details about the group. |
rgf0zhfqn1d4ity2 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Tag |
array<object> |
No |
A list of up to 20 tags. |
|
|
object |
No |
|||
| Key |
string |
No |
The tag key. |
TestKey |
| Value |
string |
No |
The tag value. |
TestValue |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Response schema |
||
| MachineGroupID |
string |
The ID of the machine group. |
mgmioirqjgw6c5lg |
| ResourceGroupID |
string |
The ID of the resource group. This ID is globally unique and can be used to retrieve information about the resource group. |
rgf0zhfqn1d4ity2 |
| Status |
string |
The status of the machine group. Valid values: Creating: The machine group is being created. Ready: The machine group is running. Expiring: The machine group is about to expire. Expired: The machine group has expired. Stopping: The machine group is being stopped. Stopped: The machine group has been stopped. |
Ready |
| PaymentType |
string |
The payment type. |
PREPAY |
| PaymentDurationUnit |
string |
The unit of the billing cycle for the machine group. |
Month |
| PaymentDuration |
string |
The payment duration. When PaymentDurationUnit is set to Month, valid values are: 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 48, and 60. |
1 |
| EcsSpec |
string |
The ECS spec. |
ecs.c6.large |
| EcsCount |
integer |
The number of ECS instances. |
1 |
| GmtCreatedTime |
string |
The creation time of the machine group. |
2023-06-22T00:00:00Z |
| GmtModifiedTime |
string |
The last modification time of the machine group. |
2023-06-22T00:00:00Z |
| GmtStartedTime |
string |
The start time of the machine group. |
2023-06-22T00:00:00Z |
| GmtExpiredTime |
string |
The expiration time of the machine group. |
2023-06-22T00:00:00Z |
| RequestId |
string |
The request ID. |
18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E |
| Cpu |
string |
The total number of CPU cores per machine in the machine group. |
2 |
| Gpu |
string |
The number of GPUs per machine in the machine group. |
8 |
| GpuType |
string |
The GPU type per machine in the machine group. |
A100 |
| Memory |
string |
The amount of memory per machine in the machine group. |
64 |
| SupportedDrivers |
array |
The GPU driver versions supported by the machines in the machine group. |
|
|
string |
A supported GPU driver version. |
535,550 |
|
| DefaultDriver |
string |
The default GPU driver version per machine in the machine group. |
535 |
| Name |
string |
The name of the machine group. |
testMachineGroup |
| Tags |
array<object> |
The list of tags attached to the machine group. |
|
|
object |
A tag object. |
||
| TagKey |
string |
The tag key. |
TestKey |
| TagValue |
string |
The tag value. |
TestValue |
| AllocatableCpu |
string |
||
| AllocatableMemory |
string |
||
| SystemReservedCpu |
string |
||
| SystemReservedMemory |
string |
Examples
Success response
JSON format
{
"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": ""
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.