Skip to main content

webhooks

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

Overview

Namewebhooks
TypeResource
Idazure_extras.app_compliance_automation.webhooks

Fields

The following fields are returned by SELECT queries:

Azure operation completed successfully.

NameDatatypeDescription
propertiesobjectWebhook property.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectreportName, webhookNameGet the AppComplianceAutomation webhook and its properties.
listselectreportName$skipToken, $top, $select, $filter, $orderby, offerGuid, reportCreatorTenantIdGet the AppComplianceAutomation webhook list.
create_or_updateinsertreportName, webhookName, data__propertiesCreate a new AppComplianceAutomation webhook or update an exiting AppComplianceAutomation webhook.
updateupdatereportName, webhookNameUpdate an exiting AppComplianceAutomation webhook.
deletedeletereportName, webhookNameDelete 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
reportNamestringReport Name.
webhookNamestringWebhook Name.
$filterstringThe filter to apply on the operation.
$orderbystringOData order by query option.
$selectstringOData Select statement. Limits the properties on each entry to just those requested, e.g. ?$select=reportName,id.
$skipTokenstringSkip over when retrieving results.
$topinteger (int32)Number of elements to return when retrieving results.
offerGuidstringThe offerGuid which mapping to the reports.
reportCreatorTenantIdstringThe tenant id of the report creator.

SELECT examples

Get the AppComplianceAutomation webhook and its properties.

SELECT
properties
FROM azure_extras.app_compliance_automation.webhooks
WHERE reportName = '{{ reportName }}' -- required
AND webhookName = '{{ webhookName }}' -- required
;

INSERT examples

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

INSERT INTO azure_extras.app_compliance_automation.webhooks (
data__properties,
reportName,
webhookName
)
SELECT
'{{ properties }}' /* required */,
'{{ reportName }}',
'{{ webhookName }}'
RETURNING
properties
;

UPDATE examples

Update an exiting AppComplianceAutomation webhook.

UPDATE azure_extras.app_compliance_automation.webhooks
SET
data__properties = '{{ properties }}'
WHERE
reportName = '{{ reportName }}' --required
AND webhookName = '{{ webhookName }}' --required
RETURNING
properties;

DELETE examples

Delete an AppComplianceAutomation webhook.

DELETE FROM azure_extras.app_compliance_automation.webhooks
WHERE reportName = '{{ reportName }}' --required
AND webhookName = '{{ webhookName }}' --required
;