Viewing docs for Datadog v5.12.0
published on Friday, Sep 25, 2026 by Pulumi
published on Friday, Sep 25, 2026 by Pulumi
Viewing docs for Datadog v5.12.0
published on Friday, Sep 25, 2026 by Pulumi
published on Friday, Sep 25, 2026 by Pulumi
Lists Fleet Automation Agent upgrade schedules in ID order. An empty result is successful. Reading schedules requires an application key with the hostsRead permission.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as datadog from "@pulumi/datadog";
// Returns an empty list when the organization has no Fleet Automation schedules.
const all = datadog.getFleetSchedules({});
import pulumi
import pulumi_datadog as datadog
# Returns an empty list when the organization has no Fleet Automation schedules.
all = datadog.get_fleet_schedules()
package main
import (
"github.com/pulumi/pulumi-datadog/sdk/v5/go/datadog"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Returns an empty list when the organization has no Fleet Automation schedules.
_, err := datadog.GetFleetSchedules(ctx, map[string]interface{}{}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Datadog = Pulumi.Datadog;
return await Deployment.RunAsync(() =>
{
// Returns an empty list when the organization has no Fleet Automation schedules.
var all = Datadog.GetFleetSchedules.Invoke();
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.datadog.DatadogFunctions;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
// Returns an empty list when the organization has no Fleet Automation schedules.
final var all = DatadogFunctions.getFleetSchedules(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference);
}
}
variables:
# Returns an empty list when the organization has no Fleet Automation schedules.
all:
fn::invoke:
function: datadog:getFleetSchedules
arguments: {}
pulumi {
required_providers {
datadog = {
source = "pulumi/datadog"
}
}
}
data "datadog_getfleetschedules" "all" {
}
# Returns an empty list when the organization has no Fleet Automation schedules.
Using getFleetSchedules
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getFleetSchedules(opts?: InvokeOptions): Promise<GetFleetSchedulesResult>
function getFleetSchedulesOutput(opts?: InvokeOutputOptions): Output<GetFleetSchedulesResult>def get_fleet_schedules(opts: Optional[InvokeOptions] = None) -> GetFleetSchedulesResult
def get_fleet_schedules_output(opts: Optional[InvokeOutputOptions] = None) -> Output[GetFleetSchedulesResult]func GetFleetSchedules(ctx *Context, opts ...InvokeOption) (*GetFleetSchedulesResult, error)
func GetFleetSchedulesOutput(ctx *Context, opts ...InvokeOption) GetFleetSchedulesResultOutput> Note: This function is named GetFleetSchedules in the Go SDK.
public static class GetFleetSchedules
{
public static Task<GetFleetSchedulesResult> InvokeAsync(InvokeOptions? opts = null)
public static Output<GetFleetSchedulesResult> Invoke(InvokeOptions? opts = null)
public static Output<GetFleetSchedulesResult> Invoke(InvokeOutputOptions opts)
}public static CompletableFuture<GetFleetSchedulesResult> getFleetSchedules(InvokeOptions options)
public static Output<GetFleetSchedulesResult> getFleetSchedules(InvokeOptions options)
public static Output<GetFleetSchedulesResult> getFleetSchedules(InvokeOutputOptions options)
fn::invoke:
function: datadog:index/getFleetSchedules:getFleetSchedules
arguments:
# arguments dictionarydata "datadog_get_fleet_schedules" "name" {
# arguments
}getFleetSchedules Result
The following output properties are available:
- Schedules
List<Get
Fleet Schedules Schedule> - Fleet Automation schedules, sorted by ID.
- Total
Count int - Total number of schedules returned by the API.
- Schedules
[]Get
Fleet Schedules Schedule - Fleet Automation schedules, sorted by ID.
- Total
Count int - Total number of schedules returned by the API.
- schedules list(object)
- Fleet Automation schedules, sorted by ID.
- total_
count number - Total number of schedules returned by the API.
- schedules
List<Get
Fleet Schedules Schedule> - Fleet Automation schedules, sorted by ID.
- total
Count Integer - Total number of schedules returned by the API.
- schedules
Get
Fleet Schedules Schedule[] - Fleet Automation schedules, sorted by ID.
- total
Count number - Total number of schedules returned by the API.
- schedules
Sequence[Get
Fleet Schedules Schedule] - Fleet Automation schedules, sorted by ID.
- total_
count int - Total number of schedules returned by the API.
- schedules List<Property Map>
- Fleet Automation schedules, sorted by ID.
- total
Count Number - Total number of schedules returned by the API.
Supporting Types
GetFleetSchedulesSchedule
- Created
At string - RFC 3339 timestamp when the schedule was created.
- Created
By string - User handle of the person who created the schedule.
- Id string
- Unique identifier of the Fleet Automation schedule.
- Is
Default bool - Whether this is the organization's default schedule.
- Name string
- Human-readable name of the schedule.
- Next
Run string - RFC 3339 timestamp of the next maintenance window, or null when no next run can be computed.
- Notification
Rule GetFleet Schedules Schedule Notification Rule - Notification configuration attached to the schedule, when available.
- Query string
- Datadog host query used to select the Agent upgrade targets.
- Rule
Get
Fleet Schedules Schedule Rule - Recurrence and maintenance-window configuration for the schedule.
- Status string
- Whether the schedule is
activeorinactive. - Updated
At string - RFC 3339 timestamp when the schedule was last updated.
- Updated
By string - User handle of the person who last updated the schedule.
- Version
To intLatest - Number of major Agent versions behind the latest version targeted by the schedule.
- Created
At string - RFC 3339 timestamp when the schedule was created.
- Created
By string - User handle of the person who created the schedule.
- Id string
- Unique identifier of the Fleet Automation schedule.
- Is
Default bool - Whether this is the organization's default schedule.
- Name string
- Human-readable name of the schedule.
- Next
Run string - RFC 3339 timestamp of the next maintenance window, or null when no next run can be computed.
- Notification
Rule GetFleet Schedules Schedule Notification Rule - Notification configuration attached to the schedule, when available.
- Query string
- Datadog host query used to select the Agent upgrade targets.
- Rule
Get
Fleet Schedules Schedule Rule - Recurrence and maintenance-window configuration for the schedule.
- Status string
- Whether the schedule is
activeorinactive. - Updated
At string - RFC 3339 timestamp when the schedule was last updated.
- Updated
By string - User handle of the person who last updated the schedule.
- Version
To intLatest - Number of major Agent versions behind the latest version targeted by the schedule.
- created_
at string - RFC 3339 timestamp when the schedule was created.
- created_
by string - User handle of the person who created the schedule.
- id string
- Unique identifier of the Fleet Automation schedule.
- is_
default bool - Whether this is the organization's default schedule.
- name string
- Human-readable name of the schedule.
- next_
run string - RFC 3339 timestamp of the next maintenance window, or null when no next run can be computed.
- notification_
rule object - Notification configuration attached to the schedule, when available.
- query string
- Datadog host query used to select the Agent upgrade targets.
- rule object
- Recurrence and maintenance-window configuration for the schedule.
- status string
- Whether the schedule is
activeorinactive. - updated_
at string - RFC 3339 timestamp when the schedule was last updated.
- updated_
by string - User handle of the person who last updated the schedule.
- version_
to_ numberlatest - Number of major Agent versions behind the latest version targeted by the schedule.
- created
At String - RFC 3339 timestamp when the schedule was created.
- created
By String - User handle of the person who created the schedule.
- id String
- Unique identifier of the Fleet Automation schedule.
- is
Default Boolean - Whether this is the organization's default schedule.
- name String
- Human-readable name of the schedule.
- next
Run String - RFC 3339 timestamp of the next maintenance window, or null when no next run can be computed.
- notification
Rule GetFleet Schedules Schedule Notification Rule - Notification configuration attached to the schedule, when available.
- query String
- Datadog host query used to select the Agent upgrade targets.
- rule
Get
Fleet Schedules Schedule Rule - Recurrence and maintenance-window configuration for the schedule.
- status String
- Whether the schedule is
activeorinactive. - updated
At String - RFC 3339 timestamp when the schedule was last updated.
- updated
By String - User handle of the person who last updated the schedule.
- version
To IntegerLatest - Number of major Agent versions behind the latest version targeted by the schedule.
- created
At string - RFC 3339 timestamp when the schedule was created.
- created
By string - User handle of the person who created the schedule.
- id string
- Unique identifier of the Fleet Automation schedule.
- is
Default boolean - Whether this is the organization's default schedule.
- name string
- Human-readable name of the schedule.
- next
Run string - RFC 3339 timestamp of the next maintenance window, or null when no next run can be computed.
- notification
Rule GetFleet Schedules Schedule Notification Rule - Notification configuration attached to the schedule, when available.
- query string
- Datadog host query used to select the Agent upgrade targets.
- rule
Get
Fleet Schedules Schedule Rule - Recurrence and maintenance-window configuration for the schedule.
- status string
- Whether the schedule is
activeorinactive. - updated
At string - RFC 3339 timestamp when the schedule was last updated.
- updated
By string - User handle of the person who last updated the schedule.
- version
To numberLatest - Number of major Agent versions behind the latest version targeted by the schedule.
- created_
at str - RFC 3339 timestamp when the schedule was created.
- created_
by str - User handle of the person who created the schedule.
- id str
- Unique identifier of the Fleet Automation schedule.
- is_
default bool - Whether this is the organization's default schedule.
- name str
- Human-readable name of the schedule.
- next_
run str - RFC 3339 timestamp of the next maintenance window, or null when no next run can be computed.
- notification_
rule GetFleet Schedules Schedule Notification Rule - Notification configuration attached to the schedule, when available.
- query str
- Datadog host query used to select the Agent upgrade targets.
- rule
Get
Fleet Schedules Schedule Rule - Recurrence and maintenance-window configuration for the schedule.
- status str
- Whether the schedule is
activeorinactive. - updated_
at str - RFC 3339 timestamp when the schedule was last updated.
- updated_
by str - User handle of the person who last updated the schedule.
- version_
to_ intlatest - Number of major Agent versions behind the latest version targeted by the schedule.
- created
At String - RFC 3339 timestamp when the schedule was created.
- created
By String - User handle of the person who created the schedule.
- id String
- Unique identifier of the Fleet Automation schedule.
- is
Default Boolean - Whether this is the organization's default schedule.
- name String
- Human-readable name of the schedule.
- next
Run String - RFC 3339 timestamp of the next maintenance window, or null when no next run can be computed.
- notification
Rule Property Map - Notification configuration attached to the schedule, when available.
- query String
- Datadog host query used to select the Agent upgrade targets.
- rule Property Map
- Recurrence and maintenance-window configuration for the schedule.
- status String
- Whether the schedule is
activeorinactive. - updated
At String - RFC 3339 timestamp when the schedule was last updated.
- updated
By String - User handle of the person who last updated the schedule.
- version
To NumberLatest - Number of major Agent versions behind the latest version targeted by the schedule.
GetFleetSchedulesScheduleNotificationRule
- Handles List<string>
- Notification handles, such as Slack channels or PagerDuty integrations.
- List<string>
- Tags associated with the notification rule.
- Handles []string
- Notification handles, such as Slack channels or PagerDuty integrations.
- []string
- Tags associated with the notification rule.
- handles list(string)
- Notification handles, such as Slack channels or PagerDuty integrations.
- list(string)
- Tags associated with the notification rule.
- handles List<String>
- Notification handles, such as Slack channels or PagerDuty integrations.
- List<String>
- Tags associated with the notification rule.
- handles string[]
- Notification handles, such as Slack channels or PagerDuty integrations.
- string[]
- Tags associated with the notification rule.
- handles Sequence[str]
- Notification handles, such as Slack channels or PagerDuty integrations.
- Sequence[str]
- Tags associated with the notification rule.
- handles List<String>
- Notification handles, such as Slack channels or PagerDuty integrations.
- List<String>
- Tags associated with the notification rule.
GetFleetSchedulesScheduleRule
- Days
Of List<string>Weeks - Days when the schedule may run.
- Interval int
- Interval between schedule runs in weeks.
- Maintenance
Window intDuration - Duration of the maintenance window in minutes.
- Start
Maintenance stringWindow - Start of the maintenance window in canonical 24-hour
HH:MMformat. - Timezone string
- IANA time zone used to interpret the maintenance window.
- Days
Of []stringWeeks - Days when the schedule may run.
- Interval int
- Interval between schedule runs in weeks.
- Maintenance
Window intDuration - Duration of the maintenance window in minutes.
- Start
Maintenance stringWindow - Start of the maintenance window in canonical 24-hour
HH:MMformat. - Timezone string
- IANA time zone used to interpret the maintenance window.
- days_
of_ list(string)weeks - Days when the schedule may run.
- interval number
- Interval between schedule runs in weeks.
- maintenance_
window_ numberduration - Duration of the maintenance window in minutes.
- start_
maintenance_ stringwindow - Start of the maintenance window in canonical 24-hour
HH:MMformat. - timezone string
- IANA time zone used to interpret the maintenance window.
- days
Of List<String>Weeks - Days when the schedule may run.
- interval Integer
- Interval between schedule runs in weeks.
- maintenance
Window IntegerDuration - Duration of the maintenance window in minutes.
- start
Maintenance StringWindow - Start of the maintenance window in canonical 24-hour
HH:MMformat. - timezone String
- IANA time zone used to interpret the maintenance window.
- days
Of string[]Weeks - Days when the schedule may run.
- interval number
- Interval between schedule runs in weeks.
- maintenance
Window numberDuration - Duration of the maintenance window in minutes.
- start
Maintenance stringWindow - Start of the maintenance window in canonical 24-hour
HH:MMformat. - timezone string
- IANA time zone used to interpret the maintenance window.
- days_
of_ Sequence[str]weeks - Days when the schedule may run.
- interval int
- Interval between schedule runs in weeks.
- maintenance_
window_ intduration - Duration of the maintenance window in minutes.
- start_
maintenance_ strwindow - Start of the maintenance window in canonical 24-hour
HH:MMformat. - timezone str
- IANA time zone used to interpret the maintenance window.
- days
Of List<String>Weeks - Days when the schedule may run.
- interval Number
- Interval between schedule runs in weeks.
- maintenance
Window NumberDuration - Duration of the maintenance window in minutes.
- start
Maintenance StringWindow - Start of the maintenance window in canonical 24-hour
HH:MMformat. - timezone String
- IANA time zone used to interpret the maintenance window.
Package Details
- Repository
- Datadog pulumi/pulumi-datadog
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
datadogTerraform Provider.
Viewing docs for Datadog v5.12.0
published on Friday, Sep 25, 2026 by Pulumi
published on Friday, Sep 25, 2026 by Pulumi