1. Registry
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. getZoneTracing
Viewing docs for Cloudflare v6.23.1
published on Wednesday, Oct 21, 2026 by Pulumi
cloudflare logo cloudflare logo
Viewing docs for Cloudflare v6.23.1
published on Wednesday, Oct 21, 2026 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleZoneTracing = cloudflare.getZoneTracing({
        zoneId: "zone_id",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_zone_tracing = cloudflare.get_zone_tracing(zone_id="zone_id")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudflare.GetZoneTracing(ctx, &cloudflare.LookupZoneTracingArgs{
    			ZoneId: "zone_id",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Cloudflare = Pulumi.Cloudflare;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleZoneTracing = Cloudflare.GetZoneTracing.Invoke(new()
        {
            ZoneId = "zone_id",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.CloudflareFunctions;
    import com.pulumi.cloudflare.inputs.GetZoneTracingArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var exampleZoneTracing = CloudflareFunctions.getZoneTracing(GetZoneTracingArgs.builder()
                .zoneId("zone_id")
                .build());
    
        }
    }
    
    variables:
      exampleZoneTracing:
        fn::invoke:
          function: cloudflare:getZoneTracing
          arguments:
            zoneId: zone_id
    
    terraform {
      required_providers {
        cloudflare = {
          source = "pulumi/cloudflare"
        }
      }
    }
    
    data "cloudflare_zone_tracing" "exampleZoneTracing" {
      zone_id = "zone_id"
    }
    

    Using getZoneTracing

    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 getZoneTracing(args: GetZoneTracingArgs, opts?: InvokeOptions): Promise<GetZoneTracingResult>
    function getZoneTracingOutput(args: GetZoneTracingOutputArgs, opts?: InvokeOutputOptions): Output<GetZoneTracingResult>
    def get_zone_tracing(zone_id: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetZoneTracingResult
    def get_zone_tracing_output(zone_id: pulumi.Input[Optional[str]] = None,
                         opts: Optional[InvokeOutputOptions] = None) -> Output[GetZoneTracingResult]
    func LookupZoneTracing(ctx *Context, args *LookupZoneTracingArgs, opts ...InvokeOption) (*LookupZoneTracingResult, error)
    func LookupZoneTracingOutput(ctx *Context, args *LookupZoneTracingOutputArgs, opts ...InvokeOption) LookupZoneTracingResultOutput

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

    public static class GetZoneTracing 
    {
        public static Task<GetZoneTracingResult> InvokeAsync(GetZoneTracingArgs args, InvokeOptions? opts = null)
        public static Output<GetZoneTracingResult> Invoke(GetZoneTracingInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetZoneTracingResult> Invoke(GetZoneTracingInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetZoneTracingResult> getZoneTracing(GetZoneTracingArgs args, InvokeOptions options)
    public static Output<GetZoneTracingResult> getZoneTracing(GetZoneTracingArgs args, InvokeOptions options)
    public static Output<GetZoneTracingResult> getZoneTracing(GetZoneTracingArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: cloudflare:index/getZoneTracing:getZoneTracing
      arguments:
        # arguments dictionary
    data "cloudflare_get_zone_tracing" "name" {
        # arguments
    }

    The following arguments are supported:

    ZoneId string
    Specify the zone ID.
    ZoneId string
    Specify the zone ID.
    zone_id string
    Specify the zone ID.
    zoneId String
    Specify the zone ID.
    zoneId string
    Specify the zone ID.
    zone_id str
    Specify the zone ID.
    zoneId String
    Specify the zone ID.

    getZoneTracing Result

    The following output properties are available:

    Destinations List<string>
    Up to 100 OpenTelemetry destination identifiers that receive traces.
    Enabled bool
    Whether Cloudflare Traces is enabled for the zone.
    ForwardContext bool
    Whether trace context is sent externally or across a zone boundary.
    Id string
    Specify the zone ID.
    Persist bool
    Whether traces are persisted in Cloudflare.
    PropagationPolicy string
    When inbound trace context may be continued. Authenticated propagation is not supported yet. Available values: "accept", "authenticated", "reject".
    SamplingRatio double
    The ratio of requests sampled for tracing, from 0 to 1.
    ZoneId string
    Specify the zone ID.
    Destinations []string
    Up to 100 OpenTelemetry destination identifiers that receive traces.
    Enabled bool
    Whether Cloudflare Traces is enabled for the zone.
    ForwardContext bool
    Whether trace context is sent externally or across a zone boundary.
    Id string
    Specify the zone ID.
    Persist bool
    Whether traces are persisted in Cloudflare.
    PropagationPolicy string
    When inbound trace context may be continued. Authenticated propagation is not supported yet. Available values: "accept", "authenticated", "reject".
    SamplingRatio float64
    The ratio of requests sampled for tracing, from 0 to 1.
    ZoneId string
    Specify the zone ID.
    destinations list(string)
    Up to 100 OpenTelemetry destination identifiers that receive traces.
    enabled bool
    Whether Cloudflare Traces is enabled for the zone.
    forward_context bool
    Whether trace context is sent externally or across a zone boundary.
    id string
    Specify the zone ID.
    persist bool
    Whether traces are persisted in Cloudflare.
    propagation_policy string
    When inbound trace context may be continued. Authenticated propagation is not supported yet. Available values: "accept", "authenticated", "reject".
    sampling_ratio number
    The ratio of requests sampled for tracing, from 0 to 1.
    zone_id string
    Specify the zone ID.
    destinations List<String>
    Up to 100 OpenTelemetry destination identifiers that receive traces.
    enabled Boolean
    Whether Cloudflare Traces is enabled for the zone.
    forwardContext Boolean
    Whether trace context is sent externally or across a zone boundary.
    id String
    Specify the zone ID.
    persist Boolean
    Whether traces are persisted in Cloudflare.
    propagationPolicy String
    When inbound trace context may be continued. Authenticated propagation is not supported yet. Available values: "accept", "authenticated", "reject".
    samplingRatio Double
    The ratio of requests sampled for tracing, from 0 to 1.
    zoneId String
    Specify the zone ID.
    destinations string[]
    Up to 100 OpenTelemetry destination identifiers that receive traces.
    enabled boolean
    Whether Cloudflare Traces is enabled for the zone.
    forwardContext boolean
    Whether trace context is sent externally or across a zone boundary.
    id string
    Specify the zone ID.
    persist boolean
    Whether traces are persisted in Cloudflare.
    propagationPolicy string
    When inbound trace context may be continued. Authenticated propagation is not supported yet. Available values: "accept", "authenticated", "reject".
    samplingRatio number
    The ratio of requests sampled for tracing, from 0 to 1.
    zoneId string
    Specify the zone ID.
    destinations Sequence[str]
    Up to 100 OpenTelemetry destination identifiers that receive traces.
    enabled bool
    Whether Cloudflare Traces is enabled for the zone.
    forward_context bool
    Whether trace context is sent externally or across a zone boundary.
    id str
    Specify the zone ID.
    persist bool
    Whether traces are persisted in Cloudflare.
    propagation_policy str
    When inbound trace context may be continued. Authenticated propagation is not supported yet. Available values: "accept", "authenticated", "reject".
    sampling_ratio float
    The ratio of requests sampled for tracing, from 0 to 1.
    zone_id str
    Specify the zone ID.
    destinations List<String>
    Up to 100 OpenTelemetry destination identifiers that receive traces.
    enabled Boolean
    Whether Cloudflare Traces is enabled for the zone.
    forwardContext Boolean
    Whether trace context is sent externally or across a zone boundary.
    id String
    Specify the zone ID.
    persist Boolean
    Whether traces are persisted in Cloudflare.
    propagationPolicy String
    When inbound trace context may be continued. Authenticated propagation is not supported yet. Available values: "accept", "authenticated", "reject".
    samplingRatio Number
    The ratio of requests sampled for tracing, from 0 to 1.
    zoneId String
    Specify the zone ID.

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo cloudflare logo
    Viewing docs for Cloudflare v6.23.1
    published on Wednesday, Oct 21, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial