All Products
Search
Document Center

E-MapReduce:ListWorkspaceQueues

Last Updated:Jul 15, 2026

Queries the list of queues in a workspace.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

emr-serverless-spark:ListWorkspaceQueues

none

*All Resource

*

None None

Request syntax

GET /api/v1/workspaces/{workspaceId}/queues HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

workspaceId

string

No

The workspace ID.

w-26ca1703f6d7****

Request parameters

Parameter

Type

Required

Description

Example

environment

string

No

The environment type.

Valid values:

  • dev :

    dev

  • production :

    production

production

regionId

string

No

The region ID.

cn-hangzhou

Response elements

Element

Type

Description

Example

object

The response parameters.

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: single task type

  • instanceChildren: parent task type

instance

properties

string

The queue label.

dev_queue

queueScope

string

The queue scope.

{"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 actions on the queue.

object

The allowed action on 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.

Directory traversal and file browsing

dependencies

array

The list of action dependencies.

["view"]

string

The action dependency.

view

environments

array

The list of queue environment types.

string

The queue environment type.

production

paymentType

string

The billing method. Valid values:

  • PayAsYouGo: pay-as-you-go

  • Pre: subscription

PayAsYouGo

createTime

integer

The time when the workspace was created.

1684115879955

preheat

boolean

queueCategory

string

CPU

gpuSpec

array

string

ecs.gn7i-c8g1.2xlarge

gpuMachineNum

integer

instanceId

string

requestId

string

The request ID.

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

nextToken

string

The token for the next page.

1

maxResults

integer

The maximum number of records returned at a time.

20

totalCount

integer

The total number of records.

200

Examples

Success response

JSON format

{
  "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
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.