SchedulesΒΆ
List all SchedulesΒΆ
Example:
curl 'https://<your domain>/v1alpha1/schedules?pageSize=1&pageToken=1' \
-H "X-CloudOps-API-Key:>token>"
{% swagger src="../../../.gitbook/assets/schedule_api_updated.json" path="/v1alpha1/schedules" method="get" %} schedule_api_updated.json
Create a ScheduleΒΆ
This schedules "CloudOps Rules" to run at 5 AM (GMT) every day:
curl -X POST 'https://<api domain>/v1alpha1/schedules' \
-H "X-CloudOps-API-Key:<api token>" \
-d '{"schedule":{"proxyId":"1499f27c-640sdfds6-4fbd-bd1b-c6f92800018f",
"runbookName":"CloudOps rulez",
"runbookId":"14fac589-5849-403b-afcf-ed80as79099500",
"schedule":"* 5 * * *"}}'
{% swagger src="../../../.gitbook/assets/schedule_api_updated.json" path="/v1alpha1/schedules" method="post" %} schedule_api_updated.json
Get a Specific Schedule's detailsΒΆ
curl 'https://<domain>/v1alpha1/schedules/97b8208a-7b05-4212-b1c3-2e0f0abe8060' \
-H "X-CloudOps-API-Key:<api key>"
{% swagger src="../../../.gitbook/assets/schedule_api_updated.json" path="/v1alpha1/schedules/{scheduleId}" method="get" %} schedule_api_updated.json
Delete a scheduleΒΆ
curl -X DELETE 'https://<domain>/v1alpha1/schedules/c67888f8-2df8-4248-9280-5c4b3589cf43' \
-H "X-CloudOps-API-Key:<api token>"
{% swagger src="../../../.gitbook/assets/schedule_api_updated.json" path="/v1alpha1/schedules/{scheduleId}" method="delete" %} schedule_api_updated.json
Update a ScheduleΒΆ
{% swagger src="../../../.gitbook/assets/schedule_api_updated.json" path="/v1alpha1/schedules/{scheduleId}" method="patch" %} schedule_api_updated.json