curl --user administrator:y0uR_P455woR*d \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-X POST http://localhost:8080/midpoint/ws/rest/reports/search?options=resolveNames \
-v \
--data-binary @./samples/rest/query-gen-cap-name.json
Search for All Reports With Name That Starts With Upper Case 'A'
Show data source example for "Search for all Reports with name that starts with upper case 'A'" | GitHub
{
"query": {
"filter": {
"text": "name startsWith \"A\""
}
}
}
The response is an HTTP 200 code in case of success with a response body containing the queried items.
Example Output is a list of objects.
{
"@ns": "http://prism.evolveum.com/xml/ns/public/types-3",
"object": {
"@type": "http://midpoint.evolveum.com/xml/ns/public/common/api-types-3#ObjectListType",
"object": [
{
"@type": "c:ReportType",
"oid": "00000000-0000-0000-0000-000000000080",
"version": "1",
"name": "All audit records report",
"description": "Report made from all audit records.",
"metadata": {},
"operationExecution": {},
"assignment": {},
"iteration": 0,
"iterationToken": "",
"archetypeRef": {},
"roleMembershipRef": {},
"objectCollection": {}
}
]
}
}
Was this page helpful?
YES
NO
Thanks for your feedback