curl--request GET \--url http://localhost:3000/api/v1/peers/info/my_postgres_peer \--header'Authorization: Basic OmJsYWNrU3dhbjEyMw=='\
{"peer":{"name":"my_postgres_peer","type":"POSTGRES","postgresConfig":{"host":"my_postgres_peer.rpolkfgn.us-east-1.rds.amazonaws.com","port":5432,"user":"postgres","password":"********","database":"postgres"}},"version":"PostgreSQL 16.3 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 7.3.1 20180712 (Red Hat 7.3.1-12), 64-bit"}
GET /api/v1/peers/info/{peer_name}
This endpoint is used to get information about a peer.
A peer represents a data store. Sensitive information such as passwords are not returned.
This is the version of the peer. Currently returned for Postgres and ClickHouse peers.
curl--request GET \--url http://localhost:3000/api/v1/peers/info/my_postgres_peer \--header'Authorization: Basic OmJsYWNrU3dhbjEyMw=='\
{"peer":{"name":"my_postgres_peer","type":"POSTGRES","postgresConfig":{"host":"my_postgres_peer.rpolkfgn.us-east-1.rds.amazonaws.com","port":5432,"user":"postgres","password":"********","database":"postgres"}},"version":"PostgreSQL 16.3 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 7.3.1 20180712 (Red Hat 7.3.1-12), 64-bit"}
curl--request GET \--url http://localhost:3000/api/v1/peers/info/my_postgres_peer \--header'Authorization: Basic OmJsYWNrU3dhbjEyMw=='\
{"peer":{"name":"my_postgres_peer","type":"POSTGRES","postgresConfig":{"host":"my_postgres_peer.rpolkfgn.us-east-1.rds.amazonaws.com","port":5432,"user":"postgres","password":"********","database":"postgres"}},"version":"PostgreSQL 16.3 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 7.3.1 20180712 (Red Hat 7.3.1-12), 64-bit"}