查询队列列表
更新时间:2024-12-27
描述
获取队列列表,包含队列详情
请求结构
Plain Text
1GET /api/v1/resourcepools/{resourcePoolId}/queue
2Host:aihc.bj.baidubce.com
3Authorization:authorization string
4ContentType: application/json
请求头域
除公共头域外,无其它特殊头域。
请求参数
参数名称 | 类型 | 是否必须 | 参数位置 | 说明 |
---|---|---|---|---|
resourcePoolId | String | 是 | Path参数 | 标识资源池的唯一标识符 |
orderBy | String | 否 | Query 参数 | 集群查询排序字段,目前仅支持通过创建时间(createdTime)排序 |
order | String | 否 | Query 参数 | 排序方式,可选 [asc, desc],asc 为升序,desc 为降序,默认值为 desc |
pageNo | Integer | 否 | Query 参数 | 页码,默认值为1 |
pageSize | Integer | 否 | Query 参数 | 单页结果数,默认值为10 |
返回头域
除公共头域,无其它特殊头域。
返回参数
参数名称 | 类型 | 是否必须 | 说明 |
---|---|---|---|
requestId | String | 是 | 请求ID |
result | QueueListResult | 是 | 请求成功时的响应结果 |
返回示例
JSON
1{
2 "result": {
3 "total": 3,
4 "queues": [
5 {
6 "createdTime": "2024-06-05T09:09:32Z",
7 "name": "63a9f0ea7bb98050796b649e85481845",
8 "nameSpace": "",
9 "parentQueue": "63a9f0ea7bb98050796b649e85481845",
10 "queueType": "Regular",
11 "state": "Open",
12 "reclaimable": true,
13 "capability": {
14 "cce.baidubce.com/eni": "2",
15 "cce.baidubce.com/ip": "512",
16 "cpu": "136",
17 "ephemeral-storage": "392812923001",
18 "hugepages-1Gi": "0",
19 "hugepages-2Mi": "0",
20 "memory": "573173870592",
21 "pods": "512"
22 },
23 "allocated": {
24 "cpu": "0",
25 "memory": "0"
26 },
27 "disableOversell": false
28 },
29 {
30 "createdTime": "2024-06-05T09:09:28Z",
31 "name": "default",
32 "nameSpace": "",
33 "parentQueue": "63a9f0ea7bb98050796b649e85481845",
34 "queueType": "Elastic",
35 "state": "Open",
36 "reclaimable": true,
37 "allocated": {
38 "cpu": "0",
39 "memory": "0"
40 },
41 "disableOversell": false
42 }
43 ]
44 },
45 "requestID": "65b3909e-0711-42f4-b120-e1436e3a1c57"
46}