Viewing docs for Cloudflare v6.23.1
published on Wednesday, Oct 21, 2026 by Pulumi
published on Wednesday, Oct 21, 2026 by Pulumi
Viewing docs for Cloudflare v6.23.1
published on Wednesday, Oct 21, 2026 by Pulumi
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 dictionarydata "cloudflare_get_zone_tracing_rules" "name" {
# arguments
}The following arguments are supported:
- Zone
Id string - Specify the zone ID.
- Zone
Id string - Specify the zone ID.
- zone_
id string - Specify the zone ID.
- zone
Id String - Specify the zone ID.
- zone
Id string - Specify the zone ID.
- zone_
id str - Specify the zone ID.
- zone
Id String - Specify the zone ID.
getZoneTracingRules Result
The following output properties are available:
- Id string
- Specify the zone ID.
- Rules
List<Get
Zone Tracing Rules Rule> - Trace rules in evaluation order.
- Zone
Id string - Specify the zone ID.
- Id string
- Specify the zone ID.
- Rules
[]Get
Zone Tracing Rules Rule - Trace rules in evaluation order.
- Zone
Id 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<Get
Zone Tracing Rules Rule> - Trace rules in evaluation order.
- zone
Id String - Specify the zone ID.
- id string
- Specify the zone ID.
- rules
Get
Zone Tracing Rules Rule[] - Trace rules in evaluation order.
- zone
Id string - Specify the zone ID.
- id str
- Specify the zone ID.
- rules
Sequence[Get
Zone Tracing Rules Rule] - 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.
- zone
Id String - Specify the zone ID.
Supporting Types
GetZoneTracingRulesRule
- Action string
- Available values: "settracesettings".
- Action
Parameters GetZone Tracing Rules Rule Action Parameters - Description string
- Enabled bool
- Expression string
- A Rules language expression that selects requests.
- Action string
- Available values: "settracesettings".
- Action
Parameters GetZone Tracing Rules Rule Action Parameters - 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".
- action
Parameters GetZone Tracing Rules Rule Action Parameters - description String
- enabled Boolean
- expression String
- A Rules language expression that selects requests.
- action string
- Available values: "settracesettings".
- action
Parameters GetZone Tracing Rules Rule Action Parameters - description string
- enabled boolean
- expression string
- A Rules language expression that selects requests.
- action str
- Available values: "settracesettings".
- action_
parameters GetZone Tracing Rules Rule Action Parameters - description str
- enabled bool
- expression str
- A Rules language expression that selects requests.
- action String
- Available values: "settracesettings".
- action
Parameters Property Map - description String
- enabled Boolean
- expression String
- A Rules language expression that selects requests.
GetZoneTracingRulesRuleActionParameters
- Sampling
Ratio double - The ratio of requests sampled for tracing, from 0 to 1.
- Sampling
Ratio 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.
- sampling
Ratio Double - 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.
- sampling_
ratio float - 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.
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflareTerraform Provider.
Viewing docs for Cloudflare v6.23.1
published on Wednesday, Oct 21, 2026 by Pulumi
published on Wednesday, Oct 21, 2026 by Pulumi