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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.