Skip to main content

webhooks

Creates, updates, deletes, gets or lists a webhooks resource.

Overview

Namewebhooks
TypeResource
Idazure.automation.webhooks

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
automationAccountNametextfield from the properties object
creation_timetextfield from the properties object
expiry_timetextfield from the properties object
is_enabledtextfield from the properties object
last_invoked_timetextfield from the properties object
last_modified_bytextfield from the properties object
last_modified_timetextfield from the properties object
parameterstextfield from the properties object
resourceGroupNametextfield from the properties object
run_ontextfield from the properties object
runbooktextfield from the properties object
subscriptionIdtextfield from the properties object
uritextfield from the properties object
webhookNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTautomationAccountName, resourceGroupName, subscriptionId, webhookNameRetrieve the webhook identified by webhook name.
list_by_automation_accountSELECTautomationAccountName, resourceGroupName, subscriptionIdRetrieve a list of webhooks.
create_or_updateINSERTautomationAccountName, resourceGroupName, subscriptionId, webhookName, data__name, data__propertiesCreate the webhook identified by webhook name.
deleteDELETEautomationAccountName, resourceGroupName, subscriptionId, webhookNameDelete the webhook by name.
updateUPDATEautomationAccountName, resourceGroupName, subscriptionId, webhookNameUpdate the webhook identified by webhook name.
generate_uriEXECautomationAccountName, resourceGroupName, subscriptionIdGenerates a Uri for use in creating a webhook.

SELECT examples

Retrieve a list of webhooks.

SELECT
description,
automationAccountName,
creation_time,
expiry_time,
is_enabled,
last_invoked_time,
last_modified_by,
last_modified_time,
parameters,
resourceGroupName,
run_on,
runbook,
subscriptionId,
uri,
webhookName
FROM azure.automation.vw_webhooks
WHERE automationAccountName = '{{ automationAccountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new webhooks resource.

/*+ create */
INSERT INTO azure.automation.webhooks (
automationAccountName,
resourceGroupName,
subscriptionId,
webhookName,
data__name,
data__properties,
name,
properties
)
SELECT
'{{ automationAccountName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ webhookName }}',
'{{ data__name }}',
'{{ data__properties }}',
'{{ name }}',
'{{ properties }}'
;

UPDATE example

Updates a webhooks resource.

/*+ update */
UPDATE azure.automation.webhooks
SET
name = '{{ name }}',
properties = '{{ properties }}'
WHERE
automationAccountName = '{{ automationAccountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND webhookName = '{{ webhookName }}';

DELETE example

Deletes the specified webhooks resource.

/*+ delete */
DELETE FROM azure.automation.webhooks
WHERE automationAccountName = '{{ automationAccountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND webhookName = '{{ webhookName }}';