Micro Focus Expert
Micro Focus Expert
554 views

liste all running reports via REST

Hi,
how can I query all the running reports?

I get all the reports with:


GET,
https://sentinel.example.com:8443/SentinelRESTServices/objects/report-status
?pagesize=2&field=report-name&field=status
200 OK
{
"next" : {
"@href" :
"https://sentinel.example.com:8443/SentinelRESTServices/objects/report-statu
s?page=2&pagesize=2&field=report-name&field=status"
},
"objects" : [
{
"meta" : {
"@href" :
"https://sentinel.example.com:8443/SentinelRESTServices/objects/report-statu
s/530C3373-F8F4-1032-861E-00215A9B07CA",
"type" : "report-status"
},
"report-name" : "notable Sentinel system events",
"status" : 2
},
{
"meta" : {
"@href" :
"https://sentinel.example.com:8443/SentinelRESTServices/objects/report-statu
s/008D90A3-F96A-1032-80DD-00215A9B07CA",
"type" : "report-status"
},
"report-name" : "Report 1",
"status" : 2
}
]
}


But if I try to restrict it to a certain status, it fails:


GET,
https://sentinel.example.com:8443/SentinelRESTServices/objects/report-status
?pagesize=2&field=report-name&field=status&query=status.e2
500 Server Error

Invalid field name 'status' on left side for ' == '

'status' if a valid falue for fields. Why doesn't it work with query?

Norbert


0 Likes
1 Reply
KelSmi68 Absent Member.
Absent Member.

Re: liste all running reports via REST

You need to check any error logs for your web server.
500 Server Error is a problem on the web server, the issue may only be temporary.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.