google_chat_organization_organization_handles
Creates, updates, deletes, gets or lists a google_chat_organization_organization_handles resource.
Overview
| Name | google_chat_organization_organization_handles |
| Type | Resource |
| Id | datadog.integrations.google_chat_organization_organization_handles |
Fields
The following fields are returned by SELECT queries:
- get_organization_handle
- list_organization_handles
| Name | Datatype | Description |
|---|---|---|
id | string | The ID of the organization handle. (example: 596da4af-0563-4097-90ff-07230c3f9db3) |
attributes | object | Organization handle attributes. |
type | string | Organization handle resource type. (google-chat-organization-handle) (default: google-chat-organization-handle, example: google-chat-organization-handle) |
| Name | Datatype | Description |
|---|---|---|
id | string | The ID of the organization handle. (example: 596da4af-0563-4097-90ff-07230c3f9db3) |
attributes | object | Organization handle attributes. |
type | string | Organization handle resource type. (google-chat-organization-handle) (default: google-chat-organization-handle, example: google-chat-organization-handle) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_organization_handle | select | organization_binding_id, handle_id | Get an organization handle from the Datadog Google Chat integration. | |
list_organization_handles | select | organization_binding_id | Get a list of all organization handles from the Datadog Google Chat integration. | |
create_organization_handle | insert | organization_binding_id, type, data | Create an organization handle in the Datadog Google Chat integration. | |
update_organization_handle | update | organization_binding_id, handle_id, type, data | Update an organization handle from the Datadog Google Chat integration. | |
delete_organization_handle | delete | organization_binding_id, handle_id | Delete an organization handle from the Datadog Google Chat 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 organization handle ID. |
organization_binding_id | string | Your organization binding ID. |
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. |
SELECT examples
- get_organization_handle
- list_organization_handles
Get an organization handle from the Datadog Google Chat integration.
SELECT
id,
attributes,
type
FROM datadog.integrations.google_chat_organization_organization_handles
WHERE organization_binding_id = '{{ organization_binding_id }}' -- required
AND handle_id = '{{ handle_id }}' -- required
;
Get a list of all organization handles from the Datadog Google Chat integration.
SELECT
id,
attributes,
type
FROM datadog.integrations.google_chat_organization_organization_handles
WHERE organization_binding_id = '{{ organization_binding_id }}' -- required
;
INSERT examples
- create_organization_handle
- Manifest
Create an organization handle in the Datadog Google Chat integration.
INSERT INTO datadog.integrations.google_chat_organization_organization_handles (
data,
type,
organization_binding_id
)
SELECT
'{{ data }}' /* required */,
'{{ type }}' /* required */,
'{{ organization_binding_id }}'
RETURNING
data
;
# Description fields are for documentation purposes
- name: google_chat_organization_organization_handles
props:
- name: organization_binding_id
value: "{{ organization_binding_id }}"
description: Required parameter for the google_chat_organization_organization_handles resource.
- name: data
description: |
Organization handle data for a create request.
value:
attributes:
name: "{{ name }}"
space_resource_name: "{{ space_resource_name }}"
- name: type
value: "{{ type }}"
description: |
Organization handle resource type.
valid_values: ['google-chat-organization-handle']
default: google-chat-organization-handle
UPDATE examples
- update_organization_handle
Update an organization handle from the Datadog Google Chat integration.
UPDATE datadog.integrations.google_chat_organization_organization_handles
SET
data = '{{ data }}',
type = '{{ type }}'
WHERE
organization_binding_id = '{{ organization_binding_id }}' --required
AND handle_id = '{{ handle_id }}' --required
AND type = '{{ type }}' --required
AND data = '{{ data }}' --required
RETURNING
data;
DELETE examples
- delete_organization_handle
Delete an organization handle from the Datadog Google Chat integration.
DELETE FROM datadog.integrations.google_chat_organization_organization_handles
WHERE organization_binding_id = '{{ organization_binding_id }}' --required
AND handle_id = '{{ handle_id }}' --required
;