GET Reports ID

The GET /Reports/{id} operation returns the built-in report with the specified ID. On success, the operation returns HTTP 200 OK with  the details of the report.

Important:  The v1 report endpoints use the legacy reporting system and have been deprecated. They are retained for backward compatibility but require the legacy reports to be installed (see the Logi component in Install Keyfactor Command on a Windows Server Under IIS). New development should use the v2 endpoints, which use the current reporting system.
Tip:  The following permissions (see Security Roles and Claims) are required to use this feature:

/reports/read/

This operation has two available versions. Version 1 has been deprecated. Version 2 should be used for all new integrations. For more information, see Endpoint Definition Versioning.

Version 2 of GET /Reports/{id} supports the current reporting system.

Table 696: GET Reports {id} v2 Input Parameters

Name In Description
Id Path

Required. A string indicating the Keyfactor Command reference GUID of the report to generate.

Use the GET Reports Definitions (v2) operation to retrieve a list of all the report definitions to determine the report ID.

ParameterValues Query

An object containing the parameter values to enter to generate the report. If a custom name has been defined for the parameter, the custom name must be provided. ClosedShow report parameter details.

Default Name Description
Agent Pool

A string that indicates the GUID of the SSL pool to use to run the report.

Use the GET Agent Pools operation to retrieve a list of all the SSL pools to determine the GUID of the pool.

Certificate Collection

An integer that indicates the collection ID or 0 (zero) for all collections.

Use the GET Certificate Collections operation to retrieve a list of all the certificate collections to determine the certificate collection ID.

End Date

A string with the date in the format yyyy-dd-mm. The end date must be less than or equal to the current date.

Expiring Certificates End Date A string with the date in the format yyyy-dd-mm. The end date must be less than or equal to the current date.
Expiring Certificates Start Date A string with the date in the format yyyy-dd-mm.
Include Unknown Status A Boolean indicating whether to include records with an unknown certificate status (True or False).
Number of Periods An integer that indicates the number of periods. Maximum value is 60 for days, 52 for weeks, and 36 for months.
Period Type

A string that indicates one of the available options of:

  • Days

  • Weeks

  • Months

Start Date A string with the date in the format yyyy-dd-mm.
Templates

An integer that indicates the template ID, or blank for all templates.

Use the GET Templates operation to retrieve a list of all the templates to determine the template ID.

For example:

Copy
{
    "Certificate Collection": 2,
    "Include Unknown Status": "true",
    "Templates": "1,2",
    "End Date": "2026-03-9",
    "Period Type": "1",
    "Number of Periods": 12
}

Table 697: GET Reports {id} v2 Response Data

Name

Description

ReportInstanceId

The Keyfactor Command reference GUID of this report run instance.

ReportTitle A string containing the user-defined title of the report.
ReportDescription A string containing the user-defined description of the report.
Layout

The layout of a report definition contains a list of widgets (referencing predefined widgets) and their report parameters.

Note:  The description and name of the parameters used by the widgets can be customized to meet your specific user needs. Customizing the parameter name allows you to use the same parameter type (for example, certificate collection) multiple times on the same report in different widgets and reference different values. For more information, see Customize Report Parameters.

ClosedShow report layout details.

Version 1 of GET /Reports/{id} supports the legacy reporting system. This version has been deprecated. Version 2 supports the current reporting system and should be used instead.

Table 698: GET Reports {id} Input Parameters

Name In Description
id Path

Required. An integer containing the Keyfactor Command reference ID for the report that should be retrieved.

Use the GET Reports operation to retrieve a list of your built-in reports to determine the report ID to use.

Table 699: GET Reports {id} Response Data

Name

Description

Id An integer containing the Keyfactor Command reference ID for the report.
Display Name A string containing the display name for the report. This appears in the Keyfactor Command Management Portal on the Report Manager page, at the top of the page for the generated report, and on the menu.
Tip:  Exported reports use built-in names; modifying this value will not change the name that appears at the top of the exported version of a report (for example, a PDF).
Description A string containing the description for the report. This appears in the Keyfactor Command Management Portal on the Report Manager page and at the top of the page for the generated report.
Report Path A string containing the name of the report as referenced when retrieving it via Logi Analytics.
Version Number A string containing the version number for the report.
Categories

A string containing the report category or categories in which the report is found on the report manager page in the Keyfactor Command Management Portal. The possible values are:

  • CertificateCounts

  • CertificateLifecycle

  • CertificateLocations

  • PKIOperations

  • SecurityVulnerability

  • SSHKeys

Short Name A string containing the short reference name for the report.
In Navigator A Boolean that indicates whether the report has been configured to display on the Keyfactor Command Management Portal menu (True or False).
Favorite A Boolean that indicates whether the report has been marked as a favorite (True or False).
Remove Duplicates A Boolean that indicates whether the report uses certificate de-duping logic in producing output (True or False).
Tip:  When de-duplication is turned on for a report, the report results will include only the most recently issued certificate if there is more than one certificate that matches the de-duplication criteria. De-duplication can only be turned on for reports that use certificate collections—the UsesCollection parameter. The UsesCollection parameter is not user-configurable.

Certificate de-duping is configured on a certificate collection using the DuplicationField parameter (see POST Certificate Collections). This corresponds to the Keyfactor Command Management Portal Ignore renewed certificate results by option on a certificate collection. Certificate collections may be configured to be de-duplicated based on the certificate common name, distinguished name, or principal name (or not at all). Only certificates that share all the EKUs (for example, Client Authentication and Server Authentication) as well as the same CN, DN or UPN will be eliminated as duplicates. If a certificate has more than one EKU and at least one EKU does not match an otherwise similar certificate with matching CN, DN or UPN, it will not be eliminated.

Uses Collection A Boolean that indicates whether the report uses a certificate collection as input for reporting (True or False).
Report Parameter

An array of objects containing the parameters for the report. ClosedShow report parameter details.

Schedules

An array of objects containing the configured schedules for running the report, if any. ClosedShow schedule details.

Accepted Schedule Formats An array of strings containing the report formats supported for the report. Typically supported formats are PDF and Excel. Select reports support CSV format.