Skip to main content

webhook

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

Overview

Namewebhook
TypeResource
Idazure_extras.app_compliance_automation.webhook

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long
namestringThe name of the resource.
contentTypestringcontent type. "application/json"
deliveryStatusstringwebhook deliveryStatus. Known values are: "Succeeded", "Failed", and "NotStarted".
enableSslVerificationstringwhether to enable ssl verification. Known values are: "true" and "false".
eventsarrayunder which event notification should be sent.
payloadUrlstringwebhook payload url.
provisioningStatestringAzure Resource Provisioning State. Known values are: "Succeeded", "Failed", "Canceled", "Creating", "Deleting", "Fixing", "Verifying", and "Updating".
sendAllEventsstringwhether to send notification under any event. Known values are: "true" and "false".
statusstringWebhook status. Known values are: "Enabled" and "Disabled".
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tenantIdstringTenant id.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
updateWebhookKeystringwhether to update webhookKey. Known values are: "true" and "false".
webhookIdstringWebhook id in database.
webhookKeystringwebhook secret token. If not set, this field value is null; otherwise, please set a string value.
webhookKeyEnabledstringwhether webhookKey is enabled. Known values are: "true" and "false".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectreport_name, webhook_nameGet the AppComplianceAutomation webhook and its properties.
listselectreport_name$skipToken, $top, $select, $filter, $orderby, offerGuid, reportCreatorTenantIdGet the AppComplianceAutomation webhook list.
create_or_updateinsertreport_name, webhook_name, propertiesCreate a new AppComplianceAutomation webhook or update an exiting AppComplianceAutomation webhook.
updateupdatereport_name, webhook_nameUpdate an exiting AppComplianceAutomation webhook.
create_or_updatereplacereport_name, webhook_name, propertiesCreate a new AppComplianceAutomation webhook or update an exiting AppComplianceAutomation webhook.
deletedeletereport_name, webhook_nameDelete an AppComplianceAutomation webhook.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
report_namestringReport Name. Required.
webhook_namestringWebhook Name. Required.
$filterstringThe filter to apply on the operation. Default value is None.
$orderbystringOData order by query option. Default value is None.
$selectstringOData Select statement. Limits the properties on each entry to just those requested, e.g. ?$select=reportName,id. Default value is None.
$skipTokenstringSkip over when retrieving results. Default value is None.
$topintegerNumber of elements to return when retrieving results. Default value is None.
offerGuidstringThe offerGuid which mapping to the reports. Default value is None.
reportCreatorTenantIdstringThe tenant id of the report creator. Default value is None.

SELECT examples

Get the AppComplianceAutomation webhook and its properties.

SELECT
id,
name,
contentType,
deliveryStatus,
enableSslVerification,
events,
payloadUrl,
provisioningState,
sendAllEvents,
status,
systemData,
tenantId,
type,
updateWebhookKey,
webhookId,
webhookKey,
webhookKeyEnabled
FROM azure_extras.app_compliance_automation.webhook
WHERE report_name = '{{ report_name }}' -- required
AND webhook_name = '{{ webhook_name }}' -- required
;

INSERT examples

Create a new AppComplianceAutomation webhook or update an exiting AppComplianceAutomation webhook.

INSERT INTO azure_extras.app_compliance_automation.webhook (
properties,
report_name,
webhook_name
)
SELECT
'{{ properties }}' /* required */,
'{{ report_name }}',
'{{ webhook_name }}'
RETURNING
id,
name,
properties,
systemData,
type
;

UPDATE examples

Update an exiting AppComplianceAutomation webhook.

UPDATE azure_extras.app_compliance_automation.webhook
SET
properties = '{{ properties }}'
WHERE
report_name = '{{ report_name }}' --required
AND webhook_name = '{{ webhook_name }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

REPLACE examples

Create a new AppComplianceAutomation webhook or update an exiting AppComplianceAutomation webhook.

REPLACE azure_extras.app_compliance_automation.webhook
SET
properties = '{{ properties }}'
WHERE
report_name = '{{ report_name }}' --required
AND webhook_name = '{{ webhook_name }}' --required
AND properties = '{{ properties }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Delete an AppComplianceAutomation webhook.

DELETE FROM azure_extras.app_compliance_automation.webhook
WHERE report_name = '{{ report_name }}' --required
AND webhook_name = '{{ webhook_name }}' --required
;