You can call the ListFlowClusterAllHosts operation to query the list of hosts that can be set to the whitelist in the project settings for a given cluster. Currently, Master and Gateway nodes are supported.

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 ListFlowClusterAllHosts

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 ListFlowClusterAllHosts.

ClusterId String Yes C-F32FB31D8295****

The ID of the cluster. You can call ListClusters You can call this operation to view the ID of a cluster.

ProjectId String Yes FP-3535FE0BE522****

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

RegionId String Yes cn-hangzhou

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

Response parameters

Parameter Type Example Description
HostList Array of Host

The list of hosts that can be added to the whitelist in the specified cluster.

Host
Cpu Integer 4

The number of vCPUs of the host.

HostId String 119555

The ID of the host.

HostInstanceId String i-bp1agi4417dx08sig82j

The ID of the ECS instance.

HostName String emr-header-1.cluster-500159692

The name of the host.

InstanceType String ecs.n4.xlarge

The type of the instance.

Memory Integer 8

Memory, in GB.

PrivateIp String 127.0.0.1

The internal IP address of the host.

PublicIp String 192.0.0.1

The public IP address of the host.

Role String CORE

The role of the host.

SerialNumber String 6dc097b0-5e92-4e08-a49e-37c26c78cf9f

The serial number of the host.

Status String STARTING

The status of the host.

Type String VM

The type of the host.

RequestId String 2E429517-6A50-4082-9A30-47755CE9F9A5

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=ListFlowClusterAllHosts
&ClusterId=C-F32FB31D8295****
&ProjectId=FP-3535FE0BE522****
&RegionId=cn-hangzhou
&<common request parameters>

Sample success responses

XML format

<RequestId>2E429517-6A50-4082-9A30-47755CE9F9A5</RequestId>
<HostList>
    <Host>
        <Status>STARTING</Status>
        <Role>MASTER</Role>
        <SerialNumber>738d0af9-6ca3-46dd-a973-bab70da4bf74</SerialNumber>
        <PublicIp>47.**.**.**</PublicIp>
        <PrivateIp>192.**.**.**</PrivateIp>
        <Memory>8</Memory>
        <Cpu>4</Cpu>
        <HostInstanceId>i-bp1agi4417dx08si****</HostInstanceId>
        <HostId>119555</HostId>
        <HostName>emr-header-1.cluster-50015****</HostName>
    </Host>
</HostList>

JSON Syntax

{
    "RequestId": "2E429517-6A50-4082-9A30-47755CE9F9A5",
    "HostList": {
        "Host": [
            {
                "Status": "STARTING",
                "Role": "MASTER",
                "SerialNumber": "738d0af9-6ca3-46dd-a973-bab70da4bf74",
                "PublicIp": "47.**.**.**",
                "PrivateIp": "192.**.**.**",
                "Memory": 8,
                "Cpu": 4,
                "HostInstanceId": "i-bp1agi4417dx08si****",
                "HostId": "119555",
                "HostName": "emr-header-1.cluster-50015****"
            }
        ]
    }
}

Error codes

The port number of a client that accesses a Error CenterFor more information, see error codes.