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 DescribeFlowProjectClusterSetting

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

ClusterId String Yes C-DCEE11B49C8F****

The ID of the cluster.

ProjectId String Yes FP-ED2F3E844FE3****

The ID of the project.

RegionId String Yes cn-hangzhou

The ID of the region to which your project belongs.

Response parameters

Parameter Type Example Description
ClusterId String C-DCEE11B49C8F****

The ID of the cluster.

DefaultQueue String default

The default YARN queue to which jobs are submitted.

DefaultUser String hadoop

The default Linux 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 clients that can submit jobs.

Host

A whitelisted client that can submit jobs.

ProjectId String FP-3535FE0BE522****

The ID of the project.

QueueList "Queue": ["default"]

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

Queue

A whitelisted YARN queue to which jobs can be submitted.

RequestId String F2168FB7-8E60-44EE-A946-DA887297****

The ID of the request.

UserList "User": ["hadoop"]

The whitelist of Linux users who can submit jobs.

User

A whitelisted Linux user who can submit jobs.

Examples

Sample requests


http(s)://[Endpoint]/? Action=DescribeFlowProjectClusterSetting
&ClusterId=C-DCEE11B49C8F****
&ProjectId=FP-ED2F3E844FE3****
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

<DescribeFlowProjectClusterSettingResponse>
	  <data>
		    <DefaultUser>hadoop</DefaultUser>
		    <GmtCreate>1541561123000</GmtCreate>
		    <RequestId>80F270E8-27BD-4F24-BB2A-CD3FBCC450DA</RequestId>
		    <DefaultQueue>undefined</DefaultQueue>
		    <ClusterId>C-F32FB31D8295****</ClusterId>
		    <ProjectId>FP-3535FE0BE5224A47</ProjectId>
		    <GmtModified>1542948908000</GmtModified>
		    <HostList>
			      <Host>emr-header-1.cluster-500159692</Host>
		    </HostList>
		    <UserList></UserList>
		    <QueueList></QueueList>
	  </data>
	  <requestId>80F270E8-27BD-4F24-BB2A-CD3FBCC450DA</requestId>
</DescribeFlowProjectClusterSettingResponse>

JSON format

{
	"requestId":"80F270E8-27BD-4F24-BB2A-CD3FBCC450DA",
	"data":{
		"DefaultUser":"hadoop",
		"UserList":{
			"User":[]
		},
		"ClusterId":"C-F32FB31D8295****",
		"RequestId":"80F270E8-27BD-4F24-BB2A-CD3FBCC450DA",
		"DefaultQueue":"undefined",
		"QueueList":{
			"Queue":[]
		},
		"GmtCreate":1541561123000,
		"HostList":{
			"Host":[
				"emr-header-1.cluster-500159692"
			]
		},
		"GmtModified":1542948908000,
		"ProjectId":"FP-3535FE0BE5224A47"
	}
}

Error codes

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