You can call this operation to query the clusters available in a project.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ListFlowClusterAll

The operation that you want to perform. Set the value to ListFlowClusterAll.

RegionId String Yes cn-hangzhou

The ID of the region where your project resides.

Response parameters

Parameter Type Example Description
Clusters

The list of clusters available in a project.

ClusterInfo

The information of the cluster.

ChargeType String PostPaid

The billing method of the cluster.

CreateResource String ECM_EMR

The label of the cluster.

CreateTime Long 1542953603000

The creation time of the cluster.

ExpiredTime Long 1542953603000

The expiration time of the cluster.

FailReason

The cause of the cluster failure.

ErrorCode String 123

The error code of the failure.

ErrorMsg String failed

The error message of the failure.

RequestId String 0d18b019-00ab-455f-b60c-2891bf02f538

The ID of the request.

HasUncompletedOrder Boolean false

Indicates whether an uncompleted order exists.

Id String C-2E6ABBD39BD09F97

The ID of the cluster.

Name String my_cluster

The name of the cluster.

OrderList String 1,2

The list of orders.

OrderTaskInfo

The information of the order.

CurrentCount Integer 2

The number of completed orders.

OrderIdList String 1, 2

The list of order IDs.

TargetCount Integer 2

The number of target orders to be completed.

Period Integer 1

The payment cycle of the cluster.

RunningTime Integer 200

The execution time of the cluster. Unit: seconds.

Status String SUCCESS

The status of the cluster.

Type String HADOOP

The type of the cluster.

PageNumber Integer 1

The page number of the returned page.

PageSize Integer 20

The number of entries returned per page.

RequestId String 0d18b019-00ab-455f-b60c-2891bf02f538

The ID of the request.

TotalCount Integer 42

The total number of entries returned.

Examples

Sample requests


http(s)://[Endpoint]/? Action=ListFlowClusterAll
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

<ListFlowClusterAllResponse>
  <TotalCount>2</TotalCount>
	  <PageSize>10</PageSize>
	  <PageNumber>1</PageNumber>
	  <Clusters>
		    <ClusterInfo>
			      <Status>IDLE</Status>
			      <Type>HADOOP</Type>
			      <CreateResource>ECM_EMR</CreateResource>
			      <ChargeType>PostPaid</ChargeType>
			      <OrderTaskInfo></OrderTaskInfo>
			      <CreateTime>1542953603000</CreateTime>
			      <FailReason></FailReason>
			      <Id>C-4042079DFF01A3F5</Id>
			      <HasUncompletedOrder>false</HasUncompletedOrder>
			      <RunningTime>1322</RunningTime>
			      <Name>zx-presto-1</Name>
		    </ClusterInfo>
		    <ClusterInfo>
			      <Status>IDLE</Status>
			      <Type>HADOOP</Type>
			      <CreateResource>ECM_EMR</CreateResource>
			      <ChargeType>PostPaid</ChargeType>
			      <OrderTaskInfo></OrderTaskInfo>
			      <CreateTime>1542950611000</CreateTime>
			      <FailReason></FailReason>
			      <Id>C-3D0B53253595****</Id>
			      <HasUncompletedOrder>false</HasUncompletedOrder>
			      <RunningTime>4314</RunningTime>
			      <Name>zx-presto-213</Name>
		    </ClusterInfo>
	  </Clusters>
</ListFlowClusterAllResponse>

JSON format

{
	"PageNumber":1,
	"TotalCount":2,
	"Clusters":{
		"ClusterInfo":[
			{
				"Name":"zx-presto-1",
				"ChargeType":"PostPaid",
				"FailReason":{},
				"Status":"IDLE",
				"OrderTaskInfo":{},
				"HasUncompletedOrder":false,
				"Type":"HADOOP",
				"CreateTime":1542953603000,
				"CreateResource":"ECM_EMR",
				"RunningTime":1322,
				"Id":"C-4042079DFF01A3F5"
			},
			{
				"Name":"zx-presto-213",
				"ChargeType":"PostPaid",
				"FailReason":{},
				"Status":"IDLE",
				"OrderTaskInfo":{},
				"HasUncompletedOrder":false,
				"Type":"HADOOP",
				"CreateTime":1542950611000,
				"CreateResource":"ECM_EMR",
				"RunningTime":4314,
				"Id":"C-3D0B53253595****"
			}
		]
	},
	"PageSize":10
}

Error codes

For a list of error codes, visit the API Error Center.