You can call this operation to modify the settings of a cluster associated with a project.

Debugging

Alibaba Cloud provides OpenAPI Explorer to simplify API usage. You can use OpenAPI Explorer to search for APIs, call APIs, and dynamically generate SDK example code.

Request parameters

Parameter Type Required Example Description
Action String Yes ModifyFlowProjectClusterSetting

The operation that you want to perform. Set this parameter to ModifyFlowProjectClusterSetting.

ClusterId String Yes C-FDB726F71863****

The ID of the cluster.

ProjectId String Yes FP-179332E88F52****

The ID of the project.

RegionId String Yes cn-hangzhou

The ID of the region.

DefaultQueue String No default

The default queue to which the request is submitted.

DefaultUser String No hadoop

The default user who submits the request.

HostList.N RepeatList No emr-header-1

The whitelist of hosts from which the request can be submitted.

QueueList.N RepeatList No queue1

The whitelist of queues to which the request can be submitted.

UserList.N RepeatList No user1

The whitelist of users who can submit the request.

Response parameters

Parameter Type Example Description
Data Boolean true

The modification result. The value true indicates that the modification was successful, and false indicates that the modification failed.

RequestId String 5ECD6EA1-838E-4BDF-96C8-AEAA40F04F48

The ID of the request.

Examples

Sample request


http(s)://[Endpoint]/? Action=ModifyFlowProjectClusterSetting
&ClusterId=C-FDB726F71863****
&ProjectId=FP-179332E88F52****
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success response

XML format

<ModifyFlowProjectClusterSettingResponse>
  <code>200</code>
	  <data>
		    <RequestId>5ECD6EA1-838E-4BDF-96C8-AEAA40F04F48</RequestId>
		    <Data>true</Data>
	  </data>
	  <requestId>5ECD6EA1-838E-4BDF-96C8-AEAA40F04F48</requestId>
	  <successResponse>true</successResponse>
</ModifyFlowProjectClusterSettingResponse>

JSON format

{
	"successResponse":true,
	"requestId":"5ECD6EA1-838E-4BDF-96C8-AEAA40F04F48",
	"data":{
		"Data":true,
		"RequestId":"5ECD6EA1-838E-4BDF-96C8-AEAA40F04F48"
	},
	"code":"200"
}

Error codes

For more information about error codes, see API Error Center.