avn service connection-info
#
Here you’ll find the full list of commands for avn service connection-info
.
Retrieve connection information#
avn service connection-info kafkacat
#
Retrieves the kcat
command necessary to connect to an Aiven for Apache Kafka® service and produce/consume messages to topics, check out more in the dedicated article.
Parameter |
Information |
---|---|
|
The name of the service |
|
The type of route to use to connect to the service. Possible values are |
|
The ID of the privatelink to use |
|
The Aiven for Apache Kafka® authentication method. Possible values are |
|
The username used to connect if using |
|
The path to the CA certificate file |
|
The path to the client certificate file |
|
The path to the client key file |
|
Save the certificate and key files if not existing |
|
Save (or overwrite if already existing) the certificate and key files |
Example: Retrieve the kcat
command to connect to an Aiven for Apache Kafka service named demo-kafka
with SSL authentication (certificate
), download the certificates necessary for the connection:
avn service connection-info kafkacat demo-kafka --write
An example of service connection-info kafkacat
output:
kafkacat -b demo-kafka-dev-advocates.aivencloud.com:13041 -X security.protocol=SSL -X ssl.ca.location=ca.pem -X ssl.key.location=service.key -X ssl.certificate.location=service.crt
Warning
The command output uses the old kafkacat
naming. To be able to execute kcat
commands, replace kafkacat
with kcat
.
avn service connection-info pg string
#
Retrieves the connection parameters for a certain Aiven for PostgreSQL® service.
Parameter |
Information |
---|---|
|
The name of the service |
|
The type of route to use to connect to the service. Possible values are |
|
The database connection usage. Possible values are |
|
The ID of the privatelink to use |
|
The username used to connect if using |
|
The database name to use to connect |
|
The |
Example: Retrieve the connection parameters for an Aiven for PostgreSQL® service named demo-pg
:
avn service connection-info pg string demo-pg
An example of avn service connection-info pg string
output:
host='demo-pg-dev-project.aivencloud.com' port='13039' user=avnadmin dbname='defaultdb'
avn service connection-info pg uri
#
Retrieves the connection URI for an Aiven for PostgreSQL® service.
Parameter |
Information |
---|---|
|
The name of the service |
|
The type of route to use to connect to the service. Possible values are |
|
The database connection usage. Possible values are |
|
The ID of the privatelink to use |
|
The username used to connect if using |
|
The database name to use to connect |
|
The |
Example: Retrieve the connection URI for an Aiven for PostgreSQL® service named demo-pg
:
avn service connection-info pg uri demo-pg
An example of avn service connection-info pg uri
output:
postgres://avnadmin:XXXXXXXXXX@demo-pg-dev-project.aivencloud.com:13039/defaultdb?sslmode=require
avn service connection-info psql
#
Retrieves the psql
command needed to connect to an Aiven for PostgreSQL® service.
Parameter |
Information |
---|---|
|
The name of the service |
|
The type of route to use to connect to the service. Possible values are |
|
The database connection usage. Possible values are |
|
The Id of the privatelink to use |
|
The username used to connect if using |
|
The database name to use to connect |
|
The |
Example: Retrieve the psql
command needed to connect to an Aiven for PostgreSQL® service named demo-pg
:
avn service connection-info psql demo-pg
An example of avn service connection-info psql
output:
psql postgres://avnadmin:XXXXXXXXXXXX@demo-pg-dev-advocates.aivencloud.com:13039/defaultdb?sslmode=require
avn service connection-info redis uri
#
Retrieves the connection URI needed to connect to an Aiven for Redis®* service.
Parameter |
Information |
---|---|
|
The name of the service |
|
The type of route to use to connect to the service. Possible values are |
|
The database connection usage. Possible values are |
|
The ID of the privatelink to use |
|
The username used to connect if using |
|
The database name to use to connect |
Example: Retrieve the connection URI needed to connect to an Aiven for Redis® service named demo-redis
:
avn service connection-info redis uri demo-redis
An example of avn service connection-info redis uri
output:
rediss://default:XXXXXXXXXX@demo-redis-dev-project.aivencloud.com:13040