REST API Pagination for Certificate Search endpoint #600
Unanswered
AbdouMechraoui
asked this question in
Q&A
Replies: 1 comment
-
You should try version 8.3.2 now. There are some additional fixes in 9.0 that will be out soon. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Version: 1.0,
Revision: EJBCA 8.2.0 Enterprise
I have come across a strange behavior when searching for certificates using the endpoint
/v2/certificate/search
. Thepagination_summary.total_certs
field does not reflect the total number of certificates present for the given query. Instead it reflects the number of certificates in the response. This behavior changes once the last page is fetched, and the total number of certificates is reflected.For instance:
First request body:
The resulting response body:
Second request body:
The resulting response body:
Third request body:
The resulting response body:
In the docs, it says that pagination is optional and omitting it would result in
total_certs
to be in the response. However, I get500: General Error
when I omit pagination.Is there any way to get the value of
total_certs
for a given criteria?Beta Was this translation helpful? Give feedback.
All reactions