Webhook
Definition of the webhook type. Uses Azure REST API version 2023-05-15-preview. In version 2.x of the Azure Native provider, it used API version 2015-10-31. Other available API versions: 2015-10-31, 2024-10-23. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native automation [ApiVersion]
. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.
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/v3"
"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 com.pulumi.azurenative.automation.inputs.RunbookAssociationPropertyArgs;
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(RunbookAssociationPropertyArgs.builder()
.name("TestRunbook")
.build())
.uri("<uri>")
.webhookName("TestWebhook")
.build());
}
}
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:automation:Webhook TestWebhook /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/webhooks/{webhookName}
Properties
The Azure API version of the resource.
Gets or sets the creation time.
Gets or sets the description.
Gets or sets the expiry time.
Gets or sets the last invoked time.
Details of the user who last modified the Webhook
Gets or sets the last modified time.
Gets or sets the parameters of the job that is created when the webhook calls the runbook it is associated with.
Gets or sets the runbook the webhook is associated with.
Azure Resource Manager metadata containing createdBy and modifiedBy information.