Mengkueri daftar antrian dalam ruang kerja.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
emr-serverless-spark:ListWorkspaceQueues |
none |
*Semua resource.
|
None | None |
Sintaks permintaan
GET /api/v1/workspaces/{workspaceId}/queues HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| workspaceId |
string |
No |
ID ruang kerja. |
w-26ca1703f6d7**** |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| environment |
string |
No |
Tipe lingkungan. Valid values:
|
production |
| regionId |
string |
No |
ID wilayah. |
cn-hangzhou |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Parameter tanggapan. |
||
| queues |
array<object> |
Daftar antrian. |
|
|
array<object> |
Detail antrian. |
||
| regionId |
string |
ID wilayah. |
cn-hangzhou |
| queueName |
string |
Nama antrian. |
dev_queue |
| workspaceId |
string |
ID ruang kerja. |
w-1234abcd |
| queueType |
string |
Tipe antrian. Nilai valid:
|
instance |
| properties |
string |
The queue label. |
dev_queue |
| queueScope |
string |
Cakupan (dalam OAuth) antrian. |
{"arch": "x86"} |
| maxResource |
string |
Kapasitas sumber daya maksimum antrian. |
{"cpu": "2","memory": "2Gi"} |
| minResource |
string |
Kapasitas sumber daya minimum antrian. |
{"cpu": "2","memory": "2Gi"} |
| usedResource |
string |
Kapasitas sumber daya antrian yang digunakan. |
{"cpu": "2","memory": "2Gi"} |
| queueStatus |
string |
Status antrian. |
RUNNING |
| creator |
string |
UID pengguna yang membuat antrian. |
237109 |
| allowActions |
array<object> |
Daftar aksi yang diizinkan pada antrian. |
|
|
object |
Aksi yang diizinkan pada antrian. |
||
| actionArn |
string |
The Alibaba Cloud Resource Name (ARN) of the behavior. |
acs:emr::workspaceId:action/create_queue |
| actionName |
string |
The permission name. |
view |
| displayName |
string |
The display name of the permission. |
文件目录遍历、文件浏览 |
| description |
string |
The action description. |
Directory traversal and file browsing |
| dependencies |
array |
The list of action dependencies. |
["view"] |
|
string |
The action dependency. |
view |
|
| environments |
array |
Daftar tipe lingkungan antrian. |
|
|
string |
Tipe lingkungan antrian. |
production |
|
| paymentType |
string |
Metode penagihan. Nilai valid:
|
PayAsYouGo |
| createTime |
integer |
Pengatur waktu pembuatan ruang kerja. |
1684115879955 |
| preheat |
boolean |
||
| queueCategory |
string |
CPU |
|
| gpuSpec |
array |
||
|
string |
ecs.gn7i-c8g1.2xlarge |
||
| gpuMachineNum |
integer |
||
| instanceId |
string |
||
| requestId |
string |
ID permintaan. |
DD6B1B2A-5837-5237-ABE4-FF0C8944**** |
| nextToken |
string |
Token untuk halaman berikutnya. |
1 |
| maxResults |
integer |
Jumlah maksimum rekaman yang dikembalikan per pengatur waktu. |
20 |
| totalCount |
integer |
Jumlah total rekaman. |
200 |
Contoh
Respons sukses
JSONformat
{
"queues": [
{
"regionId": "cn-hangzhou",
"queueName": "dev_queue",
"workspaceId": "w-1234abcd",
"queueType": "instance",
"properties": "dev_queue",
"queueScope": "{\"arch\": \"x86\"}",
"maxResource": "{\"cpu\": \"2\",\"memory\": \"2Gi\"}",
"minResource": "{\"cpu\": \"2\",\"memory\": \"2Gi\"}",
"usedResource": "{\"cpu\": \"2\",\"memory\": \"2Gi\"}",
"queueStatus": "RUNNING",
"creator": "237109",
"allowActions": [
{
"actionArn": "acs:emr::workspaceId:action/create_queue",
"actionName": "view",
"displayName": "文件目录遍历、文件浏览",
"description": "Directory traversal and file browsing",
"dependencies": [
"view"
]
}
],
"environments": [
"production"
],
"paymentType": "PayAsYouGo",
"createTime": 1684115879955,
"preheat": false,
"queueCategory": "CPU",
"gpuSpec": [
"ecs.gn7i-c8g1.2xlarge"
],
"gpuMachineNum": 0,
"instanceId": ""
}
],
"requestId": "DD6B1B2A-5837-5237-ABE4-FF0C8944****",
"nextToken": "1",
"maxResults": 20,
"totalCount": 200
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.