- Community Home
- >
- Software
- >
- HPE OneView
- >
- REST API to get Active alerts
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2019 03:03 AM
02-15-2019 03:03 AM
Trying to just pull out the active alerts using the following:
ACTIVE=$(curl --insecure \ --header "X-API-Version: ${currentVersion}" \ --header "auth: ${sessionID}" \ --request GET ${OneView}/rest/alerts?start=0&count=-1&filter="alertState EQ 'Active'")
However, getting back a lot with alertState set to "Cleared." Is something wrong with my syntax?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2019 05:14 AM
02-15-2019 05:14 AM
SolutionHi @BradV
Small correction to your APU invocation. You may want to use the below with curl, the URL Encoded values for the special characters such as single quote and double quotes.
GET http://localhost/rest/alerts?start=0&coun=-1&filter=%22alertState+EQ+%27Active%27%22
Will let the alerts team respond on the functional issue you are asking about.
Regards,
Bhaskar
I am an HPE employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2019 05:38 AM
02-15-2019 05:38 AM
Re: REST API to get Active alerts
Yes. That worked better. :)
Is that in the documentation? The REST API reference for version 800 and the /rest/alerts does not mention it (unless I missed it?).
Thanks!