1. Registry
  2. Packages
  3. Datadog Provider
  4. API Docs
  5. getStatusPageComponents
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 components and groups 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.getStatusPageComponents({
        pageId: "5e9bd12c-6cde-4247-85fd-98045fbd9b8f",
    });
    
    import pulumi
    import pulumi_datadog as datadog
    
    all = datadog.get_status_page_components(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.GetStatusPageComponents(ctx, &datadog.GetStatusPageComponentsArgs{
    			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.GetStatusPageComponents.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.GetStatusPageComponentsArgs;
    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.getStatusPageComponents(GetStatusPageComponentsArgs.builder()
                .pageId("5e9bd12c-6cde-4247-85fd-98045fbd9b8f")
                .build());
    
        }
    }
    
    variables:
      all:
        fn::invoke:
          function: datadog:getStatusPageComponents
          arguments:
            pageId: 5e9bd12c-6cde-4247-85fd-98045fbd9b8f
    
    pulumi {
      required_providers {
        datadog = {
          source = "pulumi/datadog"
        }
      }
    }
    
    data "datadog_getstatuspagecomponents" "all" {
      page_id = "5e9bd12c-6cde-4247-85fd-98045fbd9b8f"
    }
    

    Using getStatusPageComponents

    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 getStatusPageComponents(args: GetStatusPageComponentsArgs, opts?: InvokeOptions): Promise<GetStatusPageComponentsResult>
    function getStatusPageComponentsOutput(args: GetStatusPageComponentsOutputArgs, opts?: InvokeOutputOptions): Output<GetStatusPageComponentsResult>
    def get_status_page_components(name: Optional[str] = None,
                                   page_id: Optional[str] = None,
                                   type: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetStatusPageComponentsResult
    def get_status_page_components_output(name: pulumi.Input[Optional[str]] = None,
                                   page_id: pulumi.Input[Optional[str]] = None,
                                   type: pulumi.Input[Optional[str]] = None,
                                   opts: Optional[InvokeOutputOptions] = None) -> Output[GetStatusPageComponentsResult]
    func GetStatusPageComponents(ctx *Context, args *GetStatusPageComponentsArgs, opts ...InvokeOption) (*GetStatusPageComponentsResult, error)
    func GetStatusPageComponentsOutput(ctx *Context, args *GetStatusPageComponentsOutputArgs, opts ...InvokeOption) GetStatusPageComponentsResultOutput

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

    public static class GetStatusPageComponents 
    {
        public static Task<GetStatusPageComponentsResult> InvokeAsync(GetStatusPageComponentsArgs args, InvokeOptions? opts = null)
        public static Output<GetStatusPageComponentsResult> Invoke(GetStatusPageComponentsInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetStatusPageComponentsResult> Invoke(GetStatusPageComponentsInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetStatusPageComponentsResult> getStatusPageComponents(GetStatusPageComponentsArgs args, InvokeOptions options)
    public static Output<GetStatusPageComponentsResult> getStatusPageComponents(GetStatusPageComponentsArgs args, InvokeOptions options)
    public static Output<GetStatusPageComponentsResult> getStatusPageComponents(GetStatusPageComponentsArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: datadog:index/getStatusPageComponents:getStatusPageComponents
      arguments:
        # arguments dictionary
    data "datadog_get_status_page_components" "name" {
        # arguments
    }

    The following arguments are supported:

    PageId string
    The ID of the status page whose components to list.
    Name string
    Filter the results to components with this exact name.
    Type string
    Filter the results by type (component or group).
    PageId string
    The ID of the status page whose components to list.
    Name string
    Filter the results to components with this exact name.
    Type string
    Filter the results by type (component or group).
    page_id string
    The ID of the status page whose components to list.
    name string
    Filter the results to components with this exact name.
    type string
    Filter the results by type (component or group).
    pageId String
    The ID of the status page whose components to list.
    name String
    Filter the results to components with this exact name.
    type String
    Filter the results by type (component or group).
    pageId string
    The ID of the status page whose components to list.
    name string
    Filter the results to components with this exact name.
    type string
    Filter the results by type (component or group).
    page_id str
    The ID of the status page whose components to list.
    name str
    Filter the results to components with this exact name.
    type str
    Filter the results by type (component or group).
    pageId String
    The ID of the status page whose components to list.
    name String
    Filter the results to components with this exact name.
    type String
    Filter the results by type (component or group).

    getStatusPageComponents Result

    The following output properties are available:

    Components List<GetStatusPageComponentsComponent>
    The list of matching components and groups.
    Id string
    The ID of this resource.
    PageId string
    The ID of the status page whose components to list.
    Name string
    Filter the results to components with this exact name.
    Type string
    Filter the results by type (component or group).
    Components []GetStatusPageComponentsComponent
    The list of matching components and groups.
    Id string
    The ID of this resource.
    PageId string
    The ID of the status page whose components to list.
    Name string
    Filter the results to components with this exact name.
    Type string
    Filter the results by type (component or group).
    components list(object)
    The list of matching components and groups.
    id string
    The ID of this resource.
    page_id string
    The ID of the status page whose components to list.
    name string
    Filter the results to components with this exact name.
    type string
    Filter the results by type (component or group).
    components List<GetStatusPageComponentsComponent>
    The list of matching components and groups.
    id String
    The ID of this resource.
    pageId String
    The ID of the status page whose components to list.
    name String
    Filter the results to components with this exact name.
    type String
    Filter the results by type (component or group).
    components GetStatusPageComponentsComponent[]
    The list of matching components and groups.
    id string
    The ID of this resource.
    pageId string
    The ID of the status page whose components to list.
    name string
    Filter the results to components with this exact name.
    type string
    Filter the results by type (component or group).
    components Sequence[GetStatusPageComponentsComponent]
    The list of matching components and groups.
    id str
    The ID of this resource.
    page_id str
    The ID of the status page whose components to list.
    name str
    Filter the results to components with this exact name.
    type str
    Filter the results by type (component or group).
    components List<Property Map>
    The list of matching components and groups.
    id String
    The ID of this resource.
    pageId String
    The ID of the status page whose components to list.
    name String
    Filter the results to components with this exact name.
    type String
    Filter the results by type (component or group).

    Supporting Types

    GetStatusPageComponentsComponent

    GroupId string
    Id string
    Name string
    Position int
    Type string
    GroupId string
    Id string
    Name string
    Position int
    Type string
    group_id string
    id string
    name string
    position number
    type string
    groupId String
    id String
    name String
    position Integer
    type String
    groupId string
    id string
    name string
    position number
    type string
    group_id str
    id str
    name str
    position int
    type str
    groupId String
    id String
    name String
    position Number
    type 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