Skip to main content

synthetics_test_files

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

Overview

Namesynthetics_test_files
TypeResource
Iddatadog.monitoring.synthetics_test_files

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_test_file_download_urlexecpublic_id, bucketKeyGet a presigned URL to download a file attached to a Synthetic test.<br />The returned URL is temporary and expires after a short period.
get_test_file_multipart_presigned_urlsexecpublic_id, bucketKeyPrefix, partsGet presigned URLs for uploading a file to a Synthetic test using multipart upload.<br />Returns the presigned URLs for each part along with the bucket key that references the file.
abort_test_file_multipart_uploadexecpublic_id, uploadId, keyAbort an in-progress multipart file upload for a Synthetic test. This cancels the upload<br />and releases any storage used by already-uploaded parts.
complete_test_file_multipart_uploadexecpublic_id, uploadId, key, partsComplete a multipart file upload for a Synthetic test. Call this endpoint after all parts<br />have been uploaded using the presigned URLs obtained from the multipart presigned URLs endpoint.

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
public_idstringThe public ID of the Synthetic test.
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.

Lifecycle Methods

EXEC variables use wire (API) names.

Get a presigned URL to download a file attached to a Synthetic test.<br />The returned URL is temporary and expires after a short period.

EXEC datadog.monitoring.synthetics_test_files.get_test_file_download_url
@public_id='{{ public_id }}' --required,
@@json=
'{
"bucketKey": "{{ bucketKey }}"
}'
;