This data source retrieves the definition of an existing Datadog App from App Builder for use in other resources, such as embedding Apps in Dashboards. This data source requires a registered application key.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as datadog from "@pulumi/datadog";
const myApp = datadog.getAppBuilderApp({
id: "11111111-2222-3333-4444-555555555555",
});
import pulumi
import pulumi_datadog as datadog
my_app = datadog.get_app_builder_app(id="11111111-2222-3333-4444-555555555555")
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.LookupAppBuilderApp(ctx, &datadog.LookupAppBuilderAppArgs{
Id: "11111111-2222-3333-4444-555555555555",
}, 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 myApp = Datadog.GetAppBuilderApp.Invoke(new()
{
Id = "11111111-2222-3333-4444-555555555555",
});
});
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.GetAppBuilderAppArgs;
import java.util.List;
import java.util.ArrayList;
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 myApp = DatadogFunctions.getAppBuilderApp(GetAppBuilderAppArgs.builder()
.id("11111111-2222-3333-4444-555555555555")
.build());
}
}
variables:
myApp:
fn::invoke:
function: datadog:getAppBuilderApp
arguments:
id: 11111111-2222-3333-4444-555555555555
Using getAppBuilderApp
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 getAppBuilderApp(args: GetAppBuilderAppArgs, opts?: InvokeOptions): Promise<GetAppBuilderAppResult>
function getAppBuilderAppOutput(args: GetAppBuilderAppOutputArgs, opts?: InvokeOptions): Output<GetAppBuilderAppResult>def get_app_builder_app(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAppBuilderAppResult
def get_app_builder_app_output(id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAppBuilderAppResult]func LookupAppBuilderApp(ctx *Context, args *LookupAppBuilderAppArgs, opts ...InvokeOption) (*LookupAppBuilderAppResult, error)
func LookupAppBuilderAppOutput(ctx *Context, args *LookupAppBuilderAppOutputArgs, opts ...InvokeOption) LookupAppBuilderAppResultOutput> Note: This function is named LookupAppBuilderApp in the Go SDK.
public static class GetAppBuilderApp
{
public static Task<GetAppBuilderAppResult> InvokeAsync(GetAppBuilderAppArgs args, InvokeOptions? opts = null)
public static Output<GetAppBuilderAppResult> Invoke(GetAppBuilderAppInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAppBuilderAppResult> getAppBuilderApp(GetAppBuilderAppArgs args, InvokeOptions options)
public static Output<GetAppBuilderAppResult> getAppBuilderApp(GetAppBuilderAppArgs args, InvokeOptions options)
fn::invoke:
function: datadog:index/getAppBuilderApp:getAppBuilderApp
arguments:
# arguments dictionaryThe following arguments are supported:
- Id string
- ID for the App.
- Id string
- ID for the App.
- id String
- ID for the App.
- id string
- ID for the App.
- id str
- ID for the App.
- id String
- ID for the App.
getAppBuilderApp Result
The following output properties are available:
- Action
Query Dictionary<string, string>Names To Connection Ids - A map of the App's Action Query Names to Action Connection IDs.
- App
Json string - The JSON representation of the App.
- Description string
- The human-readable description of the App.
- Id string
- ID for the App.
- Name string
- The name of the App.
- Published bool
- Whether the app is published or unpublished. Published apps are available to other users. To ensure the app is accessible to the correct users, you also need to set a Restriction Policy on the app if a policy does not yet exist.
- Root
Instance stringName - The name of the root component of the app. This is a grid component that contains all other components.
- Action
Query map[string]stringNames To Connection Ids - A map of the App's Action Query Names to Action Connection IDs.
- App
Json string - The JSON representation of the App.
- Description string
- The human-readable description of the App.
- Id string
- ID for the App.
- Name string
- The name of the App.
- Published bool
- Whether the app is published or unpublished. Published apps are available to other users. To ensure the app is accessible to the correct users, you also need to set a Restriction Policy on the app if a policy does not yet exist.
- Root
Instance stringName - The name of the root component of the app. This is a grid component that contains all other components.
- action
Query Map<String,String>Names To Connection Ids - A map of the App's Action Query Names to Action Connection IDs.
- app
Json String - The JSON representation of the App.
- description String
- The human-readable description of the App.
- id String
- ID for the App.
- name String
- The name of the App.
- published Boolean
- Whether the app is published or unpublished. Published apps are available to other users. To ensure the app is accessible to the correct users, you also need to set a Restriction Policy on the app if a policy does not yet exist.
- root
Instance StringName - The name of the root component of the app. This is a grid component that contains all other components.
- action
Query {[key: string]: string}Names To Connection Ids - A map of the App's Action Query Names to Action Connection IDs.
- app
Json string - The JSON representation of the App.
- description string
- The human-readable description of the App.
- id string
- ID for the App.
- name string
- The name of the App.
- published boolean
- Whether the app is published or unpublished. Published apps are available to other users. To ensure the app is accessible to the correct users, you also need to set a Restriction Policy on the app if a policy does not yet exist.
- root
Instance stringName - The name of the root component of the app. This is a grid component that contains all other components.
- action_
query_ Mapping[str, str]names_ to_ connection_ ids - A map of the App's Action Query Names to Action Connection IDs.
- app_
json str - The JSON representation of the App.
- description str
- The human-readable description of the App.
- id str
- ID for the App.
- name str
- The name of the App.
- published bool
- Whether the app is published or unpublished. Published apps are available to other users. To ensure the app is accessible to the correct users, you also need to set a Restriction Policy on the app if a policy does not yet exist.
- root_
instance_ strname - The name of the root component of the app. This is a grid component that contains all other components.
- action
Query Map<String>Names To Connection Ids - A map of the App's Action Query Names to Action Connection IDs.
- app
Json String - The JSON representation of the App.
- description String
- The human-readable description of the App.
- id String
- ID for the App.
- name String
- The name of the App.
- published Boolean
- Whether the app is published or unpublished. Published apps are available to other users. To ensure the app is accessible to the correct users, you also need to set a Restriction Policy on the app if a policy does not yet exist.
- root
Instance StringName - The name of the root component of the app. This is a grid component that contains all other components.
Package Details
- Repository
- Datadog pulumi/pulumi-datadog
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
datadogTerraform Provider.
