ListResourceGroupMachineGroups
Retrieves a list of machine groups in a specified resource group.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
pai:ListResourceGroupMachineGroups |
list |
*All Resource
|
None | None |
Request syntax
GET /api/v1/resources/{ResourceGroupID}/machinegroups HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceGroupID |
string |
No |
The globally unique ID of the resource group. |
rgf0zhfqn1d4ity2 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
No |
The name of the machine group. |
test |
| CreatorID |
string |
No |
The ID of the user who created the machine group. |
1612285282502326 |
| PaymentType |
string |
No |
The payment type. |
PREPAY |
| PaymentDurationUnit |
string |
No |
The billing duration unit of the machine group. |
Month |
| PaymentDuration |
string |
No |
The payment duration. If |
1 |
| EcsSpec |
string |
No |
The ECS instance type. |
ecs.c6.large |
| PageNumber |
integer |
No |
The page number. |
2 |
| PageSize |
integer |
No |
The number of entries per page. |
10 |
| Order |
string |
No |
The sort order.
|
DESC |
| SortBy |
string |
No |
The field to sort by. |
GmtCreatedTime |
| Status |
string |
No |
The instance status. |
Ready |
| OrderInstanceId |
string |
No |
The ID of the purchase order. |
236553689400333 |
| MachineGroupIDs |
string |
No |
The machine group IDs. Separate multiple IDs with a comma (,). |
mg105ecqwfe49hwb |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response schema. |
||
| MachineGroups |
array |
A list of machine groups. |
|
| MachineGroup |
A machine group. |
||
| TotalCount |
string |
The total number of machine groups. |
4 |
| RequestId |
string |
The request ID. |
E7C42CC7-2E85-508A-84F4-923B605FD10F |
Examples
Success response
JSON format
{
"MachineGroups": [
{
"Status": "Success",
"EcsCount": 1,
"GmtStartedTime": "2023-06-22T00:00:00Z",
"ResourceGroupID": "rgf0zhfqn1d4ity2",
"GmtCreatedTime": "2023-06-22T00:00:00Z",
"CreatorID": "1612285282502324",
"ReasonMessage": "“”",
"PaymentDurationUnit": "Monthly",
"EcsSpec": "ecs.c6.large",
"SupportedDrivers": [
"470.199.02"
],
"PaymentDuration": "2",
"ReasonCode": "“”",
"GmtModifiedTime": "2023-06-22T00:00:00Z",
"DiskCapacity": 0,
"GmtExpiredTime": "2023-08-22T00:00:00Z\n",
"OrderInstanceId": "“”",
"DefaultDriver": "470.199.02",
"MachineGroupID": "mg1",
"PaymentType": "PREPAY",
"DiskPL": "",
"Cpu": 0,
"Gpu": 0,
"GpuMemory": 0,
"GpuType": "",
"Memory": 0,
"ResourceType": "",
"AllocatableCpu": 0,
"AllocatableMemory": 0,
"SystemReservedCpu": 0,
"SystemReservedMemory": 0
}
],
"TotalCount": "4",
"RequestId": "E7C42CC7-2E85-508A-84F4-923B605FD10F"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.