You can call this operation to query cluster settings of 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 ListFlowProjectClusterSetting

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

ProjectId String Yes FP-ED2F3E844FE383AA

The ID of the project.

RegionId String Yes cn-hangzhou

The ID of the region where your project resides.

PageNumber Integer No 1

The number of the page to return.

PageSize Integer No 20

The number of entries to return on each page.

Response parameters

Parameter Type Example Description
ClusterSettings

The cluster settings of the project.

ClusterSetting

The setting of the cluster.

ClusterId String C-DCEE11B49C8F42B4

The ID of the cluster.

ClusterName String my_cluster

The name of the cluster.

DefaultQueue String default

The default queue to which jobs are submitted.

DefaultUser String hadoop

The default user who submits jobs.

GmtCreate Long 1541561123000

The creation time of the cluster.

GmtModified Long 1541561123000

The modification time of the cluster.

HostList "Host":["emr-header-1.cluster-500159692"

The whitelist of hosts that can submit jobs.

Host

The whitelisted host that can submit jobs.

ProjectId String FP-3535FE0BE5224A47

The ID of the project.

QueueList "Queue": ["default"]

The whitelist of YARN queues to which jobs can be submitted.

Queue

The whitelisted YARN queue to which jobs can be submitted.

UserList "User": ["hadoop"]

The whitelist of Linux users who can submit jobs.

User

The whitelisted Linux user who can submit jobs.

PageNumber Integer 1

The page number of the returned page.

PageSize Integer 20

The number of entries returned per page.

RequestId String 93F6F3CF-B2AE-411A-948F-0F7293058CF5

The ID of the request.

Total Integer 1

The total number of entries returned.

Examples

Sample requests


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

Sample success responses

XML format

<ListFlowProjectClusterSettingResponse>
  <ClusterSettings>
		    <ClusterSetting>
			      <DefaultUser>hadoop</DefaultUser>
			      <GmtCreate>1540811745000</GmtCreate>
			      <ClusterId>C-F32FB31D8295****</ClusterId>
			      <ProjectId>FP-F958DB9A2BAE31AB</ProjectId>
			      <GmtModified>1540811745000</GmtModified>
			      <ClusterName>mingbo-v199v1</ClusterName>
			      <HostList></HostList>
			      <UserList></UserList>
			      <QueueList></QueueList>
		    </ClusterSetting>
	  </ClusterSettings>
	  <PageSize>10</PageSize>
	  <RequestId>3DB7F949-B592-49AF-9ED9-9D5CF8DA5AFE</RequestId>
	  <PageNumber>1</PageNumber>
	  <Total>1</Total>
	
</ListFlowProjectClusterSettingResponse>

JSON format

{
	"PageNumber":1,
	"PageSize":10,
	"RequestId":"3DB7F949-B592-49AF-9ED9-9D5CF8DA5AFE",
	"ClusterSettings":{
		"ClusterSetting":[
			{
				"DefaultUser":"hadoop",
				"UserList":{
					"User":[]
				},
				"ClusterName":"mingbo-v199v1",
				"ClusterId":"C-F32FB31D8295****",
				"QueueList":{
					"Queue":[]
				},
				"GmtCreate":1540811745000,
				"HostList":{
					"Host":[]
				},
				"GmtModified":1540811745000,
				"ProjectId":"FP-F958DB9A2BAE31AB"
			}
		]
	},
	"Total":1
}

Error codes

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