Show public keys
Shows all public keys for a resource as newline delimited string for compatibility with the authorized_keys SSH format.
Returns an empty string if the resource does not exist, to prevent attackers from determining whether a resource exists.
Kinds of resources
Kind |
Description |
---|---|
User |
One unique human |
Host |
A single logical machine (in the broad sense, not just physical) |
Layer |
A collection of hosts that have the same privileges |
Group |
A collection of users and groups that have the same privileges |
Policy |
Privileges on policies enable a user to create and modify objects and permissions |
Variable |
A secret such as a password, API key, SSH key, etc. |
Webservice |
An HTTP(S) web service which performs sensitive operations |
Entity IDs must be URL-encoded. |
URI
|
Any identifier included in the URL must be URL-encoded to be recognized by the Conjur API.
Examples:
Identifier |
URL-Encoded |
---|---|
|
|
|
|
|
|
|
|
|
|
URI Parameters
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
account |
String |
Yes |
Organization account name. Example: |
kind |
String |
Yes |
kind of resource of which to show public keys Example: |
identifier |
String |
Yes |
the identifier of the object
|
Example using curl
|
Response
Code |
Description |
---|---|
200 |
Public keys returned as newline delimited string |
Example URI
For example, to show all the public keys for the user “alice”:
|
Response 200
Headers
|
Body
|