You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
Hi,
I want to get the list of active maintenance for the specific component-id thought API call. for Example:
If I schedule 3 incidents in the difference of start time by 5 min using three different component id, then all 3 will go in progress after some time and then I want to list one of them via API call. How I can do that. I got this
curl https://api.statuspage.io/v1/pages/{page_id}/incidents/active_maintenance \ -H "Authorization: OAuth your-api-key-goes-here" \ -X GET
but it lists all 3 that are in active state. I want to list only one of them according to component ID.
Hi Vikas,
Thanks for reaching out to the Statuspage team.
Unfortunately, we do not currently have a query parameter for the active maintenance API endpoint that may allow us to narrow the result by components.
The only available query parameters for this endpoint are page and per_page as mentioned in the API documentation.
I'm afraid the only workaround to achieve this at the moment would be to filter the results on the client side by making changes to the script.
Thanks,
Ashish
The per_page option is not helpful in this place, but I have written a python script that works well for me. But again query parameter will definitely be the perfect requirement here.
Anyways,
Thank you, Ashish.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.