Replies: 1 comment 3 replies
-
|
Hi! Criteria are combined using {
"pagination": {
"page_size": 10,
"current_page": 1
},
"sort": {
"property": "USERNAME",
"operation": "ASC"
},
"criteria": [
{
"property": "STATUS",
"value": "CERT_ACTIVE",
"operation": "EQUAL"
}
]
}Then add another criteria to narrow down the search results: {
"pagination": {
"page_size": 10,
"current_page": 1
},
"sort": {
"property": "USERNAME",
"operation": "ASC"
},
"criteria": [
{
"property": "STATUS",
"value": "CERT_ACTIVE",
"operation": "EQUAL"
},
{
"property": "END_ENTITY_PROFILE",
"value": "EMPTY",
"operation": "EQUAL"
}
]
}The result should now contain only entries matching both criteria. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
we are using EJBCA 8.2.0.1 Community. I try to find active certificates by using
/v2/certificate/search.The parameter "criteria" is a list of search criteria as the documentation says.
But it is not clear whether the criteria are combined by "and" or "or".
There is no information about that in the documentation.
In my opinion it is "or".
If this is correct, is there a way to combine expressions by "and"?
Kind regards,
Torsten
Beta Was this translation helpful? Give feedback.
All reactions