GetMachineGroup
Retrieves the details of a specific machine group.
This API has been deprecated. We recommend migrating to PaiStudio(2022-01-12) - GetMachineGroup for enhanced functionality and continued support. While the deprecated API remains temporarily accessible, no further updates or bug fixes will be provided.
Try it now
Test
RAM authorization
Request syntax
GET /api/v1/resources/machinegroups/{MachineGroupID} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| MachineGroupID |
string |
Yes |
The ID of the machine group. |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned data. |
||
| MachineGroupID |
string |
The ID of the machine group. |
|
| OrderID |
string |
The order ID. |
|
| PAIResourceID |
string |
The PAI resource ID. |
|
| Status |
string |
The status of the machine group. |
|
| PayType |
string |
The payment type. Valid values: |
|
| PricingCycle |
string |
The billing cycle. This parameter is returned only when |
|
| Duration |
string |
The subscription duration. This parameter is returned only when |
|
| EcsType |
string |
The ECS instance type of the machine group. |
|
| Count |
integer |
The number of instances in the machine group. |
|
| RegionID |
string |
The region ID. |
|
| GmtCreated |
string |
The time when the machine group was created. |
|
| GmtModified |
string |
The time when the machine group was last modified. |
|
| GmtStarted |
string |
The time when the machine group started. |
|
| GmtExpired |
string |
The expiration time. This parameter is returned only when |
|
| RequestId |
string |
The request ID. |
|
| SupportedDrivers |
array |
The drivers that the machine group supports. |
|
|
string |
The driver name. |
||
| DefaultDriver |
string |
The default driver. |
|
| OrderInstanceId |
string |
The instance ID of the order. |
Examples
Success response
JSON format
{
"MachineGroupID": "",
"OrderID": "",
"PAIResourceID": "",
"Status": "",
"PayType": "",
"PricingCycle": "",
"Duration": "",
"EcsType": "",
"Count": 0,
"RegionID": "",
"GmtCreated": "",
"GmtModified": "",
"GmtStarted": "",
"GmtExpired": "",
"RequestId": "",
"SupportedDrivers": [
""
],
"DefaultDriver": "",
"OrderInstanceId": ""
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.