ONTAP Discussions

Active IQ Unified Manager API bug ?

marcrousseau
1,284 Views

Hello,

 

I'm using AiQ UM 9.9P1

I try to get events from AiQ UM API with curl and I want to use multiple values for some filters

 

Here are my results :

 

- get events with filter CURRENT_STATE=NEW|ACKNOWLEDGED
curl -X GET "https://$OCUM_SERVER_HOST/api/management-server/events?current_state=new%7Cacknowledged" -H "accept: application/json" -u $USER:$PASS

 

-> works perfectly 

 

- get events with filter IMPACT.LEVEL=INCIDENT|RISK

curl -X GET "https://$OCUM_SERVER_HOST/api/management-server/events?current_state=new%7Cacknowledged&impact.level=incident%7Crisk" -H "accept: application/json" -u $USER:$PASS

 

-> works perfectly 

 

- get events with filter SEVERITY=ERROR (only one value)

curl -X GET "https://$OCUM_SERVER_HOST/api/management-server/events?severity=ERROR" -H "accept: application/json" -u $USER:$PASS

 

-> works perfectly 

 

- get events with filter SEVERITY=ERROR|CRITICAL (with 2 values)

curl -X GET "https://$OCUM_SERVER_HOST/api/management-server/events?severity=ERROR%7CCRITICAL" -H "accept: application/json" -u $USER:$PASS

 

-> ERROR

"error": {
"code": null,
"message": "No enum constant com.netapp.dfm.entity.platform.event.EventSeverity.error,critical",
"target": null
}

Is this a bug ? Can somebody help ?

Thanks

Marc

 

 

 

1 ACCEPTED SOLUTION

paul_stejskal
1,239 Views

Probably. Please open a case to have it investigated.

 

View solution in original post

1 REPLY 1

paul_stejskal
1,240 Views

Probably. Please open a case to have it investigated.

 

Public