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. (tenant-based-handle) (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_idGet the tenant, team, and channel information of a tenant-based handle from the Datadog Microsoft Teams integration.
list_tenant_based_handlesselecttenant_id, nameGet a list of all tenant-based handles from the Datadog Microsoft Teams integration.
create_tenant_based_handleinsertdataCreate a tenant-based handle in the Datadog Microsoft Teams integration.
update_tenant_based_handleupdatehandle_id, dataUpdate a tenant-based handle from the Datadog Microsoft Teams integration.
delete_tenant_based_handledeletehandle_idDelete 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.
sitestringThe 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.
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
;

INSERT examples

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

INSERT INTO datadog.integrations.ms_teams_tenant_based_handles (
data
)
SELECT
'{{ data }}' /* required */
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 }}'
WHERE
handle_id = '{{ handle_id }}' --required
AND 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
;