1. Packages
  2. Azure Classic
  3. API Docs
  4. logicapps
  5. getWorkflow

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

azure.logicapps.getWorkflow

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

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

    Example Usage

    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);
    
    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)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v6/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
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    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 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()));
        }
    }
    
    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 Logic App Workflow.
    PrincipalId string
    The Principal ID of the System Assigned Managed Service Identity that is configured on this Logic App Workflow.
    TenantId string
    The Tenant ID of the System Assigned Managed Service Identity that is configured on this Logic App Workflow.
    Type string
    The type of Managed Service Identity that is configured on this Logic App Workflow.
    IdentityIds []string
    The list of User Assigned Managed Identity IDs assigned to this Logic App Workflow.
    PrincipalId string
    The Principal ID of the System Assigned Managed Service Identity that is configured on this Logic App Workflow.
    TenantId string
    The Tenant ID of the System Assigned Managed Service Identity that is configured on this Logic App Workflow.
    Type string
    The type of Managed Service Identity that is configured on this Logic App Workflow.
    identityIds List<String>
    The list of User Assigned Managed Identity IDs assigned to this Logic App Workflow.
    principalId String
    The Principal ID of the System Assigned Managed Service Identity that is configured on this Logic App Workflow.
    tenantId String
    The Tenant ID of the System Assigned Managed Service Identity that is configured on this Logic App Workflow.
    type String
    The type of Managed Service Identity that is configured on this Logic App Workflow.
    identityIds string[]
    The list of User Assigned Managed Identity IDs assigned to this Logic App Workflow.
    principalId string
    The Principal ID of the System Assigned Managed Service Identity that is configured on this Logic App Workflow.
    tenantId string
    The Tenant ID of the System Assigned Managed Service Identity that is configured on this Logic App Workflow.
    type string
    The type of Managed Service Identity that is configured on this Logic App Workflow.
    identity_ids Sequence[str]
    The list of User Assigned Managed Identity IDs assigned to this Logic App Workflow.
    principal_id str
    The Principal ID of the System Assigned Managed Service Identity that is configured on this Logic App Workflow.
    tenant_id str
    The Tenant ID of the System Assigned Managed Service Identity that is configured on this Logic App Workflow.
    type str
    The type of Managed Service Identity that is configured on this Logic App Workflow.
    identityIds List<String>
    The list of User Assigned Managed Identity IDs assigned to this Logic App Workflow.
    principalId String
    The Principal ID of the System Assigned Managed Service Identity that is configured on this Logic App Workflow.
    tenantId String
    The Tenant ID of the System Assigned Managed Service Identity that is configured on this Logic App Workflow.
    type String
    The type of Managed Service Identity that is configured on this Logic App Workflow.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi