Get SSH Public Key
Retrieves the Logpresso SSH public key. You can register Logpresso SSH public key to the authorized_keys file on another system for SSH key-based authentication.
HTTP Request
GET /api/sonar/ssh-public-key
cURL Example
curl -H "Authorization: Bearer <API_KEY>" \
https://HOSTNAME/api/sonar/ssh-public-key
Success Response
{
"public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQC9w0vWHeB/HFXPXM4lTwXALyiatCGtSAoenfyJsrl63uZGU7Xji9Iz/pJJ6t5tWYz7mm2Frg9JjGq2p42xW525FgjRtIhyiPiT7/ZT80GG79Fi1wUE+BlIzXKwmfNxHxaBoW7UcPp1gMSmEycIVU/4b79JM1jfCpfPr+mq9XYzYw== "
}
- public_key (String): SSH public key