You can call this operation to create cluster settings for a project.

Request parameters

Name Type Required Example Description
ClusterId String Yes C-DCEE11B49C8F42B4 The ID of the cluster.
ProjectId String Yes FP-ED2F3E844FE383AA The ID of the project.
RegionId String Yes cn-hangzhou The ID of the region.
DefaultQueue String No default The default queue for job submission. Default value: default.
DefaultUser String No hadoop The default Linux user to submit jobs. Default value: hadoop.
HostList.N RepeatList No emr-header-1.cluster-12345 The whitelist of hosts for job submission. Only gateways and master nodes are supported.
QueueList.N RepeatList No queue1 The whitelist of queues.
UserList.N RepeatList No hadoop The whitelist of Linux users for job submission.

Response parameters

Name Type Example Description
RequestId String 0AD9FF20-F585-4E0A-870D-B8A8F884CCE6 The ID of the request.
Data Boolean true Indicates whether the cluster settings are created.

Examples

  • Sample requests
    /? Action=CreateFlowProjectClusterSetting
    &ClusterId=C-DCEE11B49C8F42B4
    &ProjectId=FP-ED2F3E844FE383AA
    &RegionId=cn-hangzhou 
    &DefaultQueue=default
    &DefaultUser=hadoop
    &HostList. 1=emr-header-1.cluster-12345
    &QueueList. 1=queue1
    &UserList. 1=hadoop
    &<Common request parameters>
  • Successful response examples
    JSON format
    {
    	"Data":true,
    	"RequestId":"ECC2D0D1-B6D5-468D-B698-30E8805EB574"
    }
  • Error response examples
    JSON format
    {
    	"code":"FLOW_API_FAILED",
    	"message":"Cluster host does not exit [[emr-header-1.cluster-12345]",
    	"requestId":"2FEF3292-084E-45D8-8D8A-C9B8867B3F37",
    	"successResponse":false
    }

Error codes

View error codes.