Skip to main content

product_analytics_mapping_connections

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

Overview

Nameproduct_analytics_mapping_connections
TypeResource
Iddatadog.digital_experience.product_analytics_mapping_connections

Fields

The following fields are returned by SELECT queries:

Successful response with list of connections

NameDatatypeDescription
idstringUnique identifier for the list connections response resource.
attributesobjectAttributes of the list connections response, containing the collection of data source connections.
typestringList connections response resource type. (list_connections_response) (default: list_connections_response, example: list_connections_response)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_connectionsselectentityList all data connections for an entity
create_connectioninsertentityCreate a new data connection and its fields for an entity
update_connectionreplaceentityUpdate an existing data connection by adding, updating, or deleting fields
delete_connectiondeleteid, entityDelete an existing data connection for an entity

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
entitystringThe entity for which to delete the connection
idstringThe connection ID to delete
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

List all data connections for an entity

SELECT
id,
attributes,
type
FROM datadog.digital_experience.product_analytics_mapping_connections
WHERE entity = '{{ entity }}' -- required
;

INSERT examples

Create a new data connection and its fields for an entity

INSERT INTO datadog.digital_experience.product_analytics_mapping_connections (
data,
entity
)
SELECT
'{{ data }}',
'{{ entity }}'
;

REPLACE examples

Update an existing data connection by adding, updating, or deleting fields

REPLACE datadog.digital_experience.product_analytics_mapping_connections
SET
data = '{{ data }}'
WHERE
entity = '{{ entity }}' --required;

DELETE examples

Delete an existing data connection for an entity

DELETE FROM datadog.digital_experience.product_analytics_mapping_connections
WHERE id = '{{ id }}' --required
AND entity = '{{ entity }}' --required
;