GET Certificates CSV
The GET /Certificates/CSV method is used to create output, in a CSV format, of certificates from Keyfactor Command that match the query criteria provided in the request. The content will display in the response body and can be copied from there for use in a file, as needed. This method returns HTTP 200 OK on a success with a comma-delimited list of certificates plus a header line that can be copied to a CSV file.
Permissions for certificates can be set at either the global or certificate collection The certificate search function allows you to query the Keyfactor Command database for certificates from any available source based on any criteria of the certificates and save the results as a collection that will be availble in other places in the Management Portal (e.g. expiration alerts and certain reports). level. See Certificate Collection Permissions for more information about global vs collection permissions. See also the CollectionId input parameter
A parameter or argument is a value that is passed into a function in an application., below.
Table 307: GET Certificates CSV Input Parameters
Name | In | Description |
---|---|---|
SortName | Query | A string containing the property by which the results should be sorted. Fields available for sorting through the API for the most part match those that appear as sortable columns in the Keyfactor Command Management Portal. The default sort field is Import Date. |
SortOrder | Query | An integer that sets the sort order on the returned results. A value of 0 sorts results in ascending order while a value of 1 sorts results in descending order. The default is ascending. |
Query | Query | A string query, to limit the requested set of certificates, in the form: CN –contains "mycertificate.keyexample.com" See Certificate Search Page for querying guidelines to build your body query. |
CollectionId | Query |
An integer specifying an optional certificate collection identifier to validate that the user executing the request has sufficient permissions to do so. If a certificate collection ID is not supplied, the user must have global permissions to complete the action. Supplying a certificate collection ID allows for a check of the user's certificate collection-level permissions to determine whether the user has sufficient permissions at a collection level to complete the action. See Certificate Collection Permissions for more information. |
Table 308: GET Certificates CSV Response Data
Name | Description |
---|---|
Content |
A comma-delimited string of certificate data as per the criteria supplied. The following fields are included:
For example: Copy
|



Was this page helpful? Provide Feedback