Obtain the statistics of a resource pool.
You can debug this API through automatic authentication in or use the SDK sample code generated by API Explorer.
GET /v2/{project_id}/statistics/pools
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
project_id |
Yes |
String |
Project ID. For details, see Obtaining a Project ID and Name. |
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
workspaceId |
No |
String |
Workspace. The default value is 0. |
None
Status code: 200
Parameter |
Type |
Description |
|---|---|---|
statistics |
statistics object |
Resource pool statistics. |
operationTime |
String |
Time when statistics are collected. |
Parameter |
Type |
Description |
|---|---|---|
status |
status object |
Statistics about resource pools in different states. |
Parameter |
Type |
Description |
|---|---|---|
creating |
Integer |
Number of resource pools that are being created. |
created |
Integer |
Number of resource pools that are successfully created. |
failed |
Integer |
Number of resource pools that fail to be created in the last three days. The maximum value is 500. |
pending |
Integer |
Number of pools in waiting state, usually yearly/monthly pools that have not been paid. |
Status code: 500
Parameter |
Type |
Description |
|---|---|---|
error_code |
String |
Error code. |
error_msg |
String |
Error message. |
This interface is used to query resource pool monitoring information.
GET https://{endpoint}/v2/{project_id}/pools
{ }
Status code: 200
OK.
{
"statistics" : {
"status" : {
"created" : 3,
"creating" : 0,
"failed" : 1,
"pending" : 0
}
},
"operationTime" : "2022-12-05 11:15:59.329633162 +0000 UTC"
}
Status code: 500
Internal error
{
"error_code" : "ModelArts.50005000",
"error_msg" : "internal error"
}
Status Code |
Description |
|---|---|
200 |
OK. |
500 |
Internal error |
See Error Codes.