1. Registry
  2. Packages
  3. Datadog Provider
  4. API Docs
  5. getStatusPageDegradationTemplates
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 list the degradation templates of a Datadog status page, for discovery or import. An empty result is not an error.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as datadog from "@pulumi/datadog";
    
    const all = datadog.getStatusPageDegradationTemplates({
        pageId: "5e9bd12c-6cde-4247-85fd-98045fbd9b8f",
    });
    
    import pulumi
    import pulumi_datadog as datadog
    
    all = datadog.get_status_page_degradation_templates(page_id="5e9bd12c-6cde-4247-85fd-98045fbd9b8f")
    
    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.GetStatusPageDegradationTemplates(ctx, &datadog.GetStatusPageDegradationTemplatesArgs{
    			PageId: "5e9bd12c-6cde-4247-85fd-98045fbd9b8f",
    		}, 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 all = Datadog.GetStatusPageDegradationTemplates.Invoke(new()
        {
            PageId = "5e9bd12c-6cde-4247-85fd-98045fbd9b8f",
        });
    
    });
    
    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.GetStatusPageDegradationTemplatesArgs;
    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 all = DatadogFunctions.getStatusPageDegradationTemplates(GetStatusPageDegradationTemplatesArgs.builder()
                .pageId("5e9bd12c-6cde-4247-85fd-98045fbd9b8f")
                .build());
    
        }
    }
    
    variables:
      all:
        fn::invoke:
          function: datadog:getStatusPageDegradationTemplates
          arguments:
            pageId: 5e9bd12c-6cde-4247-85fd-98045fbd9b8f
    
    pulumi {
      required_providers {
        datadog = {
          source = "pulumi/datadog"
        }
      }
    }
    
    data "datadog_getstatuspagedegradationtemplates" "all" {
      page_id = "5e9bd12c-6cde-4247-85fd-98045fbd9b8f"
    }
    

    Using getStatusPageDegradationTemplates

    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 getStatusPageDegradationTemplates(args: GetStatusPageDegradationTemplatesArgs, opts?: InvokeOptions): Promise<GetStatusPageDegradationTemplatesResult>
    function getStatusPageDegradationTemplatesOutput(args: GetStatusPageDegradationTemplatesOutputArgs, opts?: InvokeOutputOptions): Output<GetStatusPageDegradationTemplatesResult>
    def get_status_page_degradation_templates(name: Optional[str] = None,
                                              page_id: Optional[str] = None,
                                              opts: Optional[InvokeOptions] = None) -> GetStatusPageDegradationTemplatesResult
    def get_status_page_degradation_templates_output(name: pulumi.Input[Optional[str]] = None,
                                              page_id: pulumi.Input[Optional[str]] = None,
                                              opts: Optional[InvokeOutputOptions] = None) -> Output[GetStatusPageDegradationTemplatesResult]
    func GetStatusPageDegradationTemplates(ctx *Context, args *GetStatusPageDegradationTemplatesArgs, opts ...InvokeOption) (*GetStatusPageDegradationTemplatesResult, error)
    func GetStatusPageDegradationTemplatesOutput(ctx *Context, args *GetStatusPageDegradationTemplatesOutputArgs, opts ...InvokeOption) GetStatusPageDegradationTemplatesResultOutput

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

    public static class GetStatusPageDegradationTemplates 
    {
        public static Task<GetStatusPageDegradationTemplatesResult> InvokeAsync(GetStatusPageDegradationTemplatesArgs args, InvokeOptions? opts = null)
        public static Output<GetStatusPageDegradationTemplatesResult> Invoke(GetStatusPageDegradationTemplatesInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetStatusPageDegradationTemplatesResult> Invoke(GetStatusPageDegradationTemplatesInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetStatusPageDegradationTemplatesResult> getStatusPageDegradationTemplates(GetStatusPageDegradationTemplatesArgs args, InvokeOptions options)
    public static Output<GetStatusPageDegradationTemplatesResult> getStatusPageDegradationTemplates(GetStatusPageDegradationTemplatesArgs args, InvokeOptions options)
    public static Output<GetStatusPageDegradationTemplatesResult> getStatusPageDegradationTemplates(GetStatusPageDegradationTemplatesArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: datadog:index/getStatusPageDegradationTemplates:getStatusPageDegradationTemplates
      arguments:
        # arguments dictionary
    data "datadog_get_status_page_degradation_templates" "name" {
        # arguments
    }

    The following arguments are supported:

    PageId string
    The ID of the status page whose degradation templates to list.
    Name string
    Filter the results to templates with this exact name.
    PageId string
    The ID of the status page whose degradation templates to list.
    Name string
    Filter the results to templates with this exact name.
    page_id string
    The ID of the status page whose degradation templates to list.
    name string
    Filter the results to templates with this exact name.
    pageId String
    The ID of the status page whose degradation templates to list.
    name String
    Filter the results to templates with this exact name.
    pageId string
    The ID of the status page whose degradation templates to list.
    name string
    Filter the results to templates with this exact name.
    page_id str
    The ID of the status page whose degradation templates to list.
    name str
    Filter the results to templates with this exact name.
    pageId String
    The ID of the status page whose degradation templates to list.
    name String
    Filter the results to templates with this exact name.

    getStatusPageDegradationTemplates Result

    The following output properties are available:

    DegradationTemplates List<GetStatusPageDegradationTemplatesDegradationTemplate>
    The list of matching degradation templates.
    Id string
    The ID of this resource.
    PageId string
    The ID of the status page whose degradation templates to list.
    Name string
    Filter the results to templates with this exact name.
    DegradationTemplates []GetStatusPageDegradationTemplatesDegradationTemplate
    The list of matching degradation templates.
    Id string
    The ID of this resource.
    PageId string
    The ID of the status page whose degradation templates to list.
    Name string
    Filter the results to templates with this exact name.
    degradation_templates list(object)
    The list of matching degradation templates.
    id string
    The ID of this resource.
    page_id string
    The ID of the status page whose degradation templates to list.
    name string
    Filter the results to templates with this exact name.
    degradationTemplates List<GetStatusPageDegradationTemplatesDegradationTemplate>
    The list of matching degradation templates.
    id String
    The ID of this resource.
    pageId String
    The ID of the status page whose degradation templates to list.
    name String
    Filter the results to templates with this exact name.
    degradationTemplates GetStatusPageDegradationTemplatesDegradationTemplate[]
    The list of matching degradation templates.
    id string
    The ID of this resource.
    pageId string
    The ID of the status page whose degradation templates to list.
    name string
    Filter the results to templates with this exact name.
    degradation_templates Sequence[GetStatusPageDegradationTemplatesDegradationTemplate]
    The list of matching degradation templates.
    id str
    The ID of this resource.
    page_id str
    The ID of the status page whose degradation templates to list.
    name str
    Filter the results to templates with this exact name.
    degradationTemplates List<Property Map>
    The list of matching degradation templates.
    id String
    The ID of this resource.
    pageId String
    The ID of the status page whose degradation templates to list.
    name String
    Filter the results to templates with this exact name.

    Supporting Types

    GetStatusPageDegradationTemplatesDegradationTemplate

    DegradationTitle string
    Id string
    Name string
    DegradationTitle string
    Id string
    Name string
    degradation_title string
    id string
    name string
    degradationTitle String
    id String
    name String
    degradationTitle string
    id string
    name string
    degradationTitle String
    id String
    name String

    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