All Products
Search
Document Center

E-MapReduce:ListRayCluster

Last Updated:Apr 10, 2026

Lists Ray clusters.

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

ActionAccess levelResource typeCondition keyDependent action
emr-serverless-spark:ListRayClusternoneAll Resources (*)NoneNone

To call this API, your RAM user or RAM role must be granted the emr-serverless-spark:ListRayCluster action in a Resource Access Management (RAM) policy. For APIs without resource-level permissions, use an asterisk (*) in the Resource element of the policy. For information about common condition keys, see Common condition keys.

Request syntax

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

Path parameters

ParameterTypeRequiredDescriptionExample
workspaceIdstringNoThe workspace ID.w-d2d82aa09155

Request parameters

ParameterTypeRequiredDescriptionExample
pageSizeintegerNoThe number of entries per page. Default value: 20. Valid values: 1 to 100.20
pageNumintegerNoThe page number.1

Response elements

ElementTypeDescriptionExample
requestIdstringThe request ID.DD6B1B2A-5837-5237-ABE4-FF0C8944
rayClustersarray\<object\>The Ray clusters.
rayClusters[].clusterIdstringThe cluster ID.ray-uiulpgow9xljimm1
rayClusters[].namestringThe name of the Ray cluster.testRayCluster
rayClusters[].displayReleaseVersionstringThe Ray engine version.ray-1.0.0 (Ray 2.47.1, Python 3.12)
rayClusters[].descriptionstringThe description.Ray Cluster for dev.
rayClusters[].networkServiceNamestringThe name of the network connectivity service.vpc
rayClusters[].statestringThe cluster state. Valid values: Starting, Running, Stopping, Stopped, Error.Running
rayClusters[].createTimeintegerThe time when the cluster was created.1723722279800
rayClusters[].modifiedTimeintegerThe time when the cluster was last modified.1723722279800
rayClusters[].startTimeintegerThe time when the cluster was started.1723722279800
rayClusters[].creatorstringThe UID of the user who created the cluster.202077646755123991
rayClusters[].creatorNamestringThe nickname of the creator.Alice
rayClusters[].modifierstringThe UID of the user who last updated the cluster.202077646755123991
rayClusters[].modifierNamestringThe nickname of the modifier.Alice
rayClusters[].userIdstringThe ID of the Alibaba Cloud account.1234567890
rayClusters[].instanceIdstringThe ID of the Ray cluster instance.ray-uiulpgow9xljimm1-xxxxxxx
rayClusters[].dashboardUrlstringThe URL of the Ray cluster dashboard.https://emr-spark-ray-gateway-cn-hangzhou.aliyuncs.com?token=xxxxxxxxx
rayClusters[].grpcEndpointstringThe gRPC endpoint for the internal network. The domain name can also be used to submit Ray jobs.ray://emr-spark-ray-gateway-cn-hanghzou-internal.emr.aliyuncs.com:80
rayClusters[].modifiedbooleanIndicates whether the configuration has been modified.false
rayClusters[].messagestringThe error message.ok
rayClusters[].headSpecobjectThe head node configuration.
rayClusters[].headSpec.queueNamestringThe queue name.root_queue
rayClusters[].headSpec.cpustringThe number of CPU cores.2
rayClusters[].headSpec.memorystringThe memory size. Unit: Gi.8Gi
rayClusters[].headSpec.replicaintegerThe number of head nodes.1
rayClusters[].headSpec.gpuSpecstringThe GPU instance type.ecs.gn6i-c4g1.xlarge
rayClusters[].headSpec.enableAutoScalingbooleanSpecifies whether automatic scaling is enabled for worker nodes.false
rayClusters[].headSpec.idleTimeoutSecondsintegerThe idle timeout period for worker nodes, in seconds.60
rayClusters[].workerSpecarray\<object\>The worker node configurations.
rayClusters[].workerSpec[].groupNamestringThe name of the worker group.Group1
rayClusters[].workerSpec[].workerTypestringThe worker type.CPU
rayClusters[].workerSpec[].replicaintegerThe number of worker nodes.2
rayClusters[].workerSpec[].queueNamestringThe queue name.root_queue
rayClusters[].workerSpec[].cpustringThe number of CPU cores.2
rayClusters[].workerSpec[].memorystringThe memory size. Unit: Gi.8Gi
rayClusters[].workerSpec[].gpuSpecstringThe GPU instance type.ecs.gn6i-c4g1.xlarge
rayClusters[].workerSpec[].minReplicaintegerThe minimum number of worker nodes when automatic scaling is enabled.1
rayClusters[].workerSpec[].maxReplicaintegerThe maximum number of worker nodes when automatic scaling is enabled.10

State values

ValueDescription
StartingThe cluster is starting.
RunningThe cluster is running.
StoppingThe cluster is stopping.
StoppedThe cluster is stopped.
ErrorThe cluster has failed.

Examples

Success response

{
  "requestId": "DD6B1B2A-5837-5237-ABE4-FF0C8944",
  "rayClusters": [
    {
      "clusterId": "ray-uiulpgow9xljimm1",
      "name": "testRayCluster",
      "displayReleaseVersion": "ray-1.0.0 (Ray 2.47.1, Python 3.12)",
      "description": "Ray Cluster for dev.",
      "networkServiceName": "vpc",
      "headSpec": {
        "queueName": "root_queue",
        "cpu": "2",
        "memory": "8Gi",
        "enableAutoScaling": false,
        "idleTimeoutSeconds": 60,
        "replica": 1,
        "gpuSpec": "ecs.gn6i-c4g1.xlarge"
      },
      "workerSpec": [
        {
          "groupName": "Group1",
          "workerType": "CPU",
          "replica": 2,
          "queueName": "root_queue",
          "cpu": "2",
          "memory": "8Gi",
          "minReplica": 1,
          "maxReplica": 10,
          "gpuSpec": "ecs.gn6i-c4g1.xlarge"
        }
      ],
      "state": "Running",
      "createTime": 1723722279800,
      "modifiedTime": 1723722279800,
      "creator": "202077646755123991",
      "creatorName": "Alice",
      "modifier": "202077646755123991",
      "modifierName": "Alice",
      "userId": "1234567890",
      "dashboardUrl": "https://emr-spark-ray-gateway-cn-hangzhou.aliyuncs.com?token=xxxxxxxxx",
      "modified": false,
      "message": "ok",
      "instanceId": "ray-uiulpgow9xljimm1-xxxxxxx",
      "startTime": 1723722279800,
      "grpcEndpoint": "ray://emr-spark-ray-gateway-cn-hanghzou-internal.emr.aliyuncs.com:80"
    }
  ]
}

Error codes

See Error codes for a complete list.

Release notes

See Release notes for a complete list.