Webhook

class Webhook : KotlinCustomResource

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

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

Properties

Link copied to clipboard
val creationTime: Output<String>?

Gets or sets the creation time.

Link copied to clipboard
val description: Output<String>?

Gets or sets the description.

Link copied to clipboard
val expiryTime: Output<String>?

Gets or sets the expiry time.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val isEnabled: Output<Boolean>?

Gets or sets the value of the enabled flag of the webhook.

Link copied to clipboard
val lastInvokedTime: Output<String>?

Gets or sets the last invoked time.

Link copied to clipboard
val lastModifiedBy: Output<String>?

Details of the user who last modified the Webhook

Link copied to clipboard
val lastModifiedTime: Output<String>?

Gets or sets the last modified time.

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard
val parameters: Output<Map<String, String>>?

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
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Gets or sets the runbook the webhook is associated with.

Link copied to clipboard
val runOn: Output<String>?

Gets or sets the name of the hybrid worker group the webhook job will run on.

Link copied to clipboard
val type: Output<String>

The type of the resource.

Link copied to clipboard
val uri: Output<String>?

Gets or sets the webhook uri.

Link copied to clipboard
val urn: Output<String>