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

    Example Usage

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

    Using getStatusPageComponent

    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 getStatusPageComponent(args: GetStatusPageComponentArgs, opts?: InvokeOptions): Promise<GetStatusPageComponentResult>
    function getStatusPageComponentOutput(args: GetStatusPageComponentOutputArgs, opts?: InvokeOutputOptions): Output<GetStatusPageComponentResult>
    def get_status_page_component(id: Optional[str] = None,
                                  page_id: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetStatusPageComponentResult
    def get_status_page_component_output(id: pulumi.Input[Optional[str]] = None,
                                  page_id: pulumi.Input[Optional[str]] = None,
                                  opts: Optional[InvokeOutputOptions] = None) -> Output[GetStatusPageComponentResult]
    func LookupStatusPageComponent(ctx *Context, args *LookupStatusPageComponentArgs, opts ...InvokeOption) (*LookupStatusPageComponentResult, error)
    func LookupStatusPageComponentOutput(ctx *Context, args *LookupStatusPageComponentOutputArgs, opts ...InvokeOption) LookupStatusPageComponentResultOutput

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

    public static class GetStatusPageComponent 
    {
        public static Task<GetStatusPageComponentResult> InvokeAsync(GetStatusPageComponentArgs args, InvokeOptions? opts = null)
        public static Output<GetStatusPageComponentResult> Invoke(GetStatusPageComponentInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetStatusPageComponentResult> Invoke(GetStatusPageComponentInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetStatusPageComponentResult> getStatusPageComponent(GetStatusPageComponentArgs args, InvokeOptions options)
    public static Output<GetStatusPageComponentResult> getStatusPageComponent(GetStatusPageComponentArgs args, InvokeOptions options)
    public static Output<GetStatusPageComponentResult> getStatusPageComponent(GetStatusPageComponentArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: datadog:index/getStatusPageComponent:getStatusPageComponent
      arguments:
        # arguments dictionary
    data "datadog_get_status_page_component" "name" {
        # arguments
    }

    The following arguments are supported:

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

    getStatusPageComponent Result

    The following output properties are available:

    Components List<GetStatusPageComponentComponent>
    The sub-components of a component of type group.
    CreatedAt string
    Timestamp when the component was created.
    Id string
    The ID of the component.
    ModifiedAt string
    Timestamp when the component was last modified.
    Name string
    The name of the component.
    PageId string
    The ID of the status page this component belongs to.
    Position int
    The position of the component on the status page.
    Status string
    The current status of the component.
    Type string
    The type of the component.
    Components []GetStatusPageComponentComponent
    The sub-components of a component of type group.
    CreatedAt string
    Timestamp when the component was created.
    Id string
    The ID of the component.
    ModifiedAt string
    Timestamp when the component was last modified.
    Name string
    The name of the component.
    PageId string
    The ID of the status page this component belongs to.
    Position int
    The position of the component on the status page.
    Status string
    The current status of the component.
    Type string
    The type of the component.
    components list(object)
    The sub-components of a component of type group.
    created_at string
    Timestamp when the component was created.
    id string
    The ID of the component.
    modified_at string
    Timestamp when the component was last modified.
    name string
    The name of the component.
    page_id string
    The ID of the status page this component belongs to.
    position number
    The position of the component on the status page.
    status string
    The current status of the component.
    type string
    The type of the component.
    components List<GetStatusPageComponentComponent>
    The sub-components of a component of type group.
    createdAt String
    Timestamp when the component was created.
    id String
    The ID of the component.
    modifiedAt String
    Timestamp when the component was last modified.
    name String
    The name of the component.
    pageId String
    The ID of the status page this component belongs to.
    position Integer
    The position of the component on the status page.
    status String
    The current status of the component.
    type String
    The type of the component.
    components GetStatusPageComponentComponent[]
    The sub-components of a component of type group.
    createdAt string
    Timestamp when the component was created.
    id string
    The ID of the component.
    modifiedAt string
    Timestamp when the component was last modified.
    name string
    The name of the component.
    pageId string
    The ID of the status page this component belongs to.
    position number
    The position of the component on the status page.
    status string
    The current status of the component.
    type string
    The type of the component.
    components Sequence[GetStatusPageComponentComponent]
    The sub-components of a component of type group.
    created_at str
    Timestamp when the component was created.
    id str
    The ID of the component.
    modified_at str
    Timestamp when the component was last modified.
    name str
    The name of the component.
    page_id str
    The ID of the status page this component belongs to.
    position int
    The position of the component on the status page.
    status str
    The current status of the component.
    type str
    The type of the component.
    components List<Property Map>
    The sub-components of a component of type group.
    createdAt String
    Timestamp when the component was created.
    id String
    The ID of the component.
    modifiedAt String
    Timestamp when the component was last modified.
    name String
    The name of the component.
    pageId String
    The ID of the status page this component belongs to.
    position Number
    The position of the component on the status page.
    status String
    The current status of the component.
    type String
    The type of the component.

    Supporting Types

    GetStatusPageComponentComponent

    Id string
    The ID of the sub-component.
    Name string
    The name of the sub-component.
    Position int
    The position of the sub-component within the group.
    Status string
    The current status of the sub-component.
    Type string
    The type of the sub-component.
    Id string
    The ID of the sub-component.
    Name string
    The name of the sub-component.
    Position int
    The position of the sub-component within the group.
    Status string
    The current status of the sub-component.
    Type string
    The type of the sub-component.
    id string
    The ID of the sub-component.
    name string
    The name of the sub-component.
    position number
    The position of the sub-component within the group.
    status string
    The current status of the sub-component.
    type string
    The type of the sub-component.
    id String
    The ID of the sub-component.
    name String
    The name of the sub-component.
    position Integer
    The position of the sub-component within the group.
    status String
    The current status of the sub-component.
    type String
    The type of the sub-component.
    id string
    The ID of the sub-component.
    name string
    The name of the sub-component.
    position number
    The position of the sub-component within the group.
    status string
    The current status of the sub-component.
    type string
    The type of the sub-component.
    id str
    The ID of the sub-component.
    name str
    The name of the sub-component.
    position int
    The position of the sub-component within the group.
    status str
    The current status of the sub-component.
    type str
    The type of the sub-component.
    id String
    The ID of the sub-component.
    name String
    The name of the sub-component.
    position Number
    The position of the sub-component within the group.
    status String
    The current status of the sub-component.
    type String
    The type of the sub-component.

    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