You can call the ListFlowProjectClusterSetting operation to query the cluster settings for a project.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. You can use OpenAPI Explorer to search for API operations, call API operations, and dynamically generate SDK sample code.

Request parameters

Parameter Type Required Example Description
Action String Yes ListFlowProjectClusterSetting

The operation that you want to perform. This parameter is required for API requests that you create by piecing together HTTP or HTTPS URLs. Set the value to ListFlowProjectClusterSetting.

ProjectId String Yes FP-ED2F3E844FE3****

The ID of the project. You can call ListFlowProject View the ID of the project.

RegionId String Yes cn-hangzhou

The region ID of the instance. You can call DescribeRegions To view the latest list of Alibaba Cloud regions.

PageNumber Integer No 1

The page number of the returned page.

PageSize Integer No 20

The page number of the returned page.

Response parameters

Parameter Type Example Description
ClusterSettings Array of ClusterSetting

The cluster settings of the project.

ClusterSetting
ClusterId String C-F32FB31D8295****

The ID of the cluster.

ClusterName String mingbo-v199v1

The name of the cluster.

DefaultQueue String default

The default queue to which the request is submitted.

DefaultUser String hadoop

The default user who submits jobs.

GmtCreate Long 1541561123000

The time when the user was added to the project.

GmtModified Long 1541561123000

The modification time of the cluster.

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

The whitelist of clients that can submit jobs.

K8sClusterId String N/A

A reserved parameter.

ProjectId String FP-F958DB9A2BA****

The ID of the project.

QueueList List "Queue": ["default"]

The whitelisted YARN queue to which jobs can be submitted.

UserList List "User": ["hadoop"]

The whitelisted Linux user who can submit jobs.

PageNumber Integer 1

The page number of the returned page.

PageSize Integer 20

The page number of the returned 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-ED2F3E844FE3****
&RegionId=cn-hangzhou
&<common request parameters>

Sample success responses

XML format

<ClusterSettings>
    <ClusterSetting>
        <DefaultUser>hadoop</DefaultUser>
        <GmtCreate>1540811745000</GmtCreate>
        <ClusterId>C-F32FB31D8295****</ClusterId>
        <ProjectId>FP-F958DB9A2BA****</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>

JSON Syntax

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