ms_teams_workflows_webhook_handles
Creates, updates, deletes, gets or lists a ms_teams_workflows_webhook_handles resource.
Overview
| Name | ms_teams_workflows_webhook_handles |
| Type | Resource |
| Id | datadog.integrations.ms_teams_workflows_webhook_handles |
Fields
The following fields are returned by SELECT queries:
- get_workflows_webhook_handle
- list_workflows_webhook_handles
| Name | Datatype | Description |
|---|---|---|
id | string | The ID of the Workflows webhook handle. (example: 596da4af-0563-4097-90ff-07230c3f9db3) |
attributes | object | Workflows Webhook handle attributes. |
type | string | Specifies the Workflows webhook handle resource type. (workflows-webhook-handle) (default: workflows-webhook-handle, example: workflows-webhook-handle) |
| Name | Datatype | Description |
|---|---|---|
id | string | The ID of the Workflows webhook handle. (example: 596da4af-0563-4097-90ff-07230c3f9db3) |
attributes | object | Workflows Webhook handle attributes. |
type | string | Specifies the Workflows webhook handle resource type. (workflows-webhook-handle) (default: workflows-webhook-handle, example: workflows-webhook-handle) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_workflows_webhook_handle | select | handle_id | Get the name of a Workflows webhook handle from the Datadog Microsoft Teams integration. | |
list_workflows_webhook_handles | select | name | Get a list of all Workflows webhook handles from the Datadog Microsoft Teams integration. | |
create_workflows_webhook_handle | insert | data | Create a Workflows webhook handle in the Datadog Microsoft Teams integration. | |
update_workflows_webhook_handle | update | handle_id, data | Update a Workflows webhook handle from the Datadog Microsoft Teams integration. | |
delete_workflows_webhook_handle | delete | handle_id | Delete a Workflows webhook handle from the Datadog Microsoft Teams integration. |
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.
| Name | Datatype | Description |
|---|---|---|
handle_id | string | Your Workflows webhook handle id. |
site | string | The Datadog site (region) for your organization, for example datadoghq.com, us3.datadoghq.com, us5.datadoghq.com, ap1.datadoghq.com, ap2.datadoghq.com, datadoghq.eu, ddog-gov.com. Resolved from the DD_SITE environment variable when set. Optional: defaults to datadoghq.com, or the value of the DD_SITE environment variable when set; a WHERE value overrides both. |
name | string | Your Workflows webhook handle name. |
SELECT examples
- get_workflows_webhook_handle
- list_workflows_webhook_handles
Get the name of a Workflows webhook handle from the Datadog Microsoft Teams integration.
SELECT
id,
attributes,
type
FROM datadog.integrations.ms_teams_workflows_webhook_handles
WHERE handle_id = '{{ handle_id }}' -- required
;
Get a list of all Workflows webhook handles from the Datadog Microsoft Teams integration.
SELECT
id,
attributes,
type
FROM datadog.integrations.ms_teams_workflows_webhook_handles
WHERE name = '{{ name }}'
;
INSERT examples
- create_workflows_webhook_handle
- Manifest
Create a Workflows webhook handle in the Datadog Microsoft Teams integration.
INSERT INTO datadog.integrations.ms_teams_workflows_webhook_handles (
data
)
SELECT
'{{ data }}' /* required */
RETURNING
data
;
# Description fields are for documentation purposes
- name: ms_teams_workflows_webhook_handles
props:
- name: data
description: |
Workflows Webhook handle data from a response.
value:
attributes:
name: "{{ name }}"
url: "{{ url }}"
type: "{{ type }}"
UPDATE examples
- update_workflows_webhook_handle
Update a Workflows webhook handle from the Datadog Microsoft Teams integration.
UPDATE datadog.integrations.ms_teams_workflows_webhook_handles
SET
data = '{{ data }}'
WHERE
handle_id = '{{ handle_id }}' --required
AND data = '{{ data }}' --required
RETURNING
data;
DELETE examples
- delete_workflows_webhook_handle
Delete a Workflows webhook handle from the Datadog Microsoft Teams integration.
DELETE FROM datadog.integrations.ms_teams_workflows_webhook_handles
WHERE handle_id = '{{ handle_id }}' --required
;