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. (ms-teams-channel-info) (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 | 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. |
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. |
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
;