You can call this operation to view the cluster settings of a project.

Request parameters

Name Type Required Example Description
ProjectId String Yes FP-ED2F3E844FE383AA The ID of the project.
RegionId String Yes cn-hangzhou The ID of the region.
PageNumber Integer No 1 The page number to request.
PageSize Integer No 20 The number of records to show on each page.

Response parameters

Name Type Example Description
RequestId String 93F6F3CF-B2AE-411A-948F-0F7293058CF5 The ID of the request.
PageNumber Integer 1 The page number to request.
PageSize Integer 20 The number of records to show on each page.
Total Integer 1 The total number of records.
ClusterSettings The settings of the cluster.
GmtCreate Long 1540796236000 The creation time.
GmtModified Long 1540796236000 The modification time.
ProjectId String FP-3535FE0BE5224A47 The ID of the project.
ClusterId String C-DCEE11B49C8F42B4 The ID of the cluster.
ClusterName String my_cluster The name of the cluster.
DefaultUser String hadoop The default user to submit jobs.
DefaultQueue String default The default queue for job submission.
UserList String "User": ["hadoop"] The whitelist of Linux users for job submission.
QueueList String "Queue": ["default"] The whitelist of queues for job submission.
HostList String "Host":["emr-header-1.cluster-500159692" The whitelist of hosts for job submission.

Examples

  • Sample requests
    
    /? Action=ListFlowProjectClusterSetting
    &ProjectId=FP-ED2F3E844FE383AA
    &RegionId=cn-hangzhou 
    &PageNumber=1 
    &PageSize=20 
    &<Common request parameters>
  • Successful response examples
    JSON format
    {
    	"ClusterSettings":{
    		"ClusterSetting":[{
    			"ClusterId":"C-F32FB31D82954C64",
    			"ClusterName":"mingbo-v199v1",
    			"DefaultUser":"hadoop",
    			"GmtCreate":1540811745000,
    			"GmtModified":1540811745000,
    			"HostList":{
    				"Host":[]
    			},
    			"ProjectId":"FP-F958DB9A2BAE31AB",
    			"QueueList":{
    				"Queue":[]
    			},
    			"UserList":{
    				"User":[]
    			}
    		}]
    	},
    	"PageNumber":1,
    	"PageSize":10,
    	"RequestId":"3DB7F949-B592-49AF-9ED9-9D5CF8DA5AFE",
    	"Total":1
    }
  • Error response examples
    JSON format
    {
    	"code":"FLOW_API_FAILED",
    	"message":"Invalid Param[pageSize should less than 500]",
    	"requestId":"3793FD17-FD93-4850-90DD-E649B76267EE",
    	"successResponse":false
    }

Error codes

View error codes.