GET Analytics Certificates Count Collections

The GET /Analytics/Certificates/Count/Collections operation returns the number of active certificates for one or more collections. On success, the operation returns HTTP 200 OK with  the certificate count and details.

Tip:  The following permissions (see Security Roles and Claims) are required to use this feature:

/certificates/collections/read/
OR
/certificates/collections/read/#/

Permissions for certificates can be set at the system-wide or resource-specific level. The appropriate level depends on how the certificates are accessed. See Certificate Collection Permissions for more information.

In permission strings, # represents a specific resource identifier. In /certificates/collections/ permission strings it refers to a certificate collection ID (for example, CollectionId) and in /certificate_stores/ permission strings it refers to a certificate store application ID (for example, containerId).

Table 233: GET Analytics Certificates Count Collections Input Parameters

Name In Description
collectionIds Query

Optional. An integer that represents the ID of the collection to query to generate the certificate count. Multiple IDs may be specified.

Use 0 for All Certificates (built-in collection).

If no collectionIds are passed in, an empty response is returned.

Tip:  In the Keyfactor API Reference and Utility, click the Add integer item button on the Collectionids input parameter to enter the ID for each collection you wish to query.

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

Table 234: GET Analytics Certificates Count Collections Response Data

Name Description
Results

An array of objects showing the certificate counts for each specified collection. ClosedShow collection results details.