TriggerHttpRequest
Manages a HTTP Request Trigger 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 exampleTriggerHttpRequest = new Azure.LogicApps.TriggerHttpRequest("exampleTriggerHttpRequest", new Azure.LogicApps.TriggerHttpRequestArgs
{
LogicAppId = exampleWorkflow.Id,
Schema = @"{
""type"": ""object"",
""properties"": {
""hello"": {
""type"": ""string""
}
}
}
",
});
}
}
package main
import (
"fmt"
"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.NewTriggerHttpRequest(ctx, "exampleTriggerHttpRequest", &logicapps.TriggerHttpRequestArgs{
LogicAppId: exampleWorkflow.ID(),
Schema: pulumi.String(fmt.Sprintf("%v%v%v%v%v%v%v%v", "{\n", " \"type\": \"object\",\n", " \"properties\": {\n", " \"hello\": {\n", " \"type\": \"string\"\n", " }\n", " }\n", "}\n")),
})
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_trigger_http_request = azure.logicapps.TriggerHttpRequest("exampleTriggerHttpRequest",
logic_app_id=example_workflow.id,
schema="""{
"type": "object",
"properties": {
"hello": {
"type": "string"
}
}
}
""")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 exampleTriggerHttpRequest = new azure.logicapps.TriggerHttpRequest("exampleTriggerHttpRequest", {
logicAppId: exampleWorkflow.id,
schema: `{
"type": "object",
"properties": {
"hello": {
"type": "string"
}
}
}
`,
});Create a TriggerHttpRequest Resource
new TriggerHttpRequest(name: string, args: TriggerHttpRequestArgs, opts?: CustomResourceOptions);def TriggerHttpRequest(resource_name, opts=None, logic_app_id=None, method=None, name=None, relative_path=None, schema=None, __props__=None);func NewTriggerHttpRequest(ctx *Context, name string, args TriggerHttpRequestArgs, opts ...ResourceOption) (*TriggerHttpRequest, error)public TriggerHttpRequest(string name, TriggerHttpRequestArgs args, CustomResourceOptions? opts = null)- 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.
- 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 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.
TriggerHttpRequest Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The TriggerHttpRequest resource accepts the following input properties:
- Logic
App 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.
- Relative
Path string Specifies the Relative Path used for this Request.
- Logic
App 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.
- Relative
Path string Specifies the Relative Path used for this Request.
- logic
App 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.
- relative
Path string Specifies the Relative Path used for this Request.
- 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.
- relative_
path str Specifies the Relative Path used for this Request.
Outputs
All input properties are implicitly available as output properties. Additionally, the TriggerHttpRequest resource produces the following output properties:
Look up an 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): TriggerHttpRequeststatic get(resource_name, id, opts=None, logic_app_id=None, method=None, name=None, relative_path=None, schema=None, __props__=None);func 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)- 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:
- Logic
App 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.
- Relative
Path string Specifies the Relative Path used for this Request.
- Schema string
A JSON Blob defining the Schema of the incoming request. This needs to be valid JSON.
- Logic
App 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.
- Relative
Path string Specifies the Relative Path used for this Request.
- Schema string
A JSON Blob defining the Schema of the incoming request. This needs to be valid JSON.
- logic
App 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.
- relative
Path string Specifies the Relative Path used for this Request.
- schema string
A JSON Blob defining the Schema of the incoming request. This needs to be valid JSON.
- 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.
- relative_
path str Specifies the Relative Path used for this Request.
- schema str
A JSON Blob defining the Schema of the incoming request. This needs to be valid JSON.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.