GET Analytics Certificates Count
The GET /Analytics/Certificates/Count method returns the number of certificates that match the supplied parameters. This method returns HTTP 200 OK on a success with the certificate count.
Permissions for certificates can be configured at multiple levels. You can apply them system-wide—for all certificates—or use fine-grained control by assigning permissions at the certificate collection level. The appropriate level depends on how the certificates are accessed. See Certificate Collection Permissions for more information about system-wide versus more targeted permission models.
Table 220: GET Analytics Certificates Count Input Parameters
| Name | In | Description |
|---|---|---|
| QueryString | Query |
A string containing a query to limit the results (e.g., field1 -eq value1 AND field2 -gt value2). The default is to return all records. For querying guidelines, refer to: GET Certificates The query fields supported for this endpoint are the same as those for certificate search. Advanced searches are supported. This allows for creating a custom query to generate a certificate count. The query should be formatted like the context field on the certificate search page, for example: (CN -contains "appsrvr" AND IssuedDate -ge "01/01/2022") OR (CN -contains "appsrvr" AND TemplateShortName -contains "web")
|
| collectionId | Query |
Required. An integer that represents the ID of the collection to query to generate the certificate count. Use 0 for All Certificates (built-in collection). Use the GET Certificate Collections method to retrieve a list of all the certificate collections to determine the collection ID. |
Table 221: GET Analytics Certificates Count Response Data
| Name | In | Description |
|---|---|---|
| Count | Body |
An integer that represents the count of certificates that match the supplied parameters. |
Was this page helpful? Provide Feedback