1. Packages
  2. Datadog Provider
  3. API Docs
  4. getSyntheticsTest
Datadog v4.49.0 published on Thursday, Apr 17, 2025 by Pulumi

datadog.getSyntheticsTest

Explore with Pulumi AI

Datadog v4.49.0 published on Thursday, Apr 17, 2025 by Pulumi

Use this data source to retrieve a Datadog Synthetic Test.

Using getSyntheticsTest

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getSyntheticsTest(args: GetSyntheticsTestArgs, opts?: InvokeOptions): Promise<GetSyntheticsTestResult>
function getSyntheticsTestOutput(args: GetSyntheticsTestOutputArgs, opts?: InvokeOptions): Output<GetSyntheticsTestResult>
Copy
def get_synthetics_test(test_id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetSyntheticsTestResult
def get_synthetics_test_output(test_id: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetSyntheticsTestResult]
Copy
func LookupSyntheticsTest(ctx *Context, args *LookupSyntheticsTestArgs, opts ...InvokeOption) (*LookupSyntheticsTestResult, error)
func LookupSyntheticsTestOutput(ctx *Context, args *LookupSyntheticsTestOutputArgs, opts ...InvokeOption) LookupSyntheticsTestResultOutput
Copy

> Note: This function is named LookupSyntheticsTest in the Go SDK.

public static class GetSyntheticsTest 
{
    public static Task<GetSyntheticsTestResult> InvokeAsync(GetSyntheticsTestArgs args, InvokeOptions? opts = null)
    public static Output<GetSyntheticsTestResult> Invoke(GetSyntheticsTestInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetSyntheticsTestResult> getSyntheticsTest(GetSyntheticsTestArgs args, InvokeOptions options)
public static Output<GetSyntheticsTestResult> getSyntheticsTest(GetSyntheticsTestArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: datadog:index/getSyntheticsTest:getSyntheticsTest
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

TestId This property is required. string
The synthetic test id or URL to search for
TestId This property is required. string
The synthetic test id or URL to search for
testId This property is required. String
The synthetic test id or URL to search for
testId This property is required. string
The synthetic test id or URL to search for
test_id This property is required. str
The synthetic test id or URL to search for
testId This property is required. String
The synthetic test id or URL to search for

getSyntheticsTest Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the synthetic test.
Tags List<string>
A list of tags assigned to the synthetic test.
TestId string
The synthetic test id or URL to search for
Url string
The start URL of the synthetic test.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the synthetic test.
Tags []string
A list of tags assigned to the synthetic test.
TestId string
The synthetic test id or URL to search for
Url string
The start URL of the synthetic test.
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the synthetic test.
tags List<String>
A list of tags assigned to the synthetic test.
testId String
The synthetic test id or URL to search for
url String
The start URL of the synthetic test.
id string
The provider-assigned unique ID for this managed resource.
name string
The name of the synthetic test.
tags string[]
A list of tags assigned to the synthetic test.
testId string
The synthetic test id or URL to search for
url string
The start URL of the synthetic test.
id str
The provider-assigned unique ID for this managed resource.
name str
The name of the synthetic test.
tags Sequence[str]
A list of tags assigned to the synthetic test.
test_id str
The synthetic test id or URL to search for
url str
The start URL of the synthetic test.
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the synthetic test.
tags List<String>
A list of tags assigned to the synthetic test.
testId String
The synthetic test id or URL to search for
url String
The start URL of the synthetic test.

Package Details

Repository
Datadog pulumi/pulumi-datadog
License
Apache-2.0
Notes
This Pulumi package is based on the datadog Terraform Provider.
Datadog v4.49.0 published on Thursday, Apr 17, 2025 by Pulumi