1. Registry
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. getZoneTracingRules
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 exampleZoneTracingRules = cloudflare.getZoneTracingRules({
        zoneId: "zone_id",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_zone_tracing_rules = cloudflare.get_zone_tracing_rules(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.GetZoneTracingRules(ctx, &cloudflare.LookupZoneTracingRulesArgs{
    			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 exampleZoneTracingRules = Cloudflare.GetZoneTracingRules.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.GetZoneTracingRulesArgs;
    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 exampleZoneTracingRules = CloudflareFunctions.getZoneTracingRules(GetZoneTracingRulesArgs.builder()
                .zoneId("zone_id")
                .build());
    
        }
    }
    
    variables:
      exampleZoneTracingRules:
        fn::invoke:
          function: cloudflare:getZoneTracingRules
          arguments:
            zoneId: zone_id
    
    terraform {
      required_providers {
        cloudflare = {
          source = "pulumi/cloudflare"
        }
      }
    }
    
    data "cloudflare_zone_tracing_rules" "exampleZoneTracingRules" {
      zone_id = "zone_id"
    }
    

    Using getZoneTracingRules

    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 getZoneTracingRules(args: GetZoneTracingRulesArgs, opts?: InvokeOptions): Promise<GetZoneTracingRulesResult>
    function getZoneTracingRulesOutput(args: GetZoneTracingRulesOutputArgs, opts?: InvokeOutputOptions): Output<GetZoneTracingRulesResult>
    def get_zone_tracing_rules(zone_id: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetZoneTracingRulesResult
    def get_zone_tracing_rules_output(zone_id: pulumi.Input[Optional[str]] = None,
                               opts: Optional[InvokeOutputOptions] = None) -> Output[GetZoneTracingRulesResult]
    func LookupZoneTracingRules(ctx *Context, args *LookupZoneTracingRulesArgs, opts ...InvokeOption) (*LookupZoneTracingRulesResult, error)
    func LookupZoneTracingRulesOutput(ctx *Context, args *LookupZoneTracingRulesOutputArgs, opts ...InvokeOption) LookupZoneTracingRulesResultOutput

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

    public static class GetZoneTracingRules 
    {
        public static Task<GetZoneTracingRulesResult> InvokeAsync(GetZoneTracingRulesArgs args, InvokeOptions? opts = null)
        public static Output<GetZoneTracingRulesResult> Invoke(GetZoneTracingRulesInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetZoneTracingRulesResult> Invoke(GetZoneTracingRulesInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetZoneTracingRulesResult> getZoneTracingRules(GetZoneTracingRulesArgs args, InvokeOptions options)
    public static Output<GetZoneTracingRulesResult> getZoneTracingRules(GetZoneTracingRulesArgs args, InvokeOptions options)
    public static Output<GetZoneTracingRulesResult> getZoneTracingRules(GetZoneTracingRulesArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: cloudflare:index/getZoneTracingRules:getZoneTracingRules
      arguments:
        # arguments dictionary
    data "cloudflare_get_zone_tracing_rules" "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.

    getZoneTracingRules Result

    The following output properties are available:

    Id string
    Specify the zone ID.
    Rules List<GetZoneTracingRulesRule>
    Trace rules in evaluation order.
    ZoneId string
    Specify the zone ID.
    Id string
    Specify the zone ID.
    Rules []GetZoneTracingRulesRule
    Trace rules in evaluation order.
    ZoneId string
    Specify the zone ID.
    id string
    Specify the zone ID.
    rules list(object)
    Trace rules in evaluation order.
    zone_id string
    Specify the zone ID.
    id String
    Specify the zone ID.
    rules List<GetZoneTracingRulesRule>
    Trace rules in evaluation order.
    zoneId String
    Specify the zone ID.
    id string
    Specify the zone ID.
    rules GetZoneTracingRulesRule[]
    Trace rules in evaluation order.
    zoneId string
    Specify the zone ID.
    id str
    Specify the zone ID.
    rules Sequence[GetZoneTracingRulesRule]
    Trace rules in evaluation order.
    zone_id str
    Specify the zone ID.
    id String
    Specify the zone ID.
    rules List<Property Map>
    Trace rules in evaluation order.
    zoneId String
    Specify the zone ID.

    Supporting Types

    GetZoneTracingRulesRule

    Action string
    Available values: "settracesettings".
    ActionParameters GetZoneTracingRulesRuleActionParameters
    Description string
    Enabled bool
    Expression string
    A Rules language expression that selects requests.
    Action string
    Available values: "settracesettings".
    ActionParameters GetZoneTracingRulesRuleActionParameters
    Description string
    Enabled bool
    Expression string
    A Rules language expression that selects requests.
    action string
    Available values: "settracesettings".
    action_parameters object
    description string
    enabled bool
    expression string
    A Rules language expression that selects requests.
    action String
    Available values: "settracesettings".
    actionParameters GetZoneTracingRulesRuleActionParameters
    description String
    enabled Boolean
    expression String
    A Rules language expression that selects requests.
    action string
    Available values: "settracesettings".
    actionParameters GetZoneTracingRulesRuleActionParameters
    description string
    enabled boolean
    expression string
    A Rules language expression that selects requests.
    action str
    Available values: "settracesettings".
    action_parameters GetZoneTracingRulesRuleActionParameters
    description str
    enabled bool
    expression str
    A Rules language expression that selects requests.
    action String
    Available values: "settracesettings".
    actionParameters Property Map
    description String
    enabled Boolean
    expression String
    A Rules language expression that selects requests.

    GetZoneTracingRulesRuleActionParameters

    SamplingRatio double
    The ratio of requests sampled for tracing, from 0 to 1.
    SamplingRatio float64
    The ratio of requests sampled for tracing, from 0 to 1.
    sampling_ratio number
    The ratio of requests sampled for tracing, from 0 to 1.
    samplingRatio Double
    The ratio of requests sampled for tracing, from 0 to 1.
    samplingRatio number
    The ratio of requests sampled for tracing, from 0 to 1.
    sampling_ratio float
    The ratio of requests sampled for tracing, from 0 to 1.
    samplingRatio Number
    The ratio of requests sampled for tracing, from 0 to 1.

    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