Skip to main content

shared_dashboard_invitations

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

Overview

Nameshared_dashboard_invitations
TypeResource
Iddatadog.dashboards.shared_dashboard_invitations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
attributesobjectAttributes of the shared dashboard invitation
typestringType for shared dashboard invitation request body. (public_dashboard_invitation) (example: public_dashboard_invitation)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_public_dashboard_invitationsselecttokenpage_size, page_numberDescribe the invitations that exist for the given shared dashboard (paginated).
send_public_dashboard_invitationinserttoken, dataSend emails to specified email addresses containing links to access a given authenticated shared dashboard. Email addresses must already belong to the authenticated shared dashboard's share_list.
delete_public_dashboard_invitationdeletetokenRevoke previously sent invitation emails and active sessions used to access a given shared dashboard for specific email addresses.

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
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.
tokenstringThe token of the shared dashboard.
page_numberinteger (int64)The page to access (base 0).
page_sizeinteger (int64)The number of records to return in a single request.

SELECT examples

Describe the invitations that exist for the given shared dashboard (paginated).

SELECT
attributes,
type
FROM datadog.dashboards.shared_dashboard_invitations
WHERE token = '{{ token }}' -- required
AND page_size = '{{ page_size }}'
AND page_number = '{{ page_number }}'
;

INSERT examples

Send emails to specified email addresses containing links to access a given authenticated shared dashboard. Email addresses must already belong to the authenticated shared dashboard's share_list.

INSERT INTO datadog.dashboards.shared_dashboard_invitations (
data,
token
)
SELECT
'{{ data }}' /* required */,
'{{ token }}'
RETURNING
data,
meta
;

DELETE examples

Revoke previously sent invitation emails and active sessions used to access a given shared dashboard for specific email addresses.

DELETE FROM datadog.dashboards.shared_dashboard_invitations
WHERE token = '{{ token }}' --required
;