Workflow

The workflow type. API Version: 2019-05-01.

Example Usage

Create or update a workflow

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var workflow = new AzureNative.Logic.Workflow("workflow", new()
{
Definition =
{
{ "$schema", "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#" },
{ "actions",
{
{ "Find_pet_by_ID",
{
{ "inputs",
{
{ "host",
{
{ "connection",
{
{ "name", "@parameters('$connections')['test-custom-connector']['connectionId']" },
} },
} },
{ "method", "get" },
{ "path", "/pet/@{encodeURIComponent('1')}" },
} },
{ "runAfter", null },
{ "type", "ApiConnection" },
} },
} },
{ "contentVersion", "1.0.0.0" },
{ "outputs", null },
{ "parameters",
{
{ "$connections",
{
{ "defaultValue", null },
{ "type", "Object" },
} },
} },
{ "triggers",
{
{ "manual",
{
{ "inputs",
{
{ "schema", null },
} },
{ "kind", "Http" },
{ "type", "Request" },
} },
} },
},
IntegrationAccount = new AzureNative.Logic.Inputs.ResourceReferenceArgs
{
Id = "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account",
},
Location = "brazilsouth",
Parameters =
{
{ "$connections", new AzureNative.Logic.Inputs.WorkflowParameterArgs
{
Value =
{
{ "test-custom-connector",
{
{ "connectionId", "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Web/connections/test-custom-connector" },
{ "connectionName", "test-custom-connector" },
{ "id", "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.Web/locations/brazilsouth/managedApis/test-custom-connector" },
} },
},
} },
},
ResourceGroupName = "test-resource-group",
Tags = null,
WorkflowName = "test-workflow",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.logic.Workflow;
import com.pulumi.azurenative.logic.WorkflowArgs;
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) {
var workflow = new Workflow("workflow", WorkflowArgs.builder()
.definition(Map.ofEntries(
Map.entry("$schema", "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#"),
Map.entry("actions", Map.of("Find_pet_by_ID", Map.ofEntries(
Map.entry("inputs", Map.ofEntries(
Map.entry("host", Map.of("connection", Map.of("name", "@parameters('$connections')['test-custom-connector']['connectionId']"))),
Map.entry("method", "get"),
Map.entry("path", "/pet/@{encodeURIComponent('1')}")
)),
Map.entry("runAfter", ),
Map.entry("type", "ApiConnection")
))),
Map.entry("contentVersion", "1.0.0.0"),
Map.entry("outputs", ),
Map.entry("parameters", Map.of("$connections", Map.ofEntries(
Map.entry("defaultValue", ),
Map.entry("type", "Object")
))),
Map.entry("triggers", Map.of("manual", Map.ofEntries(
Map.entry("inputs", Map.of("schema", )),
Map.entry("kind", "Http"),
Map.entry("type", "Request")
)))
))
.integrationAccount(Map.of("id", "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account"))
.location("brazilsouth")
.parameters(Map.of("$connections", Map.of("value", Map.of("test-custom-connector", Map.ofEntries(
Map.entry("connectionId", "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Web/connections/test-custom-connector"),
Map.entry("connectionName", "test-custom-connector"),
Map.entry("id", "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.Web/locations/brazilsouth/managedApis/test-custom-connector")
)))))
.resourceGroupName("test-resource-group")
.tags()
.workflowName("test-workflow")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:logic:Workflow myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}

Properties

Link copied to clipboard

The access control configuration.

Link copied to clipboard
val accessEndpoint: Output<String>

Gets the access endpoint.

Link copied to clipboard
val changedTime: Output<String>

Gets the changed time.

Link copied to clipboard
val createdTime: Output<String>

Gets the created time.

Link copied to clipboard
val definition: Output<Any>?

The definition.

Link copied to clipboard

The endpoints configuration.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

Managed service identity properties.

Link copied to clipboard

The integration account.

Link copied to clipboard

The integration service environment.

Link copied to clipboard
val location: Output<String>?

The resource location.

Link copied to clipboard
val name: Output<String>

Gets the resource name.

Link copied to clipboard

The parameters.

Link copied to clipboard

Gets the provisioning state.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val sku: Output<SkuResponse>

The sku.

Link copied to clipboard
val state: Output<String>?

The state.

Link copied to clipboard
val tags: Output<Map<String, String>>?

The resource tags.

Link copied to clipboard
val type: Output<String>

Gets the resource type.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val version: Output<String>

Gets the version.