We recommend using Azure Native.
azure.logicapps.TriggerHttpRequest
Explore with Pulumi AI
Manages a HTTP Request Trigger within a Logic App Workflow
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
    name: "workflow-resources",
    location: "West Europe",
});
const exampleWorkflow = new azure.logicapps.Workflow("example", {
    name: "workflow1",
    location: example.location,
    resourceGroupName: example.name,
});
const exampleTriggerHttpRequest = new azure.logicapps.TriggerHttpRequest("example", {
    name: "some-http-trigger",
    logicAppId: exampleWorkflow.id,
    schema: `{
    "type": "object",
    "properties": {
        "hello": {
            "type": "string"
        }
    }
}
`,
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
    name="workflow-resources",
    location="West Europe")
example_workflow = azure.logicapps.Workflow("example",
    name="workflow1",
    location=example.location,
    resource_group_name=example.name)
example_trigger_http_request = azure.logicapps.TriggerHttpRequest("example",
    name="some-http-trigger",
    logic_app_id=example_workflow.id,
    schema="""{
    "type": "object",
    "properties": {
        "hello": {
            "type": "string"
        }
    }
}
""")
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
	"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 := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("workflow-resources"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleWorkflow, err := logicapps.NewWorkflow(ctx, "example", &logicapps.WorkflowArgs{
			Name:              pulumi.String("workflow1"),
			Location:          example.Location,
			ResourceGroupName: example.Name,
		})
		if err != nil {
			return err
		}
		_, err = logicapps.NewTriggerHttpRequest(ctx, "example", &logicapps.TriggerHttpRequestArgs{
			Name:       pulumi.String("some-http-trigger"),
			LogicAppId: exampleWorkflow.ID(),
			Schema: pulumi.String(`{
    "type": "object",
    "properties": {
        "hello": {
            "type": "string"
        }
    }
}
`),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() => 
{
    var example = new Azure.Core.ResourceGroup("example", new()
    {
        Name = "workflow-resources",
        Location = "West Europe",
    });
    var exampleWorkflow = new Azure.LogicApps.Workflow("example", new()
    {
        Name = "workflow1",
        Location = example.Location,
        ResourceGroupName = example.Name,
    });
    var exampleTriggerHttpRequest = new Azure.LogicApps.TriggerHttpRequest("example", new()
    {
        Name = "some-http-trigger",
        LogicAppId = exampleWorkflow.Id,
        Schema = @"{
    ""type"": ""object"",
    ""properties"": {
        ""hello"": {
            ""type"": ""string""
        }
    }
}
",
    });
});
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.TriggerHttpRequest;
import com.pulumi.azure.logicapps.TriggerHttpRequestArgs;
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 exampleTriggerHttpRequest = new TriggerHttpRequest("exampleTriggerHttpRequest", TriggerHttpRequestArgs.builder()
            .name("some-http-trigger")
            .logicAppId(exampleWorkflow.id())
            .schema("""
{
    "type": "object",
    "properties": {
        "hello": {
            "type": "string"
        }
    }
}
            """)
            .build());
    }
}
resources:
  example:
    type: azure:core:ResourceGroup
    properties:
      name: workflow-resources
      location: West Europe
  exampleWorkflow:
    type: azure:logicapps:Workflow
    name: example
    properties:
      name: workflow1
      location: ${example.location}
      resourceGroupName: ${example.name}
  exampleTriggerHttpRequest:
    type: azure:logicapps:TriggerHttpRequest
    name: example
    properties:
      name: some-http-trigger
      logicAppId: ${exampleWorkflow.id}
      schema: |
        {
            "type": "object",
            "properties": {
                "hello": {
                    "type": "string"
                }
            }
        }        
Create TriggerHttpRequest Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TriggerHttpRequest(name: string, args: TriggerHttpRequestArgs, opts?: CustomResourceOptions);@overload
def TriggerHttpRequest(resource_name: str,
                       args: TriggerHttpRequestArgs,
                       opts: Optional[ResourceOptions] = None)
@overload
def TriggerHttpRequest(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       logic_app_id: Optional[str] = None,
                       schema: Optional[str] = None,
                       method: Optional[str] = None,
                       name: Optional[str] = None,
                       relative_path: Optional[str] = None)func NewTriggerHttpRequest(ctx *Context, name string, args TriggerHttpRequestArgs, opts ...ResourceOption) (*TriggerHttpRequest, error)public TriggerHttpRequest(string name, TriggerHttpRequestArgs args, CustomResourceOptions? opts = null)
public TriggerHttpRequest(String name, TriggerHttpRequestArgs args)
public TriggerHttpRequest(String name, TriggerHttpRequestArgs args, CustomResourceOptions options)
type: azure:logicapps:TriggerHttpRequest
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args TriggerHttpRequestArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args TriggerHttpRequestArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args TriggerHttpRequestArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TriggerHttpRequestArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TriggerHttpRequestArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var triggerHttpRequestResource = new Azure.LogicApps.TriggerHttpRequest("triggerHttpRequestResource", new()
{
    LogicAppId = "string",
    Schema = "string",
    Method = "string",
    Name = "string",
    RelativePath = "string",
});
example, err := logicapps.NewTriggerHttpRequest(ctx, "triggerHttpRequestResource", &logicapps.TriggerHttpRequestArgs{
	LogicAppId:   pulumi.String("string"),
	Schema:       pulumi.String("string"),
	Method:       pulumi.String("string"),
	Name:         pulumi.String("string"),
	RelativePath: pulumi.String("string"),
})
var triggerHttpRequestResource = new TriggerHttpRequest("triggerHttpRequestResource", TriggerHttpRequestArgs.builder()
    .logicAppId("string")
    .schema("string")
    .method("string")
    .name("string")
    .relativePath("string")
    .build());
trigger_http_request_resource = azure.logicapps.TriggerHttpRequest("triggerHttpRequestResource",
    logic_app_id="string",
    schema="string",
    method="string",
    name="string",
    relative_path="string")
const triggerHttpRequestResource = new azure.logicapps.TriggerHttpRequest("triggerHttpRequestResource", {
    logicAppId: "string",
    schema: "string",
    method: "string",
    name: "string",
    relativePath: "string",
});
type: azure:logicapps:TriggerHttpRequest
properties:
    logicAppId: string
    method: string
    name: string
    relativePath: string
    schema: string
TriggerHttpRequest Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The TriggerHttpRequest resource accepts the following input properties:
- LogicApp stringId 
- Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
- Schema string
- A JSON Blob defining the Schema of the incoming request. This needs to be valid JSON.
- Method string
- Specifies the HTTP Method which the request be using. Possible values include DELETE,GET,PATCH,POSTorPUT.
- Name string
- Specifies the name of the HTTP Request Trigger to be created within the Logic App Workflow. Changing this forces a new resource to be created. - NOTE: This name must be unique across all Triggers within the Logic App Workflow. 
- RelativePath string
- Specifies the Relative Path used for this Request. - NOTE: When - relative_pathis set a- methodmust also be set.
- LogicApp stringId 
- Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
- Schema string
- A JSON Blob defining the Schema of the incoming request. This needs to be valid JSON.
- Method string
- Specifies the HTTP Method which the request be using. Possible values include DELETE,GET,PATCH,POSTorPUT.
- Name string
- Specifies the name of the HTTP Request Trigger to be created within the Logic App Workflow. Changing this forces a new resource to be created. - NOTE: This name must be unique across all Triggers within the Logic App Workflow. 
- RelativePath string
- Specifies the Relative Path used for this Request. - NOTE: When - relative_pathis set a- methodmust also be set.
- logicApp StringId 
- Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
- schema String
- A JSON Blob defining the Schema of the incoming request. This needs to be valid JSON.
- method String
- Specifies the HTTP Method which the request be using. Possible values include DELETE,GET,PATCH,POSTorPUT.
- name String
- Specifies the name of the HTTP Request Trigger to be created within the Logic App Workflow. Changing this forces a new resource to be created. - NOTE: This name must be unique across all Triggers within the Logic App Workflow. 
- relativePath String
- Specifies the Relative Path used for this Request. - NOTE: When - relative_pathis set a- methodmust also be set.
- logicApp stringId 
- Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
- schema string
- A JSON Blob defining the Schema of the incoming request. This needs to be valid JSON.
- method string
- Specifies the HTTP Method which the request be using. Possible values include DELETE,GET,PATCH,POSTorPUT.
- name string
- Specifies the name of the HTTP Request Trigger to be created within the Logic App Workflow. Changing this forces a new resource to be created. - NOTE: This name must be unique across all Triggers within the Logic App Workflow. 
- relativePath string
- Specifies the Relative Path used for this Request. - NOTE: When - relative_pathis set a- methodmust also be set.
- logic_app_ strid 
- Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
- schema str
- A JSON Blob defining the Schema of the incoming request. This needs to be valid JSON.
- method str
- Specifies the HTTP Method which the request be using. Possible values include DELETE,GET,PATCH,POSTorPUT.
- name str
- Specifies the name of the HTTP Request Trigger to be created within the Logic App Workflow. Changing this forces a new resource to be created. - NOTE: This name must be unique across all Triggers within the Logic App Workflow. 
- relative_path str
- Specifies the Relative Path used for this Request. - NOTE: When - relative_pathis set a- methodmust also be set.
- logicApp StringId 
- Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
- schema String
- A JSON Blob defining the Schema of the incoming request. This needs to be valid JSON.
- method String
- Specifies the HTTP Method which the request be using. Possible values include DELETE,GET,PATCH,POSTorPUT.
- name String
- Specifies the name of the HTTP Request Trigger to be created within the Logic App Workflow. Changing this forces a new resource to be created. - NOTE: This name must be unique across all Triggers within the Logic App Workflow. 
- relativePath String
- Specifies the Relative Path used for this Request. - NOTE: When - relative_pathis set a- methodmust also be set.
Outputs
All input properties are implicitly available as output properties. Additionally, the TriggerHttpRequest resource produces the following output properties:
- CallbackUrl string
- The URL of the Trigger within the Logic App Workflow. For use with certain resources like monitor_action_group and security_center_automation.
- Id string
- The provider-assigned unique ID for this managed resource.
- CallbackUrl string
- The URL of the Trigger within the Logic App Workflow. For use with certain resources like monitor_action_group and security_center_automation.
- Id string
- The provider-assigned unique ID for this managed resource.
- callbackUrl String
- The URL of the Trigger within the Logic App Workflow. For use with certain resources like monitor_action_group and security_center_automation.
- id String
- The provider-assigned unique ID for this managed resource.
- callbackUrl string
- The URL of the Trigger within the Logic App Workflow. For use with certain resources like monitor_action_group and security_center_automation.
- id string
- The provider-assigned unique ID for this managed resource.
- callback_url str
- The URL of the Trigger within the Logic App Workflow. For use with certain resources like monitor_action_group and security_center_automation.
- id str
- The provider-assigned unique ID for this managed resource.
- callbackUrl String
- The URL of the Trigger within the Logic App Workflow. For use with certain resources like monitor_action_group and security_center_automation.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing TriggerHttpRequest Resource
Get an existing TriggerHttpRequest 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?: TriggerHttpRequestState, opts?: CustomResourceOptions): TriggerHttpRequest@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        callback_url: Optional[str] = None,
        logic_app_id: Optional[str] = None,
        method: Optional[str] = None,
        name: Optional[str] = None,
        relative_path: Optional[str] = None,
        schema: Optional[str] = None) -> TriggerHttpRequestfunc GetTriggerHttpRequest(ctx *Context, name string, id IDInput, state *TriggerHttpRequestState, opts ...ResourceOption) (*TriggerHttpRequest, error)public static TriggerHttpRequest Get(string name, Input<string> id, TriggerHttpRequestState? state, CustomResourceOptions? opts = null)public static TriggerHttpRequest get(String name, Output<String> id, TriggerHttpRequestState state, CustomResourceOptions options)resources:  _:    type: azure:logicapps:TriggerHttpRequest    get:      id: ${id}- 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.
- 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.
- CallbackUrl string
- The URL of the Trigger within the Logic App Workflow. For use with certain resources like monitor_action_group and security_center_automation.
- LogicApp stringId 
- Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
- Method string
- Specifies the HTTP Method which the request be using. Possible values include DELETE,GET,PATCH,POSTorPUT.
- Name string
- Specifies the name of the HTTP Request Trigger to be created within the Logic App Workflow. Changing this forces a new resource to be created. - NOTE: This name must be unique across all Triggers within the Logic App Workflow. 
- RelativePath string
- Specifies the Relative Path used for this Request. - NOTE: When - relative_pathis set a- methodmust also be set.
- Schema string
- A JSON Blob defining the Schema of the incoming request. This needs to be valid JSON.
- CallbackUrl string
- The URL of the Trigger within the Logic App Workflow. For use with certain resources like monitor_action_group and security_center_automation.
- LogicApp stringId 
- Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
- Method string
- Specifies the HTTP Method which the request be using. Possible values include DELETE,GET,PATCH,POSTorPUT.
- Name string
- Specifies the name of the HTTP Request Trigger to be created within the Logic App Workflow. Changing this forces a new resource to be created. - NOTE: This name must be unique across all Triggers within the Logic App Workflow. 
- RelativePath string
- Specifies the Relative Path used for this Request. - NOTE: When - relative_pathis set a- methodmust also be set.
- Schema string
- A JSON Blob defining the Schema of the incoming request. This needs to be valid JSON.
- callbackUrl String
- The URL of the Trigger within the Logic App Workflow. For use with certain resources like monitor_action_group and security_center_automation.
- logicApp StringId 
- Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
- method String
- Specifies the HTTP Method which the request be using. Possible values include DELETE,GET,PATCH,POSTorPUT.
- name String
- Specifies the name of the HTTP Request Trigger to be created within the Logic App Workflow. Changing this forces a new resource to be created. - NOTE: This name must be unique across all Triggers within the Logic App Workflow. 
- relativePath String
- Specifies the Relative Path used for this Request. - NOTE: When - relative_pathis set a- methodmust also be set.
- schema String
- A JSON Blob defining the Schema of the incoming request. This needs to be valid JSON.
- callbackUrl string
- The URL of the Trigger within the Logic App Workflow. For use with certain resources like monitor_action_group and security_center_automation.
- logicApp stringId 
- Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
- method string
- Specifies the HTTP Method which the request be using. Possible values include DELETE,GET,PATCH,POSTorPUT.
- name string
- Specifies the name of the HTTP Request Trigger to be created within the Logic App Workflow. Changing this forces a new resource to be created. - NOTE: This name must be unique across all Triggers within the Logic App Workflow. 
- relativePath string
- Specifies the Relative Path used for this Request. - NOTE: When - relative_pathis set a- methodmust also be set.
- schema string
- A JSON Blob defining the Schema of the incoming request. This needs to be valid JSON.
- callback_url str
- The URL of the Trigger within the Logic App Workflow. For use with certain resources like monitor_action_group and security_center_automation.
- logic_app_ strid 
- Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
- method str
- Specifies the HTTP Method which the request be using. Possible values include DELETE,GET,PATCH,POSTorPUT.
- name str
- Specifies the name of the HTTP Request Trigger to be created within the Logic App Workflow. Changing this forces a new resource to be created. - NOTE: This name must be unique across all Triggers within the Logic App Workflow. 
- relative_path str
- Specifies the Relative Path used for this Request. - NOTE: When - relative_pathis set a- methodmust also be set.
- schema str
- A JSON Blob defining the Schema of the incoming request. This needs to be valid JSON.
- callbackUrl String
- The URL of the Trigger within the Logic App Workflow. For use with certain resources like monitor_action_group and security_center_automation.
- logicApp StringId 
- Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
- method String
- Specifies the HTTP Method which the request be using. Possible values include DELETE,GET,PATCH,POSTorPUT.
- name String
- Specifies the name of the HTTP Request Trigger to be created within the Logic App Workflow. Changing this forces a new resource to be created. - NOTE: This name must be unique across all Triggers within the Logic App Workflow. 
- relativePath String
- Specifies the Relative Path used for this Request. - NOTE: When - relative_pathis set a- methodmust also be set.
- schema String
- A JSON Blob defining the Schema of the incoming request. This needs to be valid JSON.
Import
Logic App HTTP Request Triggers can be imported using the resource id, e.g.
$ pulumi import azure:logicapps/triggerHttpRequest:TriggerHttpRequest request1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Logic/workflows/workflow1/triggers/request1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the azurermTerraform Provider.