ActionHttp

Manages an HTTP Action within a Logic App Workflow

Example Usage

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
    public MyStack()
    {
        var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
        {
            Location = "East US",
        });
        var exampleWorkflow = new Azure.LogicApps.Workflow("exampleWorkflow", new Azure.LogicApps.WorkflowArgs
        {
            Location = exampleResourceGroup.Location,
            ResourceGroupName = exampleResourceGroup.Name,
        });
        var exampleActionHttp = new Azure.LogicApps.ActionHttp("exampleActionHttp", new Azure.LogicApps.ActionHttpArgs
        {
            LogicAppId = exampleWorkflow.Id,
            Method = "GET",
            Uri = "http://example.com/some-webhook",
        });
    }

}
package main

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

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
            Location: pulumi.String("East US"),
        })
        if err != nil {
            return err
        }
        exampleWorkflow, err := logicapps.NewWorkflow(ctx, "exampleWorkflow", &logicapps.WorkflowArgs{
            Location:          exampleResourceGroup.Location,
            ResourceGroupName: exampleResourceGroup.Name,
        })
        if err != nil {
            return err
        }
        _, err = logicapps.NewActionHttp(ctx, "exampleActionHttp", &logicapps.ActionHttpArgs{
            LogicAppId: exampleWorkflow.ID(),
            Method:     pulumi.String("GET"),
            Uri:        pulumi.String("http://example.com/some-webhook"),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_azure as azure

example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="East US")
example_workflow = azure.logicapps.Workflow("exampleWorkflow",
    location=example_resource_group.location,
    resource_group_name=example_resource_group.name)
example_action_http = azure.logicapps.ActionHttp("exampleActionHttp",
    logic_app_id=example_workflow.id,
    method="GET",
    uri="http://example.com/some-webhook")
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "East US"});
const exampleWorkflow = new azure.logicapps.Workflow("exampleWorkflow", {
    location: exampleResourceGroup.location,
    resourceGroupName: exampleResourceGroup.name,
});
const exampleActionHttp = new azure.logicapps.ActionHttp("exampleActionHttp", {
    logicAppId: exampleWorkflow.id,
    method: "GET",
    uri: "http://example.com/some-webhook",
});

Create a ActionHttp Resource

def ActionHttp(resource_name, opts=None, body=None, headers=None, logic_app_id=None, method=None, name=None, run_afters=None, uri=None, __props__=None);
func NewActionHttp(ctx *Context, name string, args ActionHttpArgs, opts ...ResourceOption) (*ActionHttp, error)
public ActionHttp(string name, ActionHttpArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args ActionHttpArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ActionHttpArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ActionHttpArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

ActionHttp Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The ActionHttp resource accepts the following input properties:

LogicAppId string

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

Method string

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

Uri string

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

Body string

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

Headers Dictionary<string, string>

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

Name string

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

RunAfters List<ActionHttpRunAfterArgs>

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.

LogicAppId string

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

Method string

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

Uri string

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

Body string

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

Headers map[string]string

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

Name string

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

RunAfters []ActionHttpRunAfter

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.

logicAppId string

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

method string

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

uri string

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

body string

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

headers {[key: string]: string}

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

name string

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

runAfters ActionHttpRunAfter[]

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.

logic_app_id str

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

method str

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

uri str

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

body str

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

headers Dict[str, str]

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

name str

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

run_afters List[ActionHttpRunAfter]

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.

Outputs

All input properties are implicitly available as output properties. Additionally, the ActionHttp resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing ActionHttp Resource

Get an existing ActionHttp resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ActionHttpState, opts?: CustomResourceOptions): ActionHttp
static get(resource_name, id, opts=None, body=None, headers=None, logic_app_id=None, method=None, name=None, run_afters=None, uri=None, __props__=None);
func GetActionHttp(ctx *Context, name string, id IDInput, state *ActionHttpState, opts ...ResourceOption) (*ActionHttp, error)
public static ActionHttp Get(string name, Input<string> id, ActionHttpState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

Body string

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

Headers Dictionary<string, string>

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

LogicAppId string

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

Method string

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

Name string

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

RunAfters List<ActionHttpRunAfterArgs>

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.

Uri string

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

Body string

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

Headers map[string]string

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

LogicAppId string

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

Method string

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

Name string

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

RunAfters []ActionHttpRunAfter

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.

Uri string

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

body string

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

headers {[key: string]: string}

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

logicAppId string

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

method string

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

name string

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

runAfters ActionHttpRunAfter[]

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.

uri string

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

body str

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

headers Dict[str, str]

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

logic_app_id str

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

method str

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

name str

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

run_afters List[ActionHttpRunAfter]

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.

uri str

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

Supporting Types

ActionHttpRunAfter

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

ActionName string

Specifies the name of the precedent HTTP Action.

ActionResult string

Specifies the expected result of the precedent HTTP Action, only after which the current HTTP Action will be triggered. Possible values include Succeeded, Failed, Skipped and TimedOut.

ActionName string

Specifies the name of the precedent HTTP Action.

ActionResult string

Specifies the expected result of the precedent HTTP Action, only after which the current HTTP Action will be triggered. Possible values include Succeeded, Failed, Skipped and TimedOut.

actionName string

Specifies the name of the precedent HTTP Action.

actionResult string

Specifies the expected result of the precedent HTTP Action, only after which the current HTTP Action will be triggered. Possible values include Succeeded, Failed, Skipped and TimedOut.

actionName str

Specifies the name of the precedent HTTP Action.

actionResult str

Specifies the expected result of the precedent HTTP Action, only after which the current HTTP Action will be triggered. Possible values include Succeeded, Failed, Skipped and TimedOut.

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.