ms_teams_channels
Creates, updates, deletes, gets or lists a ms_teams_channels resource.
Overview
| Name | ms_teams_channels | 
| Type | Resource | 
| Id | datadog.integrations.ms_teams_channels | 
Fields
The following fields are returned by SELECT queries:
- get_channel_by_name
| Name | Datatype | Description | 
|---|---|---|
| id | string | The ID of the channel. (example: 19:b41k24b14bn1nwffkernfkwrnfneubgkr@thread.tacv2) | 
| attributes | object | Channel attributes. | 
| type | string | Channel info resource type. (default: ms-teams-channel-info, example: ms-teams-channel-info) | 
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description | 
|---|---|---|---|---|
| get_channel_by_name | select | tenant_name,team_name,channel_name,region | Get the tenant, team, and channel ID of a channel in 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 | 
|---|---|---|
| channel_name | string | Your channel name. | 
| region | string | (default: datadoghq.com) | 
| team_name | string | Your team name. | 
| tenant_name | string | Your tenant name. | 
SELECT examples
- get_channel_by_name
Get the tenant, team, and channel ID of a channel in the Datadog Microsoft Teams integration.
SELECT
id,
attributes,
type
FROM datadog.integrations.ms_teams_channels
WHERE tenant_name = '{{ tenant_name }}' -- required
AND team_name = '{{ team_name }}' -- required
AND channel_name = '{{ channel_name }}' -- required
AND region = '{{ region }}' -- required
;