List keys
POST https://daas.digicert.com/apicontroller/v1/key/list
Use this endpoint to get a list with details about your SSH keys.
Related topic
For more information about SSH keys and how to discover SSH keys configured on your server, see SSH keys.
Example requests and responses
Request parameters
Name | Req/Opt | Type | Description |
---|---|---|---|
accountId | required | string | Account ID. |
searchCriteriaList | optional | array | Filter results by specified values. The array includes key, operation and value. For definitions, see the Filter options for searchCriteriaList table below. Example: searchCriteriaList:[ { "key":"userName", "operation":"EQUALS", "value":["CertCentral Admin"] } ] |
divisionIds | required | array | User's division IDs. |
startIndex | optional | integer | Index of the first result. Default: |
pageSize | optional | integer | Number of records per page. Allowed values: Default: |
filterSelected | required | string | The value to show in the results for each sensor that meets the search criteria. Allowed values: |
isDuplicateKeyList | required | boolean | Whether any duplicate key exist. Default: |
sortedColumnId | optional | string | Sort results by specified parameter. Allowed values: Default: |
sortOrder | optional | string | Sort direction. Allowed values: Default: |
Response parameters
Name | Type | Description |
---|---|---|
error | object | Includes error codes, if any. |
data | object | Object with information about the filter results. |
.. totalCount | integer | Total number of keys based on the filter criteria. |
.. currentCount | integer | Number of records on current page. |
.. keydetailList | array | Container for key details. |
.. .. keyName | string | Key name. Max length: 80 characters. |
.. .. securityLevel | string | Security status of the key. Possible values: |
.. .. ip | string | IP address related to the key. |
.. .. port | integer | Default SSH enabled port. |
.. .. type | string | Type of the key. Possible values: |
.. .. firstDiscovered | integer | Timestamp for when the key was first discovered. Format: epoch in millisecond. Epoch corresponds to 0 hours, 0 minutes, and 0 seconds (00:00:00) Coordinated Universal Time (UTC) on a specific date, which varies from system to system. Example: |
.. .. duplicateCount | integer | Number of duplicates detected for the key. |
.. .. scanName | string | Scan associated with the key. |
.. .. protocol | string | Protocol used to set up an encrypted connection between the systems to communicate over the internet. Possible values: |
.. .. filepath | string | The file path from where the key is discovered. |
.. .. isRootKey | boolean | Whether it is a type of root key. |
.. .. isOrphanKey | boolean | Whether it is an orphan key. A key is orphaned when it cannot be used further because the pair is no longer on the server. |
.. .. source | string | The source used to identify the key. Possible values: |
.. .. serverHost | string | The server host associated with the key. |
.. .. isProtectedKey | boolean | Whether it is a protected key. |
Filter options for searchCriteriaList
The array includes key, operation and value.
Key | Operation | Value |
---|---|---|
| EQUALS |
|
| EQUALS |
|
| EQUALS |
|
| EQUALS |
|
| EQUALS |
|
| EQUALS |
|
| EQUALS |
|
| EQUALS |
|
| EQUALS |
|
| EQUALS |
|
| EQUALS |
|
| EQUALS |
|