webhooks
Creates, updates, deletes, gets or lists a webhooks
resource.
Overview
Name | webhooks |
Type | Resource |
Id | azure_extras.app_compliance_automation.webhooks |
Fields
- vw_webhooks
- webhooks
Name | Datatype | Description |
---|---|---|
content_type | text | field from the properties object |
delivery_status | text | field from the properties object |
enable_ssl_verification | text | field from the properties object |
events | text | field from the properties object |
payload_url | text | field from the properties object |
provisioning_state | text | field from the properties object |
reportName | text | field from the properties object |
send_all_events | text | field from the properties object |
status | text | field from the properties object |
tenant_id | text | field from the properties object |
update_webhook_key | text | field from the properties object |
webhookName | text | field from the properties object |
webhook_id | text | field from the properties object |
webhook_key | text | field from the properties object |
webhook_key_enabled | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Webhook properties. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | reportName, webhookName | Get the AppComplianceAutomation webhook and its properties. |
list | SELECT | reportName | Get the AppComplianceAutomation webhook list. |
create_or_update | INSERT | reportName, webhookName, data__properties | Create a new AppComplianceAutomation webhook or update an exiting AppComplianceAutomation webhook. |
delete | DELETE | reportName, webhookName | Delete an AppComplianceAutomation webhook. |
update | UPDATE | reportName, webhookName | Update an exiting AppComplianceAutomation webhook. |
SELECT
examples
Get the AppComplianceAutomation webhook list.
- vw_webhooks
- webhooks
SELECT
content_type,
delivery_status,
enable_ssl_verification,
events,
payload_url,
provisioning_state,
reportName,
send_all_events,
status,
tenant_id,
update_webhook_key,
webhookName,
webhook_id,
webhook_key,
webhook_key_enabled
FROM azure_extras.app_compliance_automation.vw_webhooks
WHERE reportName = '{{ reportName }}';
SELECT
properties
FROM azure_extras.app_compliance_automation.webhooks
WHERE reportName = '{{ reportName }}';
INSERT
example
Use the following StackQL query and manifest file to create a new webhooks
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure_extras.app_compliance_automation.webhooks (
reportName,
webhookName,
data__properties,
properties
)
SELECT
'{{ reportName }}',
'{{ webhookName }}',
'{{ data__properties }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: webhookId
value: string
- name: status
value: []
- name: tenantId
value: string
- name: sendAllEvents
value: []
- name: events
value:
- []
- name: payloadUrl
value: string
- name: contentType
value: []
- name: webhookKey
value: string
- name: updateWebhookKey
value: []
- name: webhookKeyEnabled
value: []
- name: enableSslVerification
value: []
- name: deliveryStatus
value: []
- name: provisioningState
value: []
UPDATE
example
Updates a webhooks
resource.
/*+ update */
UPDATE azure_extras.app_compliance_automation.webhooks
SET
properties = '{{ properties }}'
WHERE
reportName = '{{ reportName }}'
AND webhookName = '{{ webhookName }}';
DELETE
example
Deletes the specified webhooks
resource.
/*+ delete */
DELETE FROM azure_extras.app_compliance_automation.webhooks
WHERE reportName = '{{ reportName }}'
AND webhookName = '{{ webhookName }}';