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
Retrieves a Fleet Automation Agent upgrade schedule by ID. Reading schedules requires an application key with the hostsRead permission.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as datadog from "@pulumi/datadog";
// Reading Fleet Automation schedules requires the hosts_read permission.
const nonproduction = datadog.getFleetSchedule({
id: "<schedule_id>",
});
import pulumi
import pulumi_datadog as datadog
# Reading Fleet Automation schedules requires the hosts_read permission.
nonproduction = datadog.get_fleet_schedule(id="<schedule_id>")
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 {
// Reading Fleet Automation schedules requires the hosts_read permission.
_, err := datadog.GetFleetSchedule(ctx, &datadog.LookupFleetScheduleArgs{
Id: "<schedule_id>",
}, 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(() =>
{
// Reading Fleet Automation schedules requires the hosts_read permission.
var nonproduction = Datadog.GetFleetSchedule.Invoke(new()
{
Id = "<schedule_id>",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.datadog.DatadogFunctions;
import com.pulumi.datadog.inputs.GetFleetScheduleArgs;
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) {
// Reading Fleet Automation schedules requires the hosts_read permission.
final var nonproduction = DatadogFunctions.getFleetSchedule(GetFleetScheduleArgs.builder()
.id("<schedule_id>")
.build());
}
}
variables:
# Reading Fleet Automation schedules requires the hosts_read permission.
nonproduction:
fn::invoke:
function: datadog:getFleetSchedule
arguments:
id: <schedule_id>
pulumi {
required_providers {
datadog = {
source = "pulumi/datadog"
}
}
}
data "datadog_getfleetschedule" "nonproduction" {
id = "<schedule_id>"
}
# Reading Fleet Automation schedules requires the hosts_read permission.
Using getFleetSchedule
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 getFleetSchedule(args: GetFleetScheduleArgs, opts?: InvokeOptions): Promise<GetFleetScheduleResult>
function getFleetScheduleOutput(args: GetFleetScheduleOutputArgs, opts?: InvokeOutputOptions): Output<GetFleetScheduleResult>def get_fleet_schedule(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetFleetScheduleResult
def get_fleet_schedule_output(id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetFleetScheduleResult]func LookupFleetSchedule(ctx *Context, args *LookupFleetScheduleArgs, opts ...InvokeOption) (*LookupFleetScheduleResult, error)
func LookupFleetScheduleOutput(ctx *Context, args *LookupFleetScheduleOutputArgs, opts ...InvokeOption) LookupFleetScheduleResultOutput> Note: This function is named LookupFleetSchedule in the Go SDK.
public static class GetFleetSchedule
{
public static Task<GetFleetScheduleResult> InvokeAsync(GetFleetScheduleArgs args, InvokeOptions? opts = null)
public static Output<GetFleetScheduleResult> Invoke(GetFleetScheduleInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetFleetScheduleResult> Invoke(GetFleetScheduleInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetFleetScheduleResult> getFleetSchedule(GetFleetScheduleArgs args, InvokeOptions options)
public static Output<GetFleetScheduleResult> getFleetSchedule(GetFleetScheduleArgs args, InvokeOptions options)
public static Output<GetFleetScheduleResult> getFleetSchedule(GetFleetScheduleArgs args, InvokeOutputOptions options)
fn::invoke:
function: datadog:index/getFleetSchedule:getFleetSchedule
arguments:
# arguments dictionarydata "datadog_get_fleet_schedule" "name" {
# arguments
}The following arguments are supported:
- Id string
- Unique identifier of the Fleet Automation schedule.
- Id string
- Unique identifier of the Fleet Automation schedule.
- id string
- Unique identifier of the Fleet Automation schedule.
- id String
- Unique identifier of the Fleet Automation schedule.
- id string
- Unique identifier of the Fleet Automation schedule.
- id str
- Unique identifier of the Fleet Automation schedule.
- id String
- Unique identifier of the Fleet Automation schedule.
getFleetSchedule Result
The following output properties are available:
- 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 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 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 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 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 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 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 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 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 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 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.
Supporting Types
GetFleetScheduleNotificationRule
- 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.
GetFleetScheduleRule
- 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