1. Registry
  2. Packages
  3. Datadog Provider
  4. API Docs
  5. getStatusPageDegradationTemplate
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 degradation template.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as datadog from "@pulumi/datadog";
    
    const outage = datadog.getStatusPageDegradationTemplate({
        pageId: "5e9bd12c-6cde-4247-85fd-98045fbd9b8f",
        id: "8fd8c3ef-07b1-4441-b52a-7e42d8474d5c",
    });
    
    import pulumi
    import pulumi_datadog as datadog
    
    outage = datadog.get_status_page_degradation_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.GetStatusPageDegradationTemplate(ctx, &datadog.LookupStatusPageDegradationTemplateArgs{
    			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 outage = Datadog.GetStatusPageDegradationTemplate.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.GetStatusPageDegradationTemplateArgs;
    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 outage = DatadogFunctions.getStatusPageDegradationTemplate(GetStatusPageDegradationTemplateArgs.builder()
                .pageId("5e9bd12c-6cde-4247-85fd-98045fbd9b8f")
                .id("8fd8c3ef-07b1-4441-b52a-7e42d8474d5c")
                .build());
    
        }
    }
    
    variables:
      outage:
        fn::invoke:
          function: datadog:getStatusPageDegradationTemplate
          arguments:
            pageId: 5e9bd12c-6cde-4247-85fd-98045fbd9b8f
            id: 8fd8c3ef-07b1-4441-b52a-7e42d8474d5c
    
    pulumi {
      required_providers {
        datadog = {
          source = "pulumi/datadog"
        }
      }
    }
    
    data "datadog_getstatuspagedegradationtemplate" "outage" {
      page_id = "5e9bd12c-6cde-4247-85fd-98045fbd9b8f"
      id      = "8fd8c3ef-07b1-4441-b52a-7e42d8474d5c"
    }
    

    Using getStatusPageDegradationTemplate

    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 getStatusPageDegradationTemplate(args: GetStatusPageDegradationTemplateArgs, opts?: InvokeOptions): Promise<GetStatusPageDegradationTemplateResult>
    function getStatusPageDegradationTemplateOutput(args: GetStatusPageDegradationTemplateOutputArgs, opts?: InvokeOutputOptions): Output<GetStatusPageDegradationTemplateResult>
    def get_status_page_degradation_template(id: Optional[str] = None,
                                             page_id: Optional[str] = None,
                                             opts: Optional[InvokeOptions] = None) -> GetStatusPageDegradationTemplateResult
    def get_status_page_degradation_template_output(id: pulumi.Input[Optional[str]] = None,
                                             page_id: pulumi.Input[Optional[str]] = None,
                                             opts: Optional[InvokeOutputOptions] = None) -> Output[GetStatusPageDegradationTemplateResult]
    func LookupStatusPageDegradationTemplate(ctx *Context, args *LookupStatusPageDegradationTemplateArgs, opts ...InvokeOption) (*LookupStatusPageDegradationTemplateResult, error)
    func LookupStatusPageDegradationTemplateOutput(ctx *Context, args *LookupStatusPageDegradationTemplateOutputArgs, opts ...InvokeOption) LookupStatusPageDegradationTemplateResultOutput

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

    public static class GetStatusPageDegradationTemplate 
    {
        public static Task<GetStatusPageDegradationTemplateResult> InvokeAsync(GetStatusPageDegradationTemplateArgs args, InvokeOptions? opts = null)
        public static Output<GetStatusPageDegradationTemplateResult> Invoke(GetStatusPageDegradationTemplateInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetStatusPageDegradationTemplateResult> Invoke(GetStatusPageDegradationTemplateInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetStatusPageDegradationTemplateResult> getStatusPageDegradationTemplate(GetStatusPageDegradationTemplateArgs args, InvokeOptions options)
    public static Output<GetStatusPageDegradationTemplateResult> getStatusPageDegradationTemplate(GetStatusPageDegradationTemplateArgs args, InvokeOptions options)
    public static Output<GetStatusPageDegradationTemplateResult> getStatusPageDegradationTemplate(GetStatusPageDegradationTemplateArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: datadog:index/getStatusPageDegradationTemplate:getStatusPageDegradationTemplate
      arguments:
        # arguments dictionary
    data "datadog_get_status_page_degradation_template" "name" {
        # arguments
    }

    The following arguments are supported:

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

    getStatusPageDegradationTemplate Result

    The following output properties are available:

    ComponentsAffecteds List<GetStatusPageDegradationTemplateComponentsAffected>
    The components affected by a degradation created from this template.
    CreatedAt string
    Timestamp when the degradation template was created.
    DegradationTitle string
    The title used for a degradation created from this template.
    Id string
    The ID of the degradation template.
    ModifiedAt string
    Timestamp when the degradation template was last modified.
    Name string
    The name of the degradation template.
    PageId string
    The ID of the status page this degradation template belongs to.
    Updates List<GetStatusPageDegradationTemplateUpdate>
    The pre-filled updates for a degradation created from this template.
    ComponentsAffecteds []GetStatusPageDegradationTemplateComponentsAffected
    The components affected by a degradation created from this template.
    CreatedAt string
    Timestamp when the degradation template was created.
    DegradationTitle string
    The title used for a degradation created from this template.
    Id string
    The ID of the degradation template.
    ModifiedAt string
    Timestamp when the degradation template was last modified.
    Name string
    The name of the degradation template.
    PageId string
    The ID of the status page this degradation template belongs to.
    Updates []GetStatusPageDegradationTemplateUpdate
    The pre-filled updates for a degradation created from this template.
    components_affecteds list(object)
    The components affected by a degradation created from this template.
    created_at string
    Timestamp when the degradation template was created.
    degradation_title string
    The title used for a degradation created from this template.
    id string
    The ID of the degradation template.
    modified_at string
    Timestamp when the degradation template was last modified.
    name string
    The name of the degradation template.
    page_id string
    The ID of the status page this degradation template belongs to.
    updates list(object)
    The pre-filled updates for a degradation created from this template.
    componentsAffecteds List<GetStatusPageDegradationTemplateComponentsAffected>
    The components affected by a degradation created from this template.
    createdAt String
    Timestamp when the degradation template was created.
    degradationTitle String
    The title used for a degradation created from this template.
    id String
    The ID of the degradation template.
    modifiedAt String
    Timestamp when the degradation template was last modified.
    name String
    The name of the degradation template.
    pageId String
    The ID of the status page this degradation template belongs to.
    updates List<GetStatusPageDegradationTemplateUpdate>
    The pre-filled updates for a degradation created from this template.
    componentsAffecteds GetStatusPageDegradationTemplateComponentsAffected[]
    The components affected by a degradation created from this template.
    createdAt string
    Timestamp when the degradation template was created.
    degradationTitle string
    The title used for a degradation created from this template.
    id string
    The ID of the degradation template.
    modifiedAt string
    Timestamp when the degradation template was last modified.
    name string
    The name of the degradation template.
    pageId string
    The ID of the status page this degradation template belongs to.
    updates GetStatusPageDegradationTemplateUpdate[]
    The pre-filled updates for a degradation created from this template.
    components_affecteds Sequence[GetStatusPageDegradationTemplateComponentsAffected]
    The components affected by a degradation created from this template.
    created_at str
    Timestamp when the degradation template was created.
    degradation_title str
    The title used for a degradation created from this template.
    id str
    The ID of the degradation template.
    modified_at str
    Timestamp when the degradation template was last modified.
    name str
    The name of the degradation template.
    page_id str
    The ID of the status page this degradation template belongs to.
    updates Sequence[GetStatusPageDegradationTemplateUpdate]
    The pre-filled updates for a degradation created from this template.
    componentsAffecteds List<Property Map>
    The components affected by a degradation created from this template.
    createdAt String
    Timestamp when the degradation template was created.
    degradationTitle String
    The title used for a degradation created from this template.
    id String
    The ID of the degradation template.
    modifiedAt String
    Timestamp when the degradation template was last modified.
    name String
    The name of the degradation template.
    pageId String
    The ID of the status page this degradation template belongs to.
    updates List<Property Map>
    The pre-filled updates for a degradation created from this template.

    Supporting Types

    GetStatusPageDegradationTemplateComponentsAffected

    Id string
    The ID of the affected component.
    Name string
    The name of the affected component.
    Status string
    The pre-filled status for this component.
    Id string
    The ID of the affected component.
    Name string
    The name of the affected component.
    Status string
    The pre-filled status for this component.
    id string
    The ID of the affected component.
    name string
    The name of the affected component.
    status string
    The pre-filled status for this component.
    id String
    The ID of the affected component.
    name String
    The name of the affected component.
    status String
    The pre-filled status for this component.
    id string
    The ID of the affected component.
    name string
    The name of the affected component.
    status string
    The pre-filled status for this component.
    id str
    The ID of the affected component.
    name str
    The name of the affected component.
    status str
    The pre-filled status for this component.
    id String
    The ID of the affected component.
    name String
    The name of the affected component.
    status String
    The pre-filled status for this component.

    GetStatusPageDegradationTemplateUpdate

    Message string
    The pre-filled message for this update.
    Status string
    The pre-filled degradation status for this update.
    Message string
    The pre-filled message for this update.
    Status string
    The pre-filled degradation status for this update.
    message string
    The pre-filled message for this update.
    status string
    The pre-filled degradation status for this update.
    message String
    The pre-filled message for this update.
    status String
    The pre-filled degradation status for this update.
    message string
    The pre-filled message for this update.
    status string
    The pre-filled degradation status for this update.
    message str
    The pre-filled message for this update.
    status str
    The pre-filled degradation status for this update.
    message String
    The pre-filled message for this update.
    status String
    The pre-filled degradation status for this update.

    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