POST SSH/KeyDetails
Returns detailed key data about a device.
Requirements
- Token scope: SSH
Headers
-
Content type: Content-Type:application/json.
- Token: The bearer access token that you received. For example, Authorization:Bearer 4MyGeneratedBearerTknz==. For more information, see Passing a bearer token in your API calls.
Parameters
Name |
Description |
---|---|
KeyId |
An array of public or private key identifiers. To find the appropriate KeyId, call POST SSH/KeysetDetails and filter on the DeviceGuid or other filters. |
Returns
Name |
Description |
---|---|
KeyData |
Array of detailed key data, one for each specified key identifier. For more information, see SSH KeyData object. |
Example: Show key details
Request
POST https://tpp.venafi.example/vedsdk/SSH/KeyDetails X-Authorization:Bearer 4MyGeneratedBearerTknz== { "KeyId" : [7] }
Response
HTTP/1.1 200 OK [ { "ActiveFrom":"/Date(1587126857943+0300)/", "Algorithm":"RSA", "AllowedSourceRestriction":null, "Approver":[ ], "Comment":"10keys@jhost243", "DeniedSourceRestriction":null, "DeviceGuid":"{d8cb6654-8a22-49cf-844d-3478078503e9}", "FilePath":"/home/10keys/.ssh/authorized_keys", "ForceCommand":null, "Format":"OpenSSH", "IsEncrypted":false, "KeyId":7, "KeysetId":"7256CE0E99C9F29AD89F243B38700F661F427232", "LastUsed":null, "Length":2048, "Notes":null, "Options":null, "ProcessError":null, "ProcessStatus":0, "Reason":null, "Type":"AuthorizedKey", "Username":"10keys", "ViolationStatus":null } ]