Queries clusters that are registered in DataWorks. E-MapReduce (EMR) clusters and Cloudera's Distribution Including Apache Hadoop (CDH) clusters are supported.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| ClusterType | string | Yes | The type of the cluster. Valid values:
| EMR |
| PageNumber | integer | No | The page number. Pages start from page 1. | 1 |
| PageSize | integer | No | The number of entries per page. Default value: 10. Maximum value: 100. | 10 |
Response parameters
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.
