查询队列详情
更新时间:2026-10-16
描述
获取一个队列的详细信息.
请求结构
Plain Text
1GET ?action=DescribeQueue&queueId=xxxx
2Host:aihc.bj.baidubce.com
3Authorization:authorization string
4ContentType: application/json
5version: v2
请求头域
除公共头域外,无其它特殊头域。
请求参数
| 参数名称 | 类型 | 是否必须 | 参数位置 | 说明 |
|---|---|---|---|---|
| queueId | String | 是 | Query 参数 | 标识队列的唯一标识符 |
返回头域
除公共头域,无其它特殊头域。
返回参数
| 参数名称 | 类型 | 说明 |
|---|---|---|
| queue | QueueItem | 队列详细信息。注意:由于历史原因,返回了两层队列关系,实际只有children[0]中的队列id是对用户有意义的,使用时,队列id请取children[0].queueId |
调用示例
Plain Text
1GET http://aihc.bj.baidubce.com?action=DescribeQueue&queueId=aihcq-348tjsqlhoxw
返回示例
Plain Text
1{
2 "queueId": "aihcq-h0hvmrzisw3v", // 注:此 id 对用户透明,请不要使用该 id,使用 children[0] 中的 id
3 "queueName": "nodel",
4 "queueType": "Physical",
5 "resourcePoolId": "aihc-ng4vnzx7fwkb",
6 "createdAt": "2026-10-14T17:51:57+08:00",
7 "updatedAt": "2026-10-15T17:25:10+08:00",
8 "parentQueue": "63a9f0ea7bb98050796b649e85481845",
9 "children": [
10 {
11 "queueId": "aihcq-348tjsqlhoxw", // 使用该 id,可以和控制台对应
12 "queueName": "nodel",
13 "queueType": "Elastic",
14 "resourcePoolId": "aihc-ng4vnzx7fwkb",
15 "createdAt": "2026-10-14T17:51:57+08:00",
16 "updatedAt": "2026-10-15T17:25:10+08:00",
17 "parentQueue": "aihcq-h0hvmrzisw3v",
18 "opened": true,
19 "reclaimable": false,
20 "disableOversell": false,
21 "queueingStrategy": "NativeBestEffort",
22 "requeueTimeout": 0,
23 "autoDeschedulerPendingTime": 0,
24 "capability": {
25 "milliCPUcores": "8000",
26 "cpuCores": "8",
27 "memoryGi": "32",
28 "acceleratorCardList": [
29 {
30 "acceleratorCount": "0",
31 "acceleratorType": "NVIDIA GeForce RTX 4090",
32 "acceleratorDescription": "baidu.com/rtx_4090_cgpu"
33 }
34 ]
35 },
36 "deserved": {
37 "milliCPUcores": "8000",
38 "cpuCores": "8",
39 "memoryGi": "32",
40 "acceleratorCardList": [
41 {
42 "acceleratorCount": "0",
43 "acceleratorType": "NVIDIA GeForce RTX 4090",
44 "acceleratorDescription": "baidu.com/rtx_4090_cgpu"
45 }
46 ]
47 },
48 "guarantee": {
49 "milliCPUcores": "8000",
50 "cpuCores": "8",
51 "memoryGi": "32",
52 "acceleratorCardList": [
53 {
54 "acceleratorCount": "0",
55 "acceleratorType": "NVIDIA GeForce RTX 4090",
56 "acceleratorDescription": "baidu.com/rtx_4090_cgpu"
57 }
58 ]
59 },
60 "allocated": {
61 "milliCPUcores": "0",
62 "memoryGi": "0"
63 },
64 "workloadAvailable": {},
65 "remaining": {},
66 "maxDeservedForSubqueue": {
67 "milliCPUcores": "8000",
68 "cpuCores": "8",
69 "memoryGi": "32",
70 "acceleratorCardList": [
71 {
72 "acceleratorCount": "0",
73 "acceleratorType": "NVIDIA GeForce RTX 4090",
74 "acceleratorDescription": "baidu.com/rtx_4090_cgpu"
75 }
76 ]
77 },
78 "maxGuaranteeForSubqueue": {
79 "milliCPUcores": "8000",
80 "cpuCores": "8",
81 "memoryGi": "32",
82 "acceleratorCardList": [
83 {
84 "acceleratorCount": "0",
85 "acceleratorType": "NVIDIA GeForce RTX 4090",
86 "acceleratorDescription": "baidu.com/rtx_4090_cgpu"
87 }
88 ]
89 },
90 "rdmaCapable": false,
91 "erdmaCapable": false,
92 "enableMig": false,
93 "unavailableNodeCount": 0,
94 "unavailableAcceleratorNum": 0,
95 "unhealthyNodeCount": 0,
96 "readyCordonNodeCount": 0
97 }
98 ],
99 "opened": true,
100 "reclaimable": false,
101 "disableOversell": false,
102 "queueingStrategy": "NativeBestEffort",
103 "requeueTimeout": 0,
104 "autoDeschedulerPendingTime": 0,
105 "capability": {
106 "milliCPUcores": "8000",
107 "cpuCores": "8",
108 "memoryGi": "33653301248",
109 "acceleratorCardList": [
110 {
111 "acceleratorCount": "0",
112 "acceleratorType": "NVIDIA GeForce RTX 4090",
113 "acceleratorDescription": "baidu.com/rtx_4090_cgpu"
114 }
115 ]
116 },
117 "deserved": {
118 "milliCPUcores": "8000",
119 "cpuCores": "8",
120 "memoryGi": "32",
121 "acceleratorCardList": [
122 {
123 "acceleratorCount": "0",
124 "acceleratorType": "NVIDIA GeForce RTX 4090",
125 "acceleratorDescription": "baidu.com/rtx_4090_cgpu"
126 }
127 ]
128 },
129 "guarantee": {
130 "milliCPUcores": "8000",
131 "cpuCores": "8",
132 "memoryGi": "32",
133 "acceleratorCardList": [
134 {
135 "acceleratorCount": "0",
136 "acceleratorType": "NVIDIA GeForce RTX 4090",
137 "acceleratorDescription": "baidu.com/rtx_4090_cgpu"
138 }
139 ]
140 },
141 "allocated": {},
142 "maxDeservedForSubqueue": {
143 "milliCPUcores": "8000",
144 "cpuCores": "8",
145 "memoryGi": "32",
146 "acceleratorCardList": [
147 {
148 "acceleratorCount": "0",
149 "acceleratorType": "NVIDIA GeForce RTX 4090",
150 "acceleratorDescription": "baidu.com/rtx_4090_cgpu"
151 }
152 ]
153 },
154 "maxGuaranteeForSubqueue": {
155 "milliCPUcores": "8000",
156 "cpuCores": "8",
157 "memoryGi": "32",
158 "acceleratorCardList": [
159 {
160 "acceleratorCount": "0",
161 "acceleratorType": "NVIDIA GeForce RTX 4090",
162 "acceleratorDescription": "baidu.com/rtx_4090_cgpu"
163 }
164 ]
165 },
166 "bindingNodes": [
167 {
168 "machineSpec": "bcc.g4.c8m32",
169 "nodeNameList": [
170 "10.0.2.114"
171 ],
172 "count": 1,
173 "acceleratorType": "cpu",
174 "zoneName": ""
175 }
176 ],
177 "rdmaCapable": false,
178 "erdmaCapable": false,
179 "enableMig": false,
180 "unavailableNodeCount": 0,
181 "unavailableAcceleratorNum": 0,
182 "unhealthyNodeCount": 0,
183 "readyCordonNodeCount": 0
184}
评价此篇文章
