Skip to main content

synthetics_private_locations

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

Overview

Namesynthetics_private_locations
TypeResource
Iddatadog.monitoring.synthetics_private_locations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringUnique identifier of the private location.
namestringName of the private location. (example: New private location)
descriptionstringDescription of the private location. (example: Description of private location)
metadataobjectObject containing metadata about the private location.
secretsobjectSecrets for the private location. Only present in the response when creating the private location.
tagsarrayArray of tags attached to the private location.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_private_locationselectlocation_idGet a Synthetic private location.
create_private_locationinsertname, description, tagsCreate a new Synthetic private location.
update_private_locationreplacelocation_id, name, description, tagsEdit a Synthetic private location.
delete_private_locationdeletelocation_idDelete a Synthetic private location.

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
location_idstringThe ID of the private location.
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 a Synthetic private location.

SELECT
id,
name,
description,
metadata,
secrets,
tags
FROM datadog.monitoring.synthetics_private_locations
WHERE location_id = '{{ location_id }}' -- required
;

INSERT examples

Create a new Synthetic private location.

INSERT INTO datadog.monitoring.synthetics_private_locations (
description,
metadata,
name,
tags
)
SELECT
'{{ description }}' /* required */,
'{{ metadata }}',
'{{ name }}' /* required */,
'{{ tags }}' /* required */
RETURNING
config,
private_location,
result_encryption
;

REPLACE examples

Edit a Synthetic private location.

REPLACE datadog.monitoring.synthetics_private_locations
SET
description = '{{ description }}',
metadata = '{{ metadata }}',
name = '{{ name }}',
tags = '{{ tags }}'
WHERE
location_id = '{{ location_id }}' --required
AND name = '{{ name }}' --required
AND description = '{{ description }}' --required
AND tags = '{{ tags }}' --required
RETURNING
id,
name,
description,
metadata,
secrets,
tags;

DELETE examples

Delete a Synthetic private location.

DELETE FROM datadog.monitoring.synthetics_private_locations
WHERE location_id = '{{ location_id }}' --required
;