All Products
Search
Document Center

:ListClusters

Last Updated:Jan 08, 2026

Queries clusters that are registered in DataWorks. E-MapReduce (EMR) clusters and Cloudera's Distribution Including Apache Hadoop (CDH) clusters are supported.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ClusterTypestringYes

The type of the cluster. Valid values:

  • CDH: CDH cluster
  • EMR: EMR cluster
EMR
PageNumberintegerNo

The page number. Pages start from page 1.

1
PageSizeintegerNo

The number of entries per page. Default value: 10. Maximum value: 100.

10

Response parameters

ParameterTypeDescriptionExample
object

The returned data.

Dataobject

The returns data.

PageNumberinteger

The page number.

1
PageSizeinteger

The number of entries per page.

10
TotalCountinteger

The total number of entries returned.

100
Clustersarray

List of cluster information.

ClustersCluster

Cluster information

RequestIdstring

The request ID. You can use the request ID to query logs and troubleshoot issues.

0000-ABCD-E****
Successboolean

Indicates whether the request was successful. Valid values:

  • true
  • false
true
ErrorCodestring

The error code.

101011005
ErrorMessagestring

The error message.

Invalid.Cluster.ClusterNotFound
HttpStatusCodeinteger

The HTTP status code.

200

Examples

Sample success responses

JSONformat

{
  "Data": {
    "PageNumber": 1,
    "PageSize": 10,
    "TotalCount": 100,
    "Clusters": [
      {
        "ClusterId": 1234,
        "ClusterBizId": "c-d8a7523****"
      }
    ]
  },
  "RequestId": "0000-ABCD-E****",
  "Success": true,
  "ErrorCode": 101011005,
  "ErrorMessage": "Invalid.Cluster.ClusterNotFound",
  "HttpStatusCode": 200
}

Error codes

For a list of error codes, visit the Service error codes.