查询队列列表
更新时间:2026-10-16
描述
获取指定资源池的队列列表
- 支持指定关键字查询
- 支持分页
请求结构
Plain Text
1GET ?action=DescribeQueues&resourcePoolId=xxxx
2Host:aihc.bj.baidubce.com
3Authorization:authorization string
4ContentType: application/json
5version: v2
请求头域
除公共头域外,无其它特殊头域。
请求参数
| 参数名称 | 类型 | 是否必须 | 参数位置 | 说明 |
|---|---|---|---|---|
| resourcePoolId | String | 是 | Query 参数 | 标识资源池的唯一标识符 |
| keywordType | String | 否 | Query 参数 | 筛选关键字类型,当前仅支持queueName和queueId |
| keyword | String | 否 | Query 参数 | 关键字值 |
| pageNumber | Number | 否 | Query 参数 | 请求分页参数,表示第几页 |
| pageSize | Number | 否 | Query 参数 | 单页结果数,默认值为10 |
返回头域
除公共头域外,无其他特殊头域。
返回参数
| 参数名称 | 类型 | 说明 |
|---|---|---|
| keywordType | String | 筛选关键字类型,当前仅支持queueName和queueId |
| keyword | String | 关键字值 |
| pageNumber | Number | 请求分页参数,表示第几页,默认值为1 |
| pageSize | Number | 单页结果数,默认值为10 |
| totalCount | Number | 队列总数 |
| queues | List |
队列详情列表。注意:由于历史原因,返回了两层队列关系,实际只有children[0]中的队列id是对用户有意义的,使用时,队列id请取children[0].queueId |
调用示例
Plain Text
1GET http://aihc.bj.baidubce.com?action=DescribeQueues&resourcePoolId=aihc-ng4vnzx7fwkb
返回示例
Plain Text
1{
2 "pageSize": 10,
3 "pageNumber": 1,
4 "keywordType": "queueName",
5 "totalCount": 5,
6 "queues": [
7 {
8 "queueId": "aihcq-h0hvmrzisw3v", // 注:此 id 对用户透明,请不要使用该 id,使用 children[0] 中的 id
9 "queueName": "nodel",
10 "queueType": "Physical",
11 "resourcePoolId": "aihc-ng4vnzx7fwkb",
12 "createdAt": "2026-10-14T17:51:57+08:00",
13 "updatedAt": "2026-10-15T17:25:10+08:00",
14 "parentQueue": "63a9f0ea7bb98050796b649e85481845",
15 "children": [
16 {
17 "queueId": "aihcq-348tjsqlhoxw", // 使用该 id,可以和控制台对应
18 "queueName": "nodel",
19 "queueType": "Elastic",
20 "resourcePoolId": "aihc-ng4vnzx7fwkb",
21 "createdAt": "2026-10-14T17:51:57+08:00",
22 "updatedAt": "2026-10-15T17:25:10+08:00",
23 "parentQueue": "aihcq-h0hvmrzisw3v",
24 "opened": true,
25 "reclaimable": false,
26 "disableOversell": false,
27 "queueingStrategy": "NativeBestEffort",
28 "requeueTimeout": 0,
29 "autoDeschedulerPendingTime": 0,
30 "capability": {
31 "milliCPUcores": "8000",
32 "cpuCores": "8",
33 "memoryGi": "32",
34 "acceleratorCardList": [
35 {
36 "acceleratorCount": "0",
37 "acceleratorType": "NVIDIA GeForce RTX 4090",
38 "acceleratorDescription": "baidu.com/rtx_4090_cgpu"
39 }
40 ]
41 },
42 "deserved": {
43 "milliCPUcores": "8000",
44 "cpuCores": "8",
45 "memoryGi": "32",
46 "acceleratorCardList": [
47 {
48 "acceleratorCount": "0",
49 "acceleratorType": "NVIDIA GeForce RTX 4090",
50 "acceleratorDescription": "baidu.com/rtx_4090_cgpu"
51 }
52 ]
53 },
54 "guarantee": {
55 "milliCPUcores": "8000",
56 "cpuCores": "8",
57 "memoryGi": "32",
58 "acceleratorCardList": [
59 {
60 "acceleratorCount": "0",
61 "acceleratorType": "NVIDIA GeForce RTX 4090",
62 "acceleratorDescription": "baidu.com/rtx_4090_cgpu"
63 }
64 ]
65 },
66 "allocated": {
67 "milliCPUcores": "0",
68 "memoryGi": "0"
69 },
70 "workloadAvailable": {},
71 "remaining": {},
72 "rdmaCapable": false,
73 "erdmaCapable": false,
74 "enableMig": false,
75 "unavailableNodeCount": 0,
76 "unavailableAcceleratorNum": 0,
77 "unhealthyNodeCount": 0,
78 "readyCordonNodeCount": 0
79 }
80 ],
81 "opened": true,
82 "reclaimable": false,
83 "disableOversell": false,
84 "queueingStrategy": "NativeBestEffort",
85 "requeueTimeout": 0,
86 "autoDeschedulerPendingTime": 0,
87 "capability": {
88 "milliCPUcores": "8000",
89 "cpuCores": "8",
90 "memoryGi": "32",
91 "acceleratorCardList": [
92 {
93 "acceleratorCount": "0",
94 "acceleratorType": "NVIDIA GeForce RTX 4090",
95 "acceleratorDescription": "baidu.com/rtx_4090_cgpu"
96 }
97 ]
98 },
99 "deserved": {
100 "milliCPUcores": "8000",
101 "cpuCores": "8",
102 "memoryGi": "32",
103 "acceleratorCardList": [
104 {
105 "acceleratorCount": "0",
106 "acceleratorType": "NVIDIA GeForce RTX 4090",
107 "acceleratorDescription": "baidu.com/rtx_4090_cgpu"
108 }
109 ]
110 },
111 "guarantee": {
112 "milliCPUcores": "8000",
113 "cpuCores": "8",
114 "memoryGi": "32",
115 "acceleratorCardList": [
116 {
117 "acceleratorCount": "0",
118 "acceleratorType": "NVIDIA GeForce RTX 4090",
119 "acceleratorDescription": "baidu.com/rtx_4090_cgpu"
120 }
121 ]
122 },
123 "allocated": {
124 "milliCPUcores": "0",
125 "cpuCores": "0",
126 "memoryGi": "0"
127 },
128 "workloadAvailable": {
129 "milliCPUcores": "5975",
130 "cpuCores": "5",
131 "memoryGi": "24"
132 },
133 "remaining": {
134 "milliCPUcores": "5975",
135 "cpuCores": "5",
136 "memoryGi": "24"
137 },
138 "extenderResources": [
139 {
140 "resourceType": "cds",
141 "capacity": 5,
142 "allocated": 0,
143 "idle": 5,
144 "allocationRate": 0,
145 "utilizationRate": 0
146 }
147 ],
148 "rdmaCapable": false,
149 "erdmaCapable": false,
150 "enableMig": false,
151 "unavailableNodeCount": 0,
152 "unavailableAcceleratorNum": 0,
153 "unhealthyNodeCount": 0,
154 "readyCordonNodeCount": 0
155 },
156 {
157 ...
158 }
159 ]
160}
评价此篇文章
