Skip to main content

ms_teams_tenant_based_handles

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

Overview

Namems_teams_tenant_based_handles
TypeResource
Iddatadog.integrations.ms_teams_tenant_based_handles

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the tenant-based handle. (example: 596da4af-0563-4097-90ff-07230c3f9db3)
attributesobjectTenant-based handle attributes.
typestringSpecifies the tenant-based handle resource type. (default: tenant-based-handle, example: tenant-based-handle)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_tenant_based_handleselecthandle_id, regionGet the tenant, team, and channel information of a tenant-based handle from the Datadog Microsoft Teams integration.
list_tenant_based_handlesselectregiontenant_id, nameGet a list of all tenant-based handles from the Datadog Microsoft Teams integration.
create_tenant_based_handleinsertregion, data__dataCreate a tenant-based handle in the Datadog Microsoft Teams integration.
update_tenant_based_handleupdatehandle_id, region, data__dataUpdate a tenant-based handle from the Datadog Microsoft Teams integration.
delete_tenant_based_handledeletehandle_id, regionDelete a tenant-based 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.

NameDatatypeDescription
handle_idstringYour tenant-based handle id.
regionstring(default: datadoghq.com)
namestringYour tenant-based handle name.
tenant_idstringYour tenant id.

SELECT examples

Get the tenant, team, and channel information of a tenant-based handle from the Datadog Microsoft Teams integration.

SELECT
id,
attributes,
type
FROM datadog.integrations.ms_teams_tenant_based_handles
WHERE handle_id = '{{ handle_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Create a tenant-based handle in the Datadog Microsoft Teams integration.

INSERT INTO datadog.integrations.ms_teams_tenant_based_handles (
data__data,
region
)
SELECT
'{{ data }}' /* required */,
'{{ region }}'
RETURNING
data
;

UPDATE examples

Update a tenant-based handle from the Datadog Microsoft Teams integration.

UPDATE datadog.integrations.ms_teams_tenant_based_handles
SET
data__data = '{{ data }}'
WHERE
handle_id = '{{ handle_id }}' --required
AND region = '{{ region }}' --required
AND data__data = '{{ data }}' --required
RETURNING
data;

DELETE examples

Delete a tenant-based handle from the Datadog Microsoft Teams integration.

DELETE FROM datadog.integrations.ms_teams_tenant_based_handles
WHERE handle_id = '{{ handle_id }}' --required
AND region = '{{ region }}' --required
;