Webhook
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",
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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
Content copied to clipboard
Properties
Link copied to clipboard
Gets or sets the creation time.
Link copied to clipboard
Gets or sets the description.
Link copied to clipboard
Gets or sets the expiry time.
Link copied to clipboard
Gets or sets the last invoked time.
Link copied to clipboard
Details of the user who last modified the Webhook
Link copied to clipboard
Gets or sets the last modified time.
Link copied to clipboard
Gets or sets the parameters of the job that is created when the webhook calls the runbook it is associated with.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Gets or sets the runbook the webhook is associated with.