1. Packages
  2. Datadog Provider
  3. API Docs
  4. getWorkflowAutomation
Datadog v4.49.0 published on Thursday, Apr 17, 2025 by Pulumi

datadog.getWorkflowAutomation

Explore with Pulumi AI

Datadog v4.49.0 published on Thursday, Apr 17, 2025 by Pulumi

This data source retrieves the definition of an existing Datadog workflow from Workflow Automation for use in other resources.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as datadog from "@pulumi/datadog";

const myWorkflow = datadog.getWorkflowAutomation({
    id: "11111111-2222-3333-4444-555555555555",
});
Copy
import pulumi
import pulumi_datadog as datadog

my_workflow = datadog.get_workflow_automation(id="11111111-2222-3333-4444-555555555555")
Copy
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.LookupWorkflowAutomation(ctx, &datadog.LookupWorkflowAutomationArgs{
			Id: "11111111-2222-3333-4444-555555555555",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Datadog = Pulumi.Datadog;

return await Deployment.RunAsync(() => 
{
    var myWorkflow = Datadog.GetWorkflowAutomation.Invoke(new()
    {
        Id = "11111111-2222-3333-4444-555555555555",
    });

});
Copy
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.GetWorkflowAutomationArgs;
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 myWorkflow = DatadogFunctions.getWorkflowAutomation(GetWorkflowAutomationArgs.builder()
            .id("11111111-2222-3333-4444-555555555555")
            .build());

    }
}
Copy
variables:
  myWorkflow:
    fn::invoke:
      function: datadog:getWorkflowAutomation
      arguments:
        id: 11111111-2222-3333-4444-555555555555
Copy

Using getWorkflowAutomation

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 getWorkflowAutomation(args: GetWorkflowAutomationArgs, opts?: InvokeOptions): Promise<GetWorkflowAutomationResult>
function getWorkflowAutomationOutput(args: GetWorkflowAutomationOutputArgs, opts?: InvokeOptions): Output<GetWorkflowAutomationResult>
Copy
def get_workflow_automation(id: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetWorkflowAutomationResult
def get_workflow_automation_output(id: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetWorkflowAutomationResult]
Copy
func LookupWorkflowAutomation(ctx *Context, args *LookupWorkflowAutomationArgs, opts ...InvokeOption) (*LookupWorkflowAutomationResult, error)
func LookupWorkflowAutomationOutput(ctx *Context, args *LookupWorkflowAutomationOutputArgs, opts ...InvokeOption) LookupWorkflowAutomationResultOutput
Copy

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

public static class GetWorkflowAutomation 
{
    public static Task<GetWorkflowAutomationResult> InvokeAsync(GetWorkflowAutomationArgs args, InvokeOptions? opts = null)
    public static Output<GetWorkflowAutomationResult> Invoke(GetWorkflowAutomationInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetWorkflowAutomationResult> getWorkflowAutomation(GetWorkflowAutomationArgs args, InvokeOptions options)
public static Output<GetWorkflowAutomationResult> getWorkflowAutomation(GetWorkflowAutomationArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: datadog:index/getWorkflowAutomation:getWorkflowAutomation
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Id This property is required. string
ID of the workflow.
Id This property is required. string
ID of the workflow.
id This property is required. String
ID of the workflow.
id This property is required. string
ID of the workflow.
id This property is required. str
ID of the workflow.
id This property is required. String
ID of the workflow.

getWorkflowAutomation Result

The following output properties are available:

Description string
Description of the workflow.
Id string
ID of the workflow.
Name string
Name of the workflow.
Published bool
Set the workflow to published or unpublished. Workflows in an unpublished state are only executable through manual runs. Automatic triggers such as Schedule do not execute the workflow until it is published.
SpecJson string
The spec defines what the workflow does.
Tags List<string>
Tags of the workflow.
Description string
Description of the workflow.
Id string
ID of the workflow.
Name string
Name of the workflow.
Published bool
Set the workflow to published or unpublished. Workflows in an unpublished state are only executable through manual runs. Automatic triggers such as Schedule do not execute the workflow until it is published.
SpecJson string
The spec defines what the workflow does.
Tags []string
Tags of the workflow.
description String
Description of the workflow.
id String
ID of the workflow.
name String
Name of the workflow.
published Boolean
Set the workflow to published or unpublished. Workflows in an unpublished state are only executable through manual runs. Automatic triggers such as Schedule do not execute the workflow until it is published.
specJson String
The spec defines what the workflow does.
tags List<String>
Tags of the workflow.
description string
Description of the workflow.
id string
ID of the workflow.
name string
Name of the workflow.
published boolean
Set the workflow to published or unpublished. Workflows in an unpublished state are only executable through manual runs. Automatic triggers such as Schedule do not execute the workflow until it is published.
specJson string
The spec defines what the workflow does.
tags string[]
Tags of the workflow.
description str
Description of the workflow.
id str
ID of the workflow.
name str
Name of the workflow.
published bool
Set the workflow to published or unpublished. Workflows in an unpublished state are only executable through manual runs. Automatic triggers such as Schedule do not execute the workflow until it is published.
spec_json str
The spec defines what the workflow does.
tags Sequence[str]
Tags of the workflow.
description String
Description of the workflow.
id String
ID of the workflow.
name String
Name of the workflow.
published Boolean
Set the workflow to published or unpublished. Workflows in an unpublished state are only executable through manual runs. Automatic triggers such as Schedule do not execute the workflow until it is published.
specJson String
The spec defines what the workflow does.
tags List<String>
Tags of the workflow.

Package Details

Repository
Datadog pulumi/pulumi-datadog
License
Apache-2.0
Notes
This Pulumi package is based on the datadog Terraform Provider.
Datadog v4.49.0 published on Thursday, Apr 17, 2025 by Pulumi