Queries the SSH key pairs stored persistently in users' key repositories. A set of user names must be provided; they will be compared to the "creator name" of the SSH key. The user authenticating this request will only see the key pairs for which he/she has the SSH_KEY:READ:{key_name} permission.
| Webservice Type: | GET |
| Output format: | json |
| Mandatory form parameters: |
username[], one or more usernames for which to query their SSH key pairs
|
| Request method: | GET |
| Example: | curl -H 'Authorization: Bearer RvGK+D73k9KjeuDu+Bx17/3clLJHD7Ff+NCLeu9YDOQ=' -X GET http://127.0.0.1:8888/landscape/api/landscape/get_ssh_keys_owned_by_user?username[]=admin
produces a 200 status code with output [
{
"name": "Axel",
"regionId": "eu-west-2",
"creatorName": "admin",
"creationTimeMillis": 1645439343022,
"publicKey": "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAu+eA2h6Fox7s9yir93P8MQ8H9eu83tDSQ4N4qjTa7ustnYfwOBxsVgIZh3CUT+6m66fgQijkG6Qd3Dt7IXR5Ja3wLIdFa/HCsvN4gtL6Q65o7/XyiPRc98EafQPW1+Cux+ieZsB+NoNKhdUOyb2Ri7LhpKdPh3d7X9lhwbVIvEU= uhl@here"
}
]
|