1. Registry
  2. Packages
  3. Datadog Provider
  4. API Docs
  5. getStatusPageMaintenanceTemplate
Viewing docs for Datadog v5.11.0
published on Tuesday, Sep 15, 2026 by Pulumi
datadog logo
Viewing docs for Datadog v5.11.0
published on Tuesday, Sep 15, 2026 by Pulumi

    Use this data source to retrieve information about an existing Datadog status page maintenance template.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as datadog from "@pulumi/datadog";
    
    const routine = datadog.getStatusPageMaintenanceTemplate({
        pageId: "5e9bd12c-6cde-4247-85fd-98045fbd9b8f",
        id: "8fd8c3ef-07b1-4441-b52a-7e42d8474d5c",
    });
    
    import pulumi
    import pulumi_datadog as datadog
    
    routine = datadog.get_status_page_maintenance_template(page_id="5e9bd12c-6cde-4247-85fd-98045fbd9b8f",
        id="8fd8c3ef-07b1-4441-b52a-7e42d8474d5c")
    
    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 {
    		_, err := datadog.GetStatusPageMaintenanceTemplate(ctx, &datadog.LookupStatusPageMaintenanceTemplateArgs{
    			PageId: "5e9bd12c-6cde-4247-85fd-98045fbd9b8f",
    			Id:     "8fd8c3ef-07b1-4441-b52a-7e42d8474d5c",
    		}, 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(() => 
    {
        var routine = Datadog.GetStatusPageMaintenanceTemplate.Invoke(new()
        {
            PageId = "5e9bd12c-6cde-4247-85fd-98045fbd9b8f",
            Id = "8fd8c3ef-07b1-4441-b52a-7e42d8474d5c",
        });
    
    });
    
    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.GetStatusPageMaintenanceTemplateArgs;
    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) {
            final var routine = DatadogFunctions.getStatusPageMaintenanceTemplate(GetStatusPageMaintenanceTemplateArgs.builder()
                .pageId("5e9bd12c-6cde-4247-85fd-98045fbd9b8f")
                .id("8fd8c3ef-07b1-4441-b52a-7e42d8474d5c")
                .build());
    
        }
    }
    
    variables:
      routine:
        fn::invoke:
          function: datadog:getStatusPageMaintenanceTemplate
          arguments:
            pageId: 5e9bd12c-6cde-4247-85fd-98045fbd9b8f
            id: 8fd8c3ef-07b1-4441-b52a-7e42d8474d5c
    
    pulumi {
      required_providers {
        datadog = {
          source = "pulumi/datadog"
        }
      }
    }
    
    data "datadog_getstatuspagemaintenancetemplate" "routine" {
      page_id = "5e9bd12c-6cde-4247-85fd-98045fbd9b8f"
      id      = "8fd8c3ef-07b1-4441-b52a-7e42d8474d5c"
    }
    

    Using getStatusPageMaintenanceTemplate

    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 getStatusPageMaintenanceTemplate(args: GetStatusPageMaintenanceTemplateArgs, opts?: InvokeOptions): Promise<GetStatusPageMaintenanceTemplateResult>
    function getStatusPageMaintenanceTemplateOutput(args: GetStatusPageMaintenanceTemplateOutputArgs, opts?: InvokeOutputOptions): Output<GetStatusPageMaintenanceTemplateResult>
    def get_status_page_maintenance_template(id: Optional[str] = None,
                                             page_id: Optional[str] = None,
                                             opts: Optional[InvokeOptions] = None) -> GetStatusPageMaintenanceTemplateResult
    def get_status_page_maintenance_template_output(id: pulumi.Input[Optional[str]] = None,
                                             page_id: pulumi.Input[Optional[str]] = None,
                                             opts: Optional[InvokeOutputOptions] = None) -> Output[GetStatusPageMaintenanceTemplateResult]
    func LookupStatusPageMaintenanceTemplate(ctx *Context, args *LookupStatusPageMaintenanceTemplateArgs, opts ...InvokeOption) (*LookupStatusPageMaintenanceTemplateResult, error)
    func LookupStatusPageMaintenanceTemplateOutput(ctx *Context, args *LookupStatusPageMaintenanceTemplateOutputArgs, opts ...InvokeOption) LookupStatusPageMaintenanceTemplateResultOutput

    > Note: This function is named LookupStatusPageMaintenanceTemplate in the Go SDK.

    public static class GetStatusPageMaintenanceTemplate 
    {
        public static Task<GetStatusPageMaintenanceTemplateResult> InvokeAsync(GetStatusPageMaintenanceTemplateArgs args, InvokeOptions? opts = null)
        public static Output<GetStatusPageMaintenanceTemplateResult> Invoke(GetStatusPageMaintenanceTemplateInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetStatusPageMaintenanceTemplateResult> Invoke(GetStatusPageMaintenanceTemplateInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetStatusPageMaintenanceTemplateResult> getStatusPageMaintenanceTemplate(GetStatusPageMaintenanceTemplateArgs args, InvokeOptions options)
    public static Output<GetStatusPageMaintenanceTemplateResult> getStatusPageMaintenanceTemplate(GetStatusPageMaintenanceTemplateArgs args, InvokeOptions options)
    public static Output<GetStatusPageMaintenanceTemplateResult> getStatusPageMaintenanceTemplate(GetStatusPageMaintenanceTemplateArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: datadog:index/getStatusPageMaintenanceTemplate:getStatusPageMaintenanceTemplate
      arguments:
        # arguments dictionary
    data "datadog_get_status_page_maintenance_template" "name" {
        # arguments
    }

    The following arguments are supported:

    Id string
    The ID of the maintenance template.
    PageId string
    The ID of the status page this maintenance template belongs to.
    Id string
    The ID of the maintenance template.
    PageId string
    The ID of the status page this maintenance template belongs to.
    id string
    The ID of the maintenance template.
    page_id string
    The ID of the status page this maintenance template belongs to.
    id String
    The ID of the maintenance template.
    pageId String
    The ID of the status page this maintenance template belongs to.
    id string
    The ID of the maintenance template.
    pageId string
    The ID of the status page this maintenance template belongs to.
    id str
    The ID of the maintenance template.
    page_id str
    The ID of the status page this maintenance template belongs to.
    id String
    The ID of the maintenance template.
    pageId String
    The ID of the status page this maintenance template belongs to.

    getStatusPageMaintenanceTemplate Result

    The following output properties are available:

    CompletedDescription string
    The pre-filled description shown once the maintenance is completed.
    ComponentIds List<string>
    The IDs of the components affected by a maintenance created from this template.
    CreatedAt string
    Timestamp when the maintenance template was created.
    Id string
    The ID of the maintenance template.
    InProgressDescription string
    The pre-filled description shown while the maintenance is in progress.
    MaintenanceTitle string
    The title used for a maintenance created from this template.
    ModifiedAt string
    Timestamp of when the maintenance template was last modified.
    Name string
    The name of the maintenance template.
    PageId string
    The ID of the status page this maintenance template belongs to.
    ScheduledDescription string
    The pre-filled description shown while the maintenance is scheduled.
    CompletedDescription string
    The pre-filled description shown once the maintenance is completed.
    ComponentIds []string
    The IDs of the components affected by a maintenance created from this template.
    CreatedAt string
    Timestamp when the maintenance template was created.
    Id string
    The ID of the maintenance template.
    InProgressDescription string
    The pre-filled description shown while the maintenance is in progress.
    MaintenanceTitle string
    The title used for a maintenance created from this template.
    ModifiedAt string
    Timestamp of when the maintenance template was last modified.
    Name string
    The name of the maintenance template.
    PageId string
    The ID of the status page this maintenance template belongs to.
    ScheduledDescription string
    The pre-filled description shown while the maintenance is scheduled.
    completed_description string
    The pre-filled description shown once the maintenance is completed.
    component_ids list(string)
    The IDs of the components affected by a maintenance created from this template.
    created_at string
    Timestamp when the maintenance template was created.
    id string
    The ID of the maintenance template.
    in_progress_description string
    The pre-filled description shown while the maintenance is in progress.
    maintenance_title string
    The title used for a maintenance created from this template.
    modified_at string
    Timestamp of when the maintenance template was last modified.
    name string
    The name of the maintenance template.
    page_id string
    The ID of the status page this maintenance template belongs to.
    scheduled_description string
    The pre-filled description shown while the maintenance is scheduled.
    completedDescription String
    The pre-filled description shown once the maintenance is completed.
    componentIds List<String>
    The IDs of the components affected by a maintenance created from this template.
    createdAt String
    Timestamp when the maintenance template was created.
    id String
    The ID of the maintenance template.
    inProgressDescription String
    The pre-filled description shown while the maintenance is in progress.
    maintenanceTitle String
    The title used for a maintenance created from this template.
    modifiedAt String
    Timestamp of when the maintenance template was last modified.
    name String
    The name of the maintenance template.
    pageId String
    The ID of the status page this maintenance template belongs to.
    scheduledDescription String
    The pre-filled description shown while the maintenance is scheduled.
    completedDescription string
    The pre-filled description shown once the maintenance is completed.
    componentIds string[]
    The IDs of the components affected by a maintenance created from this template.
    createdAt string
    Timestamp when the maintenance template was created.
    id string
    The ID of the maintenance template.
    inProgressDescription string
    The pre-filled description shown while the maintenance is in progress.
    maintenanceTitle string
    The title used for a maintenance created from this template.
    modifiedAt string
    Timestamp of when the maintenance template was last modified.
    name string
    The name of the maintenance template.
    pageId string
    The ID of the status page this maintenance template belongs to.
    scheduledDescription string
    The pre-filled description shown while the maintenance is scheduled.
    completed_description str
    The pre-filled description shown once the maintenance is completed.
    component_ids Sequence[str]
    The IDs of the components affected by a maintenance created from this template.
    created_at str
    Timestamp when the maintenance template was created.
    id str
    The ID of the maintenance template.
    in_progress_description str
    The pre-filled description shown while the maintenance is in progress.
    maintenance_title str
    The title used for a maintenance created from this template.
    modified_at str
    Timestamp of when the maintenance template was last modified.
    name str
    The name of the maintenance template.
    page_id str
    The ID of the status page this maintenance template belongs to.
    scheduled_description str
    The pre-filled description shown while the maintenance is scheduled.
    completedDescription String
    The pre-filled description shown once the maintenance is completed.
    componentIds List<String>
    The IDs of the components affected by a maintenance created from this template.
    createdAt String
    Timestamp when the maintenance template was created.
    id String
    The ID of the maintenance template.
    inProgressDescription String
    The pre-filled description shown while the maintenance is in progress.
    maintenanceTitle String
    The title used for a maintenance created from this template.
    modifiedAt String
    Timestamp of when the maintenance template was last modified.
    name String
    The name of the maintenance template.
    pageId String
    The ID of the status page this maintenance template belongs to.
    scheduledDescription String
    The pre-filled description shown while the maintenance is scheduled.

    Package Details

    Repository
    Datadog pulumi/pulumi-datadog
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the datadog Terraform Provider.
    datadog logo
    Viewing docs for Datadog v5.11.0
    published on Tuesday, Sep 15, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial