Hi, would it be possible to get an

Hi, would it be possible to get an overview of all schedules that are active within my organization as well as logs (did they succeed/fail?)?
4 Replies
Sandeep
Sandeep8mo ago
Yes, @Thomas Brink This can be achieved using the V2 API. Below is an example of the CURL command which should help. It will iterate over all the schedules in the cluster, and history_runs_options will give you the desired output.
curl -X POST \
--url 'https://hostname/api/rest/2.0/schedules/search' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer XXX' \
--data-raw '{
"history_runs_options": {
"include_history_runs": true,
"record_size": 100,
"record_offset": 0
},
"record_offset": -1,
"record_size": -1
}'
curl -X POST \
--url 'https://hostname/api/rest/2.0/schedules/search' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer XXX' \
--data-raw '{
"history_runs_options": {
"include_history_runs": true,
"record_size": 100,
"record_offset": 0
},
"record_offset": -1,
"record_size": -1
}'
• Replace hostname with your actual hostname. • Replace XXX with your actual Bearer token. This command will iterate over all the schedules in the cluster and return the desired output using the history_runs_options parameter. The same can be tried via V2 API Playground as well.
Thomas Brink
Thomas BrinkOP8mo ago
Thanks! Is this available within Python as well?
shikharTS
shikharTS8mo ago
Sorry this is on the roadmap but we currently only have a TypeScript SDK
Thomas Brink
Thomas BrinkOP7mo ago
I see, thanks

Did you find this page helpful?