azure-native.automation.Webhook
Explore with Pulumi AI
Definition of the webhook type. API Version: 2015-10-31.
Example Usage
Create or update webhook
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var webhook = new AzureNative.Automation.Webhook("webhook", new()
{
AutomationAccountName = "myAutomationAccount33",
ExpiryTime = "2018-03-29T22:18:13.7002872Z",
IsEnabled = true,
Name = "TestWebhook",
ResourceGroupName = "rg",
Runbook = new AzureNative.Automation.Inputs.RunbookAssociationPropertyArgs
{
Name = "TestRunbook",
},
Uri = "<uri>",
WebhookName = "TestWebhook",
});
});
package main
import (
automation "github.com/pulumi/pulumi-azure-native-sdk/automation"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := automation.NewWebhook(ctx, "webhook", &automation.WebhookArgs{
AutomationAccountName: pulumi.String("myAutomationAccount33"),
ExpiryTime: pulumi.String("2018-03-29T22:18:13.7002872Z"),
IsEnabled: pulumi.Bool(true),
Name: pulumi.String("TestWebhook"),
ResourceGroupName: pulumi.String("rg"),
Runbook: &automation.RunbookAssociationPropertyArgs{
Name: pulumi.String("TestRunbook"),
},
Uri: pulumi.String("<uri>"),
WebhookName: pulumi.String("TestWebhook"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.automation.Webhook;
import com.pulumi.azurenative.automation.WebhookArgs;
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 webhook = new Webhook("webhook", WebhookArgs.builder()
.automationAccountName("myAutomationAccount33")
.expiryTime("2018-03-29T22:18:13.7002872Z")
.isEnabled(true)
.name("TestWebhook")
.resourceGroupName("rg")
.runbook(Map.of("name", "TestRunbook"))
.uri("<uri>")
.webhookName("TestWebhook")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
webhook = azure_native.automation.Webhook("webhook",
automation_account_name="myAutomationAccount33",
expiry_time="2018-03-29T22:18:13.7002872Z",
is_enabled=True,
name="TestWebhook",
resource_group_name="rg",
runbook=azure_native.automation.RunbookAssociationPropertyArgs(
name="TestRunbook",
),
uri="<uri>",
webhook_name="TestWebhook")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const webhook = new azure_native.automation.Webhook("webhook", {
automationAccountName: "myAutomationAccount33",
expiryTime: "2018-03-29T22:18:13.7002872Z",
isEnabled: true,
name: "TestWebhook",
resourceGroupName: "rg",
runbook: {
name: "TestRunbook",
},
uri: "<uri>",
webhookName: "TestWebhook",
});
resources:
webhook:
type: azure-native:automation:Webhook
properties:
automationAccountName: myAutomationAccount33
expiryTime: 2018-03-29T22:18:13.7002872Z
isEnabled: true
name: TestWebhook
resourceGroupName: rg
runbook:
name: TestRunbook
uri: <uri>
webhookName: TestWebhook
Create Webhook Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Webhook(name: string, args: WebhookArgs, opts?: CustomResourceOptions);
@overload
def Webhook(resource_name: str,
args: WebhookArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Webhook(resource_name: str,
opts: Optional[ResourceOptions] = None,
automation_account_name: Optional[str] = None,
name: Optional[str] = None,
resource_group_name: Optional[str] = None,
expiry_time: Optional[str] = None,
is_enabled: Optional[bool] = None,
parameters: Optional[Mapping[str, str]] = None,
run_on: Optional[str] = None,
runbook: Optional[RunbookAssociationPropertyArgs] = None,
uri: Optional[str] = None,
webhook_name: Optional[str] = None)
func NewWebhook(ctx *Context, name string, args WebhookArgs, opts ...ResourceOption) (*Webhook, error)
public Webhook(string name, WebhookArgs args, CustomResourceOptions? opts = null)
public Webhook(String name, WebhookArgs args)
public Webhook(String name, WebhookArgs args, CustomResourceOptions options)
type: azure-native:automation:Webhook
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 WebhookArgs
- 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 WebhookArgs
- 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 WebhookArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WebhookArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WebhookArgs
- 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 webhookResource = new AzureNative.Automation.Webhook("webhookResource", new()
{
AutomationAccountName = "string",
Name = "string",
ResourceGroupName = "string",
ExpiryTime = "string",
IsEnabled = false,
Parameters =
{
{ "string", "string" },
},
RunOn = "string",
Runbook =
{
{ "name", "string" },
},
Uri = "string",
WebhookName = "string",
});
example, err := automation.NewWebhook(ctx, "webhookResource", &automation.WebhookArgs{
AutomationAccountName: "string",
Name: "string",
ResourceGroupName: "string",
ExpiryTime: "string",
IsEnabled: false,
Parameters: map[string]interface{}{
"string": "string",
},
RunOn: "string",
Runbook: map[string]interface{}{
"name": "string",
},
Uri: "string",
WebhookName: "string",
})
var webhookResource = new Webhook("webhookResource", WebhookArgs.builder()
.automationAccountName("string")
.name("string")
.resourceGroupName("string")
.expiryTime("string")
.isEnabled(false)
.parameters(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.runOn("string")
.runbook(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.uri("string")
.webhookName("string")
.build());
webhook_resource = azure_native.automation.Webhook("webhookResource",
automation_account_name=string,
name=string,
resource_group_name=string,
expiry_time=string,
is_enabled=False,
parameters={
string: string,
},
run_on=string,
runbook={
name: string,
},
uri=string,
webhook_name=string)
const webhookResource = new azure_native.automation.Webhook("webhookResource", {
automationAccountName: "string",
name: "string",
resourceGroupName: "string",
expiryTime: "string",
isEnabled: false,
parameters: {
string: "string",
},
runOn: "string",
runbook: {
name: "string",
},
uri: "string",
webhookName: "string",
});
type: azure-native:automation:Webhook
properties:
automationAccountName: string
expiryTime: string
isEnabled: false
name: string
parameters:
string: string
resourceGroupName: string
runOn: string
runbook:
name: string
uri: string
webhookName: string
Webhook Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Webhook resource accepts the following input properties:
- Automation
Account stringName - The name of the automation account.
- Name string
- Gets or sets the name of the webhook.
- Resource
Group stringName - Name of an Azure Resource group.
- Expiry
Time string - Gets or sets the expiry time.
- Is
Enabled bool - Gets or sets the value of the enabled flag of webhook.
- Parameters Dictionary<string, string>
- Gets or sets the parameters of the job.
- Run
On string - Gets or sets the name of the hybrid worker group the webhook job will run on.
- Runbook
Pulumi.
Azure Native. Automation. Inputs. Runbook Association Property - Gets or sets the runbook.
- Uri string
- Gets or sets the uri.
- Webhook
Name string - The webhook name.
- Automation
Account stringName - The name of the automation account.
- Name string
- Gets or sets the name of the webhook.
- Resource
Group stringName - Name of an Azure Resource group.
- Expiry
Time string - Gets or sets the expiry time.
- Is
Enabled bool - Gets or sets the value of the enabled flag of webhook.
- Parameters map[string]string
- Gets or sets the parameters of the job.
- Run
On string - Gets or sets the name of the hybrid worker group the webhook job will run on.
- Runbook
Runbook
Association Property Args - Gets or sets the runbook.
- Uri string
- Gets or sets the uri.
- Webhook
Name string - The webhook name.
- automation
Account StringName - The name of the automation account.
- name String
- Gets or sets the name of the webhook.
- resource
Group StringName - Name of an Azure Resource group.
- expiry
Time String - Gets or sets the expiry time.
- is
Enabled Boolean - Gets or sets the value of the enabled flag of webhook.
- parameters Map<String,String>
- Gets or sets the parameters of the job.
- run
On String - Gets or sets the name of the hybrid worker group the webhook job will run on.
- runbook
Runbook
Association Property - Gets or sets the runbook.
- uri String
- Gets or sets the uri.
- webhook
Name String - The webhook name.
- automation
Account stringName - The name of the automation account.
- name string
- Gets or sets the name of the webhook.
- resource
Group stringName - Name of an Azure Resource group.
- expiry
Time string - Gets or sets the expiry time.
- is
Enabled boolean - Gets or sets the value of the enabled flag of webhook.
- parameters {[key: string]: string}
- Gets or sets the parameters of the job.
- run
On string - Gets or sets the name of the hybrid worker group the webhook job will run on.
- runbook
Runbook
Association Property - Gets or sets the runbook.
- uri string
- Gets or sets the uri.
- webhook
Name string - The webhook name.
- automation_
account_ strname - The name of the automation account.
- name str
- Gets or sets the name of the webhook.
- resource_
group_ strname - Name of an Azure Resource group.
- expiry_
time str - Gets or sets the expiry time.
- is_
enabled bool - Gets or sets the value of the enabled flag of webhook.
- parameters Mapping[str, str]
- Gets or sets the parameters of the job.
- run_
on str - Gets or sets the name of the hybrid worker group the webhook job will run on.
- runbook
Runbook
Association Property Args - Gets or sets the runbook.
- uri str
- Gets or sets the uri.
- webhook_
name str - The webhook name.
- automation
Account StringName - The name of the automation account.
- name String
- Gets or sets the name of the webhook.
- resource
Group StringName - Name of an Azure Resource group.
- expiry
Time String - Gets or sets the expiry time.
- is
Enabled Boolean - Gets or sets the value of the enabled flag of webhook.
- parameters Map<String>
- Gets or sets the parameters of the job.
- run
On String - Gets or sets the name of the hybrid worker group the webhook job will run on.
- runbook Property Map
- Gets or sets the runbook.
- uri String
- Gets or sets the uri.
- webhook
Name String - The webhook name.
Outputs
All input properties are implicitly available as output properties. Additionally, the Webhook resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Type string
- The type of the resource.
- Creation
Time string - Gets or sets the creation time.
- Description string
- Gets or sets the description.
- Last
Invoked stringTime - Gets or sets the last invoked time.
- Last
Modified stringBy - Details of the user who last modified the Webhook
- Last
Modified stringTime - Gets or sets the last modified time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Type string
- The type of the resource.
- Creation
Time string - Gets or sets the creation time.
- Description string
- Gets or sets the description.
- Last
Invoked stringTime - Gets or sets the last invoked time.
- Last
Modified stringBy - Details of the user who last modified the Webhook
- Last
Modified stringTime - Gets or sets the last modified time.
- id String
- The provider-assigned unique ID for this managed resource.
- type String
- The type of the resource.
- creation
Time String - Gets or sets the creation time.
- description String
- Gets or sets the description.
- last
Invoked StringTime - Gets or sets the last invoked time.
- last
Modified StringBy - Details of the user who last modified the Webhook
- last
Modified StringTime - Gets or sets the last modified time.
- id string
- The provider-assigned unique ID for this managed resource.
- type string
- The type of the resource.
- creation
Time string - Gets or sets the creation time.
- description string
- Gets or sets the description.
- last
Invoked stringTime - Gets or sets the last invoked time.
- last
Modified stringBy - Details of the user who last modified the Webhook
- last
Modified stringTime - Gets or sets the last modified time.
- id str
- The provider-assigned unique ID for this managed resource.
- type str
- The type of the resource.
- creation_
time str - Gets or sets the creation time.
- description str
- Gets or sets the description.
- last_
invoked_ strtime - Gets or sets the last invoked time.
- last_
modified_ strby - Details of the user who last modified the Webhook
- last_
modified_ strtime - Gets or sets the last modified time.
- id String
- The provider-assigned unique ID for this managed resource.
- type String
- The type of the resource.
- creation
Time String - Gets or sets the creation time.
- description String
- Gets or sets the description.
- last
Invoked StringTime - Gets or sets the last invoked time.
- last
Modified StringBy - Details of the user who last modified the Webhook
- last
Modified StringTime - Gets or sets the last modified time.
Supporting Types
RunbookAssociationProperty, RunbookAssociationPropertyArgs
- Name string
- Gets or sets the name of the runbook.
- Name string
- Gets or sets the name of the runbook.
- name String
- Gets or sets the name of the runbook.
- name string
- Gets or sets the name of the runbook.
- name str
- Gets or sets the name of the runbook.
- name String
- Gets or sets the name of the runbook.
RunbookAssociationPropertyResponse, RunbookAssociationPropertyResponseArgs
- Name string
- Gets or sets the name of the runbook.
- Name string
- Gets or sets the name of the runbook.
- name String
- Gets or sets the name of the runbook.
- name string
- Gets or sets the name of the runbook.
- name str
- Gets or sets the name of the runbook.
- name String
- Gets or sets the name of the runbook.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:automation:Webhook TestWebhook /subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/webhooks/TestWebhook
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0