Fleet Automation
List all schedules
Retrieve all upgrade schedules for the organization.
Schedules automate package upgrades by defining maintenance windows and recurrence rules. Each schedule automatically creates deployments based on its configuration.
get/api/v2/fleet/schedules
Request
- Base URLhttps://api.datadoghq.com
- Auth
- API key in header DD-API-KEY and API key in header DD-APPLICATION-KEY
- or OAuth 2Authorization code/oauth2/v1/authorizeToken URL/oauth2/v1/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Response
OK
Example response
{
"data": [
{
"attributes": {
"created_at": "2023-11-14T22:13:19Z",
"created_by": "user@example.com",
"name": "Weekly Production Agent Updates",
"next_run": "2025-01-06T02:00:00Z",
"query": "env:prod AND service:web",
"rule": {
"days_of_week": [
"Mon",
"Wed",
"Fri"
],
"interval": 1,
"maintenance_window_duration": 120,
"start_maintenance_window": "0200",
"timezone": "America/New_York"
},
"status": "active",
"updated_at": "2023-11-14T22:13:19Z",
"updated_by": "user@example.com"
},
"id": "abc-def-ghi-123",
"type": "schedule"
}
],
"meta": {
"page": {
"total_count": 5
}
}
}Changes
Changes to this operation have not been checked yet.