API call to getQuarantineItemsList gives zero items
Hello.
I am hoping to get some help with an issue that has come up recently.
When I place an API call to getQuarantineItemsList the response indicates zero items have been quarantined, but a manual check in GravityZone shows otherwise. I am confused because this had been working up until a few weeks/months ago. When I say working my meaning is the API call results would match the GravityZone list I could get manually. I did not see any recent changes to the API documentation so I am not sure what might have changed, or what I am doing wrong.
An example of my API request (for past 30-days):
{
"jsonrpc": "2.0",
"id": 1,
"method": "getQuarantineItemsList",
"params": {
"page": 1,
"perPage": 100,
"filters": {
"startDate": "2024-05-04T11:25:18",
"endDate": "2024-06-03T11:25:18",
"actionStatus": 0
}
}
}
And the response I am getting:
{
"result": {
"total": 0,
"page": 1,
"perPage": 100,
"pagesCount": 0,
"items": []
},
"jsonrpc": "2.0",
"id": 1
}
However in GravityZone there are a few quarantine items listed.
I have tried adjusting a few of the request parameters but all of the results have been coming back with zero items.
Thank you for any help you can provide.
Answers
-
Hello @NickPoirier ,
The main reason why you are not getting the same results as in GravityZone most likely is related to the filtering applied or where you are looking for the quarantined elements. Please ensure that the filters match the quarantine items.
Please check the following:
- Where you are looking for the quarantined elements?
- Are you a Partner? If yes, than is the partner company quarantine or one of the companies that you manage?
- Are the quarantined elements generated in GravityZone between the interval that you set? (2024-05-04T11:25:18 to 2024-06-03T11:25:18)
- Are the quarantined elements in a status of Pending, Restore or Remote? You are currently using the actionStatus=none in your request.
More details about this can be found in this article:
If all the above are correctly set then we will need to look more deeper into this scenario so if this is the case please open a support ticket with our Enterprise Support Team:
Kind Regards,
Andrei
2 - Where you are looking for the quarantined elements?