ms_teams_tenant_based_handles
Creates, updates, deletes, gets or lists a ms_teams_tenant_based_handles resource.
Overview
| Name | ms_teams_tenant_based_handles | 
| Type | Resource | 
| Id | datadog.integrations.ms_teams_tenant_based_handles | 
Fields
The following fields are returned by SELECT queries:
- get_tenant_based_handle
- list_tenant_based_handles
| Name | Datatype | Description | 
|---|---|---|
| id | string | The ID of the tenant-based handle. (example: 596da4af-0563-4097-90ff-07230c3f9db3) | 
| attributes | object | Tenant-based handle attributes. | 
| type | string | Specifies the tenant-based handle resource type. (default: tenant-based-handle, example: tenant-based-handle) | 
| Name | Datatype | Description | 
|---|---|---|
| id | string | The ID of the tenant-based handle. (example: 596da4af-0563-4097-90ff-07230c3f9db3) | 
| attributes | object | Tenant-based handle attributes. | 
| type | string | Tenant-based handle resource type. (default: ms-teams-tenant-based-handle-info, example: ms-teams-tenant-based-handle-info) | 
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description | 
|---|---|---|---|---|
| get_tenant_based_handle | select | handle_id,region | Get the tenant, team, and channel information of a tenant-based handle from the Datadog Microsoft Teams integration. | |
| list_tenant_based_handles | select | region | tenant_id,name | Get a list of all tenant-based handles from the Datadog Microsoft Teams integration. | 
| create_tenant_based_handle | insert | region,data__data | Create a tenant-based handle in the Datadog Microsoft Teams integration. | |
| update_tenant_based_handle | update | handle_id,region,data__data | Update a tenant-based handle from the Datadog Microsoft Teams integration. | |
| delete_tenant_based_handle | delete | handle_id,region | Delete 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.
| Name | Datatype | Description | 
|---|---|---|
| handle_id | string | Your tenant-based handle id. | 
| region | string | (default: datadoghq.com) | 
| name | string | Your tenant-based handle name. | 
| tenant_id | string | Your tenant id. | 
SELECT examples
- get_tenant_based_handle
- list_tenant_based_handles
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
;
Get a list of all tenant-based handles from the Datadog Microsoft Teams integration.
SELECT
id,
attributes,
type
FROM datadog.integrations.ms_teams_tenant_based_handles
WHERE region = '{{ region }}' -- required
AND tenant_id = '{{ tenant_id }}'
AND name = '{{ name }}'
;
INSERT examples
- create_tenant_based_handle
- Manifest
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
;
# Description fields are for documentation purposes
- name: ms_teams_tenant_based_handles
  props:
    - name: region
      value: string
      description: Required parameter for the ms_teams_tenant_based_handles resource.
    - name: data
      value: object
      description: |
        Tenant-based handle data from a response.
UPDATE examples
- update_tenant_based_handle
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_tenant_based_handle
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
;