获取资源池详情。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
ehpc:GetPool |
get |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| PoolName |
string |
是 |
资源池名称。
|
PoolTest |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
896D338C-E4F4-41EC-A154-D605E5DE**** |
| PoolInfo |
object |
资源池信息。 |
|
| PoolName |
string |
资源池名称。
|
PoolTest |
| Status |
string |
资源池状态。取值范围:
|
Working |
| IsDefault |
boolean |
是否是默认资源池。取值说明:
|
true |
| Priority |
integer |
资源池的优先级。
|
1 |
| MaxExecutorNum |
integer |
用户在一个资源池内允许并发运行的执行节点数量限制。 |
100 |
| ExecutorUsage |
integer |
在一个资源池内正在运行的执行节点用量。 |
100 |
| CreateTime |
string |
资源池创建时间。 |
2024-12-01 20:00:00 |
| UpdateTime |
string |
资源池更新时间。 |
2024-12-01 20:00:00 |
| Reason |
string |
错误原因。 |
Fails to *** pool: ***. |
| SchedulingPolicyId |
string |
调度策略 ID。 |
policy-xxx |
示例
正常返回示例
JSON格式
{
"RequestId": "896D338C-E4F4-41EC-A154-D605E5DE****",
"PoolInfo": {
"PoolName": "PoolTest",
"Status": "Working",
"IsDefault": true,
"Priority": 1,
"MaxExecutorNum": 100,
"ExecutorUsage": 100,
"CreateTime": "2024-12-01 20:00:00",
"UpdateTime": "2024-12-01 20:00:00",
"Reason": "Fails to *** pool: ***.",
"SchedulingPolicyId": "policy-xxx"
}
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InvalidParams | The specified parameter %s is invalid. | 无效的参数:%s |
| 400 | InDebt | Your account has overdue payments. | 您的账户已欠费 |
| 400 | NotEnabled | You have not enabled this service. | 您的账户还未开通此服务 |
| 403 | GetResourceFailed | Failed to get resource. | 获取资源失败 |
| 403 | RecommendEmpty.InstanceTypeSoldOut | The resource is out of stock. | 资源已售罄 |
| 403 | PoolNotFound | The specified pool was not found. | 资源池不存在 |
| 503 | ServiceUnavailable | The request has failed due to a temporary failure of the server. | 请求失败,服务暂时不可用 |
| 406 | AliyunError | An Alibaba Cloud product error occurred. | 阿里云产品错误. %s |
| 406 | EcsError | An error occurred while calling the ECS API operation. | ECS API调用出错 |
| 406 | DbError | A database error occurred. | 数据库错误 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。