Datadog

Pulumi Official
Package maintained by Pulumi
v4.10.0 published on Monday, Jul 25, 2022 by Pulumi

getDashboard

Use this data source to retrieve information about an existing dashboard, for use in other resources. In particular, it can be used in a monitor message to link to a specific dashboard.

Example Usage

using Pulumi;
using Datadog = Pulumi.Datadog;

class MyStack : Stack
{
    public MyStack()
    {
        var test = Output.Create(Datadog.GetDashboard.InvokeAsync(new Datadog.GetDashboardArgs
        {
            Name = "My super dashboard",
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-datadog/sdk/v4/go/datadog"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := datadog.LookupDashboard(ctx, &GetDashboardArgs{
			Name: "My super dashboard",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var test = Output.of(DatadogFunctions.getDashboard(GetDashboardArgs.builder()
            .name("My super dashboard")
            .build()));

    }
}
import pulumi
import pulumi_datadog as datadog

test = datadog.get_dashboard(name="My super dashboard")
import * as pulumi from "@pulumi/pulumi";
import * as datadog from "@pulumi/datadog";

const test = pulumi.output(datadog.getDashboard({
    name: "My super dashboard",
}));
variables:
  test:
    Fn::Invoke:
      Function: datadog:getDashboard
      Arguments:
        name: My super dashboard

Using getDashboard

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 getDashboard(args: GetDashboardArgs, opts?: InvokeOptions): Promise<GetDashboardResult>
function getDashboardOutput(args: GetDashboardOutputArgs, opts?: InvokeOptions): Output<GetDashboardResult>
def get_dashboard(name: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetDashboardResult
def get_dashboard_output(name: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetDashboardResult]
func LookupDashboard(ctx *Context, args *LookupDashboardArgs, opts ...InvokeOption) (*LookupDashboardResult, error)
func LookupDashboardOutput(ctx *Context, args *LookupDashboardOutputArgs, opts ...InvokeOption) LookupDashboardResultOutput

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

public static class GetDashboard 
{
    public static Task<GetDashboardResult> InvokeAsync(GetDashboardArgs args, InvokeOptions? opts = null)
    public static Output<GetDashboardResult> Invoke(GetDashboardInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDashboardResult> getDashboard(GetDashboardArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: datadog:index/getDashboard:getDashboard
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Name string
Name string
name String
name string
name str
name String

getDashboard Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Name string
Title string
Url string
Id string

The provider-assigned unique ID for this managed resource.

Name string
Title string
Url string
id String

The provider-assigned unique ID for this managed resource.

name String
title String
url String
id string

The provider-assigned unique ID for this managed resource.

name string
title string
url string
id str

The provider-assigned unique ID for this managed resource.

name str
title str
url str
id String

The provider-assigned unique ID for this managed resource.

name String
title String
url String

Package Details

Repository
https://github.com/pulumi/pulumi-datadog
License
Apache-2.0
Notes

This Pulumi package is based on the datadog Terraform Provider.