Brokers
The broker nodes in the cluster.
URI
/v1/clusters/
clusterArn
/nodes
HTTP methods
GET
Operation ID: ListNodes
Returns a list of the broker nodes in the cluster. The following Python 3.6 example first lists one node of a cluster. Because the cluster has more nodes, the response contains a token that the script then uses to list the remaining nodes.
import boto3 client = boto3.client('kafka') list_nodes_response = client.list_nodes( ClusterArn='arn:aws:kafka:us-east-1:0123456789019:cluster/SalesCluster/abcd1234-abcd-cafe-abab-9876543210ab-4', MaxResults=1 ) print('\n') print('Here is the first node in the list:') print('\n') print(list_nodes_response['NodeInfoList']) next_token = list_nodes_response['NextToken'] list_nodes_response = client.list_nodes( ClusterArn='arn:aws:kafka:us-east-1:0123456789019:cluster/SalesCluster/abcd1234-abcd-cafe-abab-9876543210ab-4', NextToken=next_token ) print('\n') print('Here are the remaining nodes in the list:') print('\n') print(list_nodes_response['NodeInfoList'])
Name | Type | Required | Description |
---|---|---|---|
clusterArn | String | True | The Amazon Resource Name (ARN) that uniquely identifies the cluster. |
Name | Type | Required | Description |
---|---|---|---|
nextToken | String | False | The paginated results marker. When the result of the operation is truncated, the call returns |
maxResults | String | False | The maximum number of results to return in the response (default maximum 100 results per API call). If there are more results, the response includes a |
Status code | Response model | Description |
---|---|---|
200 |
ListNodesResponse | Successful response. |
400 | Error | The request isn't valid because the input is incorrect. Correct your input and then submit it again. |
401 | Error | The request is not authorized. The provided credentials couldn't be validated. |
403 | Error | Access forbidden. Check your credentials and then retry your request. |
404 | Error | The resource could not be found due to incorrect input. Correct the input, then retry the request. |
429 | Error | 429 response |
500 | Error | There was an unexpected internal server error. Retrying your request might resolve the issue. |
503 | Error | 503 response |
OPTIONS
Enable CORS by returning the correct headers.
Name | Type | Required | Description |
---|---|---|---|
clusterArn | String | True | The Amazon Resource Name (ARN) that uniquely identifies the cluster. |
Status code | Response model | Description |
---|---|---|
200 | None | Default response for CORS method |
Schemas
Response bodies
{ "nextToken": "string", "nodeInfoList": [ { "addedToClusterTime": "string", "brokerNodeInfo": { "attachedENIId": "string", "brokerId": number, "clientSubnet": "string", "clientVpcIpAddress": "string", "currentBrokerSoftwareInfo": { "configurationArn": "string", "configurationRevision": integer, "kafkaVersion": "string" }, "endpoints": [ "string" ] }, "controllerNodeInfo": { "endpoints": [ "string" ] }, "instanceType": "string", "nodeARN": "string", "nodeType": enum, "zookeeperNodeInfo": { "attachedENIId": "string", "clientVpcIpAddress": "string", "endpoints": [ "string" ], "zookeeperId": number, "zookeeperVersion": "string" } } ] }
{ "invalidParameter": "string", "message": "string" }
Properties
BrokerNodeInfo
BrokerNodeInfo
Property | Type | Required | Description |
---|---|---|---|
attachedENIId | string | False | The attached elastic network interface of the broker. |
brokerId | number | False | The ID of the broker. |
clientSubnet | string | False | The client subnet to which this broker node belongs. |
clientVpcIpAddress | string | False | The virtual private cloud (VPC) of the client. |
currentBrokerSoftwareInfo | False | Information about the version of software currently deployed on the brokers in the cluster. | |
endpoints | Array of type string | False | Endpoints for accessing the broker. |
BrokerSoftwareInfo
Information about the current software installed on the cluster.
Property | Type | Required | Description |
---|---|---|---|
configurationArn | string | False | The Amazon Resource Name (ARN) of the configuration used for the cluster. This field isn't visible in this preview release. |
configurationRevision | integer Format: int64 | False | The revision of the configuration to use. This field isn't visible in this preview release. |
kafkaVersion | string | False | The version of Apache Kafka. You can use Amazon MSK to create clusters that use Apache Kafka versions 1.1.1 and 2.2.1. |
ControllerNodeInfo
Controller Node Information.
Property | Type | Required | Description |
---|---|---|---|
endpoints | Array of type string | False | Endpoints for accessing the controller. |
Error
Returns information about an error.
Property | Type | Required | Description |
---|---|---|---|
invalidParameter | string | False | The parameter that caused the error. |
message | string | False | The description of the error. |
ListNodesResponse
Information about nodes in the cluster.
Property | Type | Required | Description |
---|---|---|---|
nextToken | string | False | The paginated results marker. When the result of a |
nodeInfoList | Array of type NodeInfo | False | List containing a |
NodeInfo
The node information object.
Property | Type | Required | Description |
---|---|---|---|
addedToClusterTime | string | False | The start time. |
brokerNodeInfo | False | The broker node info. | |
controllerNodeInfo | False | The controller node information. | |
instanceType | string | False | The instance type. |
nodeARN | string | False | The Amazon Resource Name (ARN) of the node. |
nodeType | False | The node type. | |
zookeeperNodeInfo | False | The ZookeeperNodeInfo. |
NodeType
The broker or Apache ZooKeeper node.
BROKER
ZookeeperNodeInfo
Apache ZooKeeper node information.
Property | Type | Required | Description |
---|---|---|---|
attachedENIId | string | False | The attached elastic network interface of the broker. |
clientVpcIpAddress | string | False | The virtual private cloud (VPC) IP address of the client. |
endpoints | Array of type string | False | Endpoints for accessing the Apache ZooKeeper nodes. |
zookeeperId | number | False | The role-specific ID for Apache ZooKeeper. |
zookeeperVersion | string | False | The version of Apache ZooKeeper. |
See also
For more information about using this API in one of the language-specific AWS SDKs and references, see the following: