ActionHttpArgs

data class ActionHttpArgs(val body: Output<String>? = null, val headers: Output<Map<String, String>>? = null, val logicAppId: Output<String>? = null, val method: Output<String>? = null, val name: Output<String>? = null, val queries: Output<Map<String, String>>? = null, val runAfters: Output<List<ActionHttpRunAfterArgs>>? = null, val uri: Output<String>? = null) : ConvertibleToJava<ActionHttpArgs>

Manages an HTTP Action within a Logic App Workflow

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.logicapps.Workflow;
import com.pulumi.azure.logicapps.WorkflowArgs;
import com.pulumi.azure.logicapps.ActionHttp;
import com.pulumi.azure.logicapps.ActionHttpArgs;
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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("workflow-resources")
.location("West Europe")
.build());
var exampleWorkflow = new Workflow("exampleWorkflow", WorkflowArgs.builder()
.name("workflow1")
.location(example.location())
.resourceGroupName(example.name())
.build());
var exampleActionHttp = new ActionHttp("exampleActionHttp", ActionHttpArgs.builder()
.name("webhook")
.logicAppId(exampleWorkflow.id())
.method("GET")
.uri("http://example.com/some-webhook")
.build());
}
}

Import

Logic App HTTP Actions can be imported using the resource id, e.g.

$ pulumi import azure:logicapps/actionHttp:ActionHttp webhook1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Logic/workflows/workflow1/actions/webhook1

Constructors

Link copied to clipboard
fun ActionHttpArgs(body: Output<String>? = null, headers: Output<Map<String, String>>? = null, logicAppId: Output<String>? = null, method: Output<String>? = null, name: Output<String>? = null, queries: Output<Map<String, String>>? = null, runAfters: Output<List<ActionHttpRunAfterArgs>>? = null, uri: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): ActionHttpArgs

Properties

Link copied to clipboard
val body: Output<String>? = null

Specifies the HTTP Body that should be sent to the uri when this HTTP Action is triggered.

Link copied to clipboard
val headers: Output<Map<String, String>>? = null

Specifies a Map of Key-Value Pairs that should be sent to the uri when this HTTP Action is triggered.

Link copied to clipboard
val logicAppId: Output<String>? = null

Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.

Link copied to clipboard
val method: Output<String>? = null

Specifies the HTTP Method which should be used for this HTTP Action. Possible values include DELETE, GET, PATCH, POST and PUT.

Link copied to clipboard
val name: Output<String>? = null

Specifies the name of the HTTP Action to be created within the Logic App Workflow. Changing this forces a new resource to be created.

Link copied to clipboard
val queries: Output<Map<String, String>>? = null

Specifies a Map of Key-Value Pairs that should be sent to the uri when this HTTP Action is triggered.

Link copied to clipboard
val runAfters: Output<List<ActionHttpRunAfterArgs>>? = null

Specifies the place of the HTTP Action in the Logic App Workflow. If not specified, the HTTP Action is right after the Trigger. A run_after block is as defined below.

Link copied to clipboard
val uri: Output<String>? = null

Specifies the URI which will be called when this HTTP Action is triggered.