BootstrapBrokers
A list of brokers that a client application can use to bootstrap.
URI
/v1/clusters/
clusterArn
/bootstrap-brokers
HTTP methods
GET
Operation ID: GetBootstrapBrokers
A list of brokers that a client can use to bootstrap. This
list doesn't necessarily include all of the brokers in the cluster. The following Python 3.6 example shows how you can use the Amazon Resource Name (ARN) of a cluster to get its bootstrap brokers. If you don't know the ARN of your cluster, you can use
the ListClusters
operation to get the ARNs of all the clusters in this account and Region.
import boto3 client = boto3.client('kafka') response = client.get_bootstrap_brokers( ClusterArn='arn:aws:kafka:us-east-1:0123456789019:cluster/SalesCluster/abcd1234-abcd-cafe-abab-9876543210ab-4', ) print(response['BootstrapBrokerString'])
Name | Type | Required | Description |
---|---|---|---|
clusterArn | String | True | The Amazon Resource Name (ARN) that uniquely identifies the cluster. |
Status code | Response model | Description |
---|---|---|
200 |
GetBootstrapBrokersResponse | 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
{ "bootstrapBrokerString": "string", "bootstrapBrokerStringPublicSaslIam": "string", "bootstrapBrokerStringPublicSaslScram": "string", "bootstrapBrokerStringPublicTls": "string", "bootstrapBrokerStringSaslIam": "string", "bootstrapBrokerStringSaslScram": "string", "bootstrapBrokerStringTls": "string", "bootstrapBrokerStringVpcConnectivitySaslIam": "string", "bootstrapBrokerStringVpcConnectivitySaslScram": "string", "bootstrapBrokerStringVpcConnectivityTls": "string" }
{ "invalidParameter": "string", "message": "string" }
Properties
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. |
GetBootstrapBrokersResponse
Returns a string containing one or more hostname:port pairs.
Property | Type | Required | Description |
---|---|---|---|
bootstrapBrokerString | string | False | A string containing one or more hostname:port pairs. |
bootstrapBrokerStringPublicSaslIam | string | False | A string that is one or more pairs of DNS names (or IP addresses) and SASL IAM ports for public access. |
bootstrapBrokerStringPublicSaslScram | string | False | A string that is one or more pairs of DNS names (or IP addresses) and SASL IAM ports for public access. |
bootstrapBrokerStringPublicTls | string | False | A string that is one or more pairs of DNS names (or IP addresses) and SASL IAM ports for public access. |
bootstrapBrokerStringSaslIam | string | False | A string containing one or more dns name (or IP) and SASL IAM port pairs. |
bootstrapBrokerStringSaslScram | string | False | A string containing one or more dns name (or IP) and SASL SCRAM port pairs. |
bootstrapBrokerStringTls | string | False | A string containing one or more DNS names (or IP) and TLS port pairs. The following is an example.
|
bootstrapBrokerStringVpcConnectivitySaslIam | string | False | A string containing one or more dns name (or IP) and SASL IAM port pairs for VPC connectivity. |
bootstrapBrokerStringVpcConnectivitySaslScram | string | False | A string containing one or more dns name (or IP) and SASL SCRAM port pairs for VPC connectivity. |
bootstrapBrokerStringVpcConnectivityTls | string | False | A string containing one or more dns name (or IP) and Tls port pairs for VPC connectivity. |
See also
For more information about using this API in one of the language-specific AWS SDKs and references, see the following: