Hi
I'm trying to query for alerts based on user criteria, on the suite-api.
when i try to query based on the "updateTimeRange" or "cancelTimeRange" properties
i get an 500 http error code and a "NullPointerException".
But if i try to query based on the "startTimeRange" property it works fine.
Any suggestion how to get this work will be appreciate.
tnx moshe
p.s. Same question was asked 4 month ago and no one answered
https://communities.vmware.com/thread/576995
Here is the body:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ops:alert-query compositeOperator="AND" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ops="http://webservice.vmware.com/vRealizeOpsMgr/1.0/">
<ops:cancelTimeRange>
<ops:startTime>1520946167529</ops:startTime>
</ops:cancelTimeRange>
</ops:alert-query>
And here is what i get:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ops:error xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ops="http://webservice.vmware.com/vRealizeOpsMgr/1.0/" httpStatusCode="500" apiErrorCode="500">
<ops:message>Internal Server error, cause unknown.</ops:message>
<ops:moreInformation>
<ops:info name="errorMessage">Failed to execute function IControllerApi.queryAlerts : com.vmware.vcops.platform.gemfire.GemfireFunction$MethodInvocationException: NullPointerException: </ops:info>
</ops:moreInformation>
</ops:error>
Here is a picture: