Manages a HTTP Request Trigger within a Logic App Workflow
resource "azurerm_resource_group" "example" {
name = "workflow-resources"
location = "West Europe"
}
resource "azurerm_logic_app_workflow" "example" {
name = "workflow1"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
}
resource "azurerm_logic_app_trigger_http_request" "example" {
name = "some-http-trigger"
logic_app_id = azurerm_logic_app_workflow.example.id
schema = <<SCHEMA
{
"type": "object",
"properties": {
"hello": {
"type": "string"
}
}
}
SCHEMA
}
The following arguments are supported:
name
- (Required) 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.logic_app_id
- (Required) Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
schema
- (Required) A JSON Blob defining the Schema of the incoming request. This needs to be valid JSON.
method
- (Optional) Specifies the HTTP Method which the request be using. Possible values include DELETE
, GET
, PATCH
, POST
or PUT
.
relative_path
- (Optional) Specifies the Relative Path used for this Request.
In addition to the Arguments listed above - the following Attributes are exported:
id
- The ID of the HTTP Request Trigger within the Logic App Workflow.
callback_url
- The URL for the workflow trigger
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 30 minutes) Used when creating the Logic App HTTP Request Trigger.update
- (Defaults to 30 minutes) Used when updating the Logic App HTTP Request Trigger.read
- (Defaults to 5 minutes) Used when retrieving the Logic App HTTP Request Trigger.delete
- (Defaults to 30 minutes) Used when deleting the Logic App HTTP Request Trigger.Logic App HTTP Request Triggers can be imported using the resource id
, e.g.
terraform import azurerm_logic_app_trigger_http_request.request1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Logic/workflows/workflow1/triggers/request1