Azure Classic

Pulumi Official
Package maintained by Pulumi
v5.15.0 published on Wednesday, Aug 17, 2022 by Pulumi

getWorkflow

Use this data source to access information about an existing Logic App Workflow.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var example = Azure.LogicApps.GetWorkflow.Invoke(new()
    {
        Name = "workflow1",
        ResourceGroupName = "my-resource-group",
    });

    return new Dictionary<string, object?>
    {
        ["accessEndpoint"] = example.Apply(getWorkflowResult => getWorkflowResult.AccessEndpoint),
    };
});
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/logicapps"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := logicapps.LookupWorkflow(ctx, &logicapps.LookupWorkflowArgs{
			Name:              "workflow1",
			ResourceGroupName: "my-resource-group",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("accessEndpoint", example.AccessEndpoint)
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.logicapps.LogicappsFunctions;
import com.pulumi.azure.logicapps.inputs.GetWorkflowArgs;
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 example = LogicappsFunctions.getWorkflow(GetWorkflowArgs.builder()
            .name("workflow1")
            .resourceGroupName("my-resource-group")
            .build());

        ctx.export("accessEndpoint", example.applyValue(getWorkflowResult -> getWorkflowResult.accessEndpoint()));
    }
}
import pulumi
import pulumi_azure as azure

example = azure.logicapps.get_workflow(name="workflow1",
    resource_group_name="my-resource-group")
pulumi.export("accessEndpoint", example.access_endpoint)
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = azure.logicapps.getWorkflow({
    name: "workflow1",
    resourceGroupName: "my-resource-group",
});
export const accessEndpoint = example.then(example => example.accessEndpoint);
variables:
  example:
    Fn::Invoke:
      Function: azure:logicapps:getWorkflow
      Arguments:
        name: workflow1
        resourceGroupName: my-resource-group
outputs:
  accessEndpoint: ${example.accessEndpoint}

Using getWorkflow

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 getWorkflow(args: GetWorkflowArgs, opts?: InvokeOptions): Promise<GetWorkflowResult>
function getWorkflowOutput(args: GetWorkflowOutputArgs, opts?: InvokeOptions): Output<GetWorkflowResult>
def get_workflow(name: Optional[str] = None,
                 resource_group_name: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetWorkflowResult
def get_workflow_output(name: Optional[pulumi.Input[str]] = None,
                 resource_group_name: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetWorkflowResult]
func LookupWorkflow(ctx *Context, args *LookupWorkflowArgs, opts ...InvokeOption) (*LookupWorkflowResult, error)
func LookupWorkflowOutput(ctx *Context, args *LookupWorkflowOutputArgs, opts ...InvokeOption) LookupWorkflowResultOutput

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

public static class GetWorkflow 
{
    public static Task<GetWorkflowResult> InvokeAsync(GetWorkflowArgs args, InvokeOptions? opts = null)
    public static Output<GetWorkflowResult> Invoke(GetWorkflowInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetWorkflowResult> getWorkflow(GetWorkflowArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: azure:logicapps/getWorkflow:getWorkflow
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Name string

The name of the Logic App Workflow.

ResourceGroupName string

The name of the Resource Group in which the Logic App Workflow exists.

Name string

The name of the Logic App Workflow.

ResourceGroupName string

The name of the Resource Group in which the Logic App Workflow exists.

name String

The name of the Logic App Workflow.

resourceGroupName String

The name of the Resource Group in which the Logic App Workflow exists.

name string

The name of the Logic App Workflow.

resourceGroupName string

The name of the Resource Group in which the Logic App Workflow exists.

name str

The name of the Logic App Workflow.

resource_group_name str

The name of the Resource Group in which the Logic App Workflow exists.

name String

The name of the Logic App Workflow.

resourceGroupName String

The name of the Resource Group in which the Logic App Workflow exists.

getWorkflow Result

The following output properties are available:

AccessEndpoint string

The Access Endpoint for the Logic App Workflow

ConnectorEndpointIpAddresses List<string>

The list of access endpoint IP addresses of connector.

ConnectorOutboundIpAddresses List<string>

The list of outgoing IP addresses of connector.

Id string

The provider-assigned unique ID for this managed resource.

Identities List<GetWorkflowIdentity>

An identity block as defined below.

Location string

The Azure location where the Logic App Workflow exists.

LogicAppIntegrationAccountId string

The ID of the integration account linked by this Logic App Workflow.

Name string
Parameters Dictionary<string, string>

A map of Key-Value pairs.

ResourceGroupName string
Tags Dictionary<string, string>

A mapping of tags assigned to the resource.

WorkflowEndpointIpAddresses List<string>

The list of access endpoint IP addresses of workflow.

WorkflowOutboundIpAddresses List<string>

The list of outgoing IP addresses of workflow.

WorkflowSchema string

The Schema used for this Logic App Workflow.

WorkflowVersion string

The version of the Schema used for this Logic App Workflow. Defaults to 1.0.0.0.

AccessEndpoint string

The Access Endpoint for the Logic App Workflow

ConnectorEndpointIpAddresses []string

The list of access endpoint IP addresses of connector.

ConnectorOutboundIpAddresses []string

The list of outgoing IP addresses of connector.

Id string

The provider-assigned unique ID for this managed resource.

Identities []GetWorkflowIdentity

An identity block as defined below.

Location string

The Azure location where the Logic App Workflow exists.

LogicAppIntegrationAccountId string

The ID of the integration account linked by this Logic App Workflow.

Name string
Parameters map[string]string

A map of Key-Value pairs.

ResourceGroupName string
Tags map[string]string

A mapping of tags assigned to the resource.

WorkflowEndpointIpAddresses []string

The list of access endpoint IP addresses of workflow.

WorkflowOutboundIpAddresses []string

The list of outgoing IP addresses of workflow.

WorkflowSchema string

The Schema used for this Logic App Workflow.

WorkflowVersion string

The version of the Schema used for this Logic App Workflow. Defaults to 1.0.0.0.

accessEndpoint String

The Access Endpoint for the Logic App Workflow

connectorEndpointIpAddresses List<String>

The list of access endpoint IP addresses of connector.

connectorOutboundIpAddresses List<String>

The list of outgoing IP addresses of connector.

id String

The provider-assigned unique ID for this managed resource.

identities List<GetWorkflowIdentity>

An identity block as defined below.

location String

The Azure location where the Logic App Workflow exists.

logicAppIntegrationAccountId String

The ID of the integration account linked by this Logic App Workflow.

name String
parameters Map<String,String>

A map of Key-Value pairs.

resourceGroupName String
tags Map<String,String>

A mapping of tags assigned to the resource.

workflowEndpointIpAddresses List<String>

The list of access endpoint IP addresses of workflow.

workflowOutboundIpAddresses List<String>

The list of outgoing IP addresses of workflow.

workflowSchema String

The Schema used for this Logic App Workflow.

workflowVersion String

The version of the Schema used for this Logic App Workflow. Defaults to 1.0.0.0.

accessEndpoint string

The Access Endpoint for the Logic App Workflow

connectorEndpointIpAddresses string[]

The list of access endpoint IP addresses of connector.

connectorOutboundIpAddresses string[]

The list of outgoing IP addresses of connector.

id string

The provider-assigned unique ID for this managed resource.

identities GetWorkflowIdentity[]

An identity block as defined below.

location string

The Azure location where the Logic App Workflow exists.

logicAppIntegrationAccountId string

The ID of the integration account linked by this Logic App Workflow.

name string
parameters {[key: string]: string}

A map of Key-Value pairs.

resourceGroupName string
tags {[key: string]: string}

A mapping of tags assigned to the resource.

workflowEndpointIpAddresses string[]

The list of access endpoint IP addresses of workflow.

workflowOutboundIpAddresses string[]

The list of outgoing IP addresses of workflow.

workflowSchema string

The Schema used for this Logic App Workflow.

workflowVersion string

The version of the Schema used for this Logic App Workflow. Defaults to 1.0.0.0.

access_endpoint str

The Access Endpoint for the Logic App Workflow

connector_endpoint_ip_addresses Sequence[str]

The list of access endpoint IP addresses of connector.

connector_outbound_ip_addresses Sequence[str]

The list of outgoing IP addresses of connector.

id str

The provider-assigned unique ID for this managed resource.

identities Sequence[GetWorkflowIdentity]

An identity block as defined below.

location str

The Azure location where the Logic App Workflow exists.

logic_app_integration_account_id str

The ID of the integration account linked by this Logic App Workflow.

name str
parameters Mapping[str, str]

A map of Key-Value pairs.

resource_group_name str
tags Mapping[str, str]

A mapping of tags assigned to the resource.

workflow_endpoint_ip_addresses Sequence[str]

The list of access endpoint IP addresses of workflow.

workflow_outbound_ip_addresses Sequence[str]

The list of outgoing IP addresses of workflow.

workflow_schema str

The Schema used for this Logic App Workflow.

workflow_version str

The version of the Schema used for this Logic App Workflow. Defaults to 1.0.0.0.

accessEndpoint String

The Access Endpoint for the Logic App Workflow

connectorEndpointIpAddresses List<String>

The list of access endpoint IP addresses of connector.

connectorOutboundIpAddresses List<String>

The list of outgoing IP addresses of connector.

id String

The provider-assigned unique ID for this managed resource.

identities List<Property Map>

An identity block as defined below.

location String

The Azure location where the Logic App Workflow exists.

logicAppIntegrationAccountId String

The ID of the integration account linked by this Logic App Workflow.

name String
parameters Map<String>

A map of Key-Value pairs.

resourceGroupName String
tags Map<String>

A mapping of tags assigned to the resource.

workflowEndpointIpAddresses List<String>

The list of access endpoint IP addresses of workflow.

workflowOutboundIpAddresses List<String>

The list of outgoing IP addresses of workflow.

workflowSchema String

The Schema used for this Logic App Workflow.

workflowVersion String

The version of the Schema used for this Logic App Workflow. Defaults to 1.0.0.0.

Supporting Types

GetWorkflowIdentity

IdentityIds List<string>

The list of User Assigned Managed Identity IDs assigned to this API Management Service.

PrincipalId string

The Principal ID of the System Assigned Managed Service Identity that is configured on this API Management Service.

TenantId string

The Tenant ID of the System Assigned Managed Service Identity that is configured on this API Management Service.

Type string

The type of Managed Service Identity that is configured on this API Management Service.

IdentityIds []string

The list of User Assigned Managed Identity IDs assigned to this API Management Service.

PrincipalId string

The Principal ID of the System Assigned Managed Service Identity that is configured on this API Management Service.

TenantId string

The Tenant ID of the System Assigned Managed Service Identity that is configured on this API Management Service.

Type string

The type of Managed Service Identity that is configured on this API Management Service.

identityIds List<String>

The list of User Assigned Managed Identity IDs assigned to this API Management Service.

principalId String

The Principal ID of the System Assigned Managed Service Identity that is configured on this API Management Service.

tenantId String

The Tenant ID of the System Assigned Managed Service Identity that is configured on this API Management Service.

type String

The type of Managed Service Identity that is configured on this API Management Service.

identityIds string[]

The list of User Assigned Managed Identity IDs assigned to this API Management Service.

principalId string

The Principal ID of the System Assigned Managed Service Identity that is configured on this API Management Service.

tenantId string

The Tenant ID of the System Assigned Managed Service Identity that is configured on this API Management Service.

type string

The type of Managed Service Identity that is configured on this API Management Service.

identity_ids Sequence[str]

The list of User Assigned Managed Identity IDs assigned to this API Management Service.

principal_id str

The Principal ID of the System Assigned Managed Service Identity that is configured on this API Management Service.

tenant_id str

The Tenant ID of the System Assigned Managed Service Identity that is configured on this API Management Service.

type str

The type of Managed Service Identity that is configured on this API Management Service.

identityIds List<String>

The list of User Assigned Managed Identity IDs assigned to this API Management Service.

principalId String

The Principal ID of the System Assigned Managed Service Identity that is configured on this API Management Service.

tenantId String

The Tenant ID of the System Assigned Managed Service Identity that is configured on this API Management Service.

type String

The type of Managed Service Identity that is configured on this API Management Service.

Package Details

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

This Pulumi package is based on the azurerm Terraform Provider.