All Products
Search
Document Center

E-MapReduce:ListWorkspaceQueues

Last Updated:Jun 11, 2026

Mencantumkan antrian di ruang kerja.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

Action

Access level

Resource type

Condition key

Dependent action

emr-serverless-spark:ListWorkspaceQueues

none

*全部资源

*

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:

  • dev :

    dev.

  • production :

    production.

production

regionId

string

No

ID wilayah.

cn-hangzhou

Elemen respons

Element

Type

Description

Example

object

The returned data.

queues

array<object>

The list of queues.

array<object>

The queue details.

regionId

string

The region ID.

cn-hangzhou

queueName

string

The queue name.

dev_queue

workspaceId

string

The workspace ID.

w-1234abcd

queueType

string

The queue type. Valid values:

  • instance: A queue for a single task.

  • instanceChildren: A queue for a parent task.

instance

properties

string

The queue label.

dev_queue

queueScope

string

The queue architecture.

{"arch": "x86"}

maxResource

string

The maximum resource capacity of the queue.

{"cpu": "2","memory": "2Gi"}

minResource

string

The minimum resource capacity of the queue.

{"cpu": "2","memory": "2Gi"}

usedResource

string

The used resource capacity of the queue.

{"cpu": "2","memory": "2Gi"}

queueStatus

string

The queue status.

RUNNING

creator

string

The UID of the user who created the queue.

237109

allowActions

array<object>

The list of allowed operations for the queue.

object

An allowed operation for the queue.

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.

文件目录遍历、文件浏览

dependencies

array

The list of action dependencies.

["view"]

string

The action dependency.

view

environments

array

The list of environment types for the queue.

string

The environment type of the queue.

production

paymentType

string

The billing method. Valid values:

  • PayAsYouGo: pay-as-you-go

  • Pre: subscription

PayAsYouGo

createTime

integer

The creation time of the workspace.

1684115879955

preheat

boolean

queueCategory

string

CPU

gpuSpec

array

string

ecs.gn7i-c8g1.2xlarge

requestId

string

The request ID.

DD6B1B2A-5837-5237-ABE4-FF0C8944****

nextToken

string

The token for the next page of results.

1

maxResults

integer

The maximum number of records to return in a single request.

20

totalCount

integer

The total number of records.

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": "文件目录遍历、文件浏览",
          "dependencies": [
            "view"
          ]
        }
      ],
      "environments": [
        "production"
      ],
      "paymentType": "PayAsYouGo",
      "createTime": 1684115879955,
      "preheat": false,
      "queueCategory": "CPU",
      "gpuSpec": [
        "ecs.gn7i-c8g1.2xlarge"
      ]
    }
  ],
  "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.