Skip to main content

google_chat_organization_organization_handles

Creates, updates, deletes, gets or lists a google_chat_organization_organization_handles resource.

Overview

Namegoogle_chat_organization_organization_handles
TypeResource
Iddatadog.integrations.google_chat_organization_organization_handles

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the organization handle. (example: 596da4af-0563-4097-90ff-07230c3f9db3)
attributesobjectOrganization handle attributes.
typestringOrganization 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:

NameAccessible byRequired ParamsOptional ParamsDescription
get_organization_handleselectorganization_binding_id, handle_idGet an organization handle from the Datadog Google Chat integration.
list_organization_handlesselectorganization_binding_idGet a list of all organization handles from the Datadog Google Chat integration.
create_organization_handleinsertorganization_binding_id, type, dataCreate an organization handle in the Datadog Google Chat integration.
update_organization_handleupdateorganization_binding_id, handle_id, type, dataUpdate an organization handle from the Datadog Google Chat integration.
delete_organization_handledeleteorganization_binding_id, handle_idDelete 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.

NameDatatypeDescription
handle_idstringYour organization handle ID.
organization_binding_idstringYour organization binding 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.

SELECT examples

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
;

INSERT examples

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
;

UPDATE examples

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 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
;