Webhook Args
data class WebhookArgs(val automationAccountName: Output<String>? = null, val expiryTime: Output<String>? = null, val isEnabled: Output<Boolean>? = null, val name: Output<String>? = null, val parameters: Output<Map<String, String>>? = null, val resourceGroupName: Output<String>? = null, val runOn: Output<String>? = null, val runbook: Output<RunbookAssociationPropertyArgs>? = null, val uri: Output<String>? = null, val webhookName: Output<String>? = null) : ConvertibleToJava<WebhookArgs>
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",
});
});
Content copied to clipboard
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
})
}
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 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());
}
}
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/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/webhooks/{webhookName}
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(automationAccountName: Output<String>? = null, expiryTime: Output<String>? = null, isEnabled: Output<Boolean>? = null, name: Output<String>? = null, parameters: Output<Map<String, String>>? = null, resourceGroupName: Output<String>? = null, runOn: Output<String>? = null, runbook: Output<RunbookAssociationPropertyArgs>? = null, uri: Output<String>? = null, webhookName: Output<String>? = null)
Properties
Link copied to clipboard
The name of the automation account.
Link copied to clipboard
Gets or sets the expiry time.
Link copied to clipboard
Gets or sets the parameters of the job.
Link copied to clipboard
Name of an Azure Resource group.
Link copied to clipboard
Gets or sets the runbook.
Link copied to clipboard
The webhook name.