1. Registry
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. getFieldExtractor
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 exampleFieldExtractor = cloudflare.getFieldExtractor({
        accountId: "123456",
        extractor: "llm_prompts",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_field_extractor = cloudflare.get_field_extractor(account_id="123456",
        extractor="llm_prompts")
    
    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.GetFieldExtractor(ctx, &cloudflare.LookupFieldExtractorArgs{
    			AccountId: "123456",
    			Extractor: "llm_prompts",
    		}, 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 exampleFieldExtractor = Cloudflare.GetFieldExtractor.Invoke(new()
        {
            AccountId = "123456",
            Extractor = "llm_prompts",
        });
    
    });
    
    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.GetFieldExtractorArgs;
    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 exampleFieldExtractor = CloudflareFunctions.getFieldExtractor(GetFieldExtractorArgs.builder()
                .accountId("123456")
                .extractor("llm_prompts")
                .build());
    
        }
    }
    
    variables:
      exampleFieldExtractor:
        fn::invoke:
          function: cloudflare:getFieldExtractor
          arguments:
            accountId: '123456'
            extractor: llm_prompts
    
    terraform {
      required_providers {
        cloudflare = {
          source = "pulumi/cloudflare"
        }
      }
    }
    
    data "cloudflare_field_extractor" "exampleFieldExtractor" {
      account_id = "123456"
      extractor  = "llm_prompts"
    }
    

    Using getFieldExtractor

    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 getFieldExtractor(args: GetFieldExtractorArgs, opts?: InvokeOptions): Promise<GetFieldExtractorResult>
    function getFieldExtractorOutput(args: GetFieldExtractorOutputArgs, opts?: InvokeOutputOptions): Output<GetFieldExtractorResult>
    def get_field_extractor(account_id: Optional[str] = None,
                            extractor: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetFieldExtractorResult
    def get_field_extractor_output(account_id: pulumi.Input[Optional[str]] = None,
                            extractor: pulumi.Input[Optional[str]] = None,
                            opts: Optional[InvokeOutputOptions] = None) -> Output[GetFieldExtractorResult]
    func LookupFieldExtractor(ctx *Context, args *LookupFieldExtractorArgs, opts ...InvokeOption) (*LookupFieldExtractorResult, error)
    func LookupFieldExtractorOutput(ctx *Context, args *LookupFieldExtractorOutputArgs, opts ...InvokeOption) LookupFieldExtractorResultOutput

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

    public static class GetFieldExtractor 
    {
        public static Task<GetFieldExtractorResult> InvokeAsync(GetFieldExtractorArgs args, InvokeOptions? opts = null)
        public static Output<GetFieldExtractorResult> Invoke(GetFieldExtractorInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetFieldExtractorResult> Invoke(GetFieldExtractorInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetFieldExtractorResult> getFieldExtractor(GetFieldExtractorArgs args, InvokeOptions options)
    public static Output<GetFieldExtractorResult> getFieldExtractor(GetFieldExtractorArgs args, InvokeOptions options)
    public static Output<GetFieldExtractorResult> getFieldExtractor(GetFieldExtractorArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: cloudflare:index/getFieldExtractor:getFieldExtractor
      arguments:
        # arguments dictionary
    data "cloudflare_get_field_extractor" "name" {
        # arguments
    }

    The following arguments are supported:

    AccountId string
    Cloudflare account ID.
    Extractor string
    Extractor type.
    AccountId string
    Cloudflare account ID.
    Extractor string
    Extractor type.
    account_id string
    Cloudflare account ID.
    extractor string
    Extractor type.
    accountId String
    Cloudflare account ID.
    extractor String
    Extractor type.
    accountId string
    Cloudflare account ID.
    extractor string
    Extractor type.
    account_id str
    Cloudflare account ID.
    extractor str
    Extractor type.
    accountId String
    Cloudflare account ID.
    extractor String
    Extractor type.

    getFieldExtractor Result

    The following output properties are available:

    AccountId string
    Cloudflare account ID.
    Extractor string
    Extractor type.
    Rules List<GetFieldExtractorRule>
    AccountId string
    Cloudflare account ID.
    Extractor string
    Extractor type.
    Rules []GetFieldExtractorRule
    account_id string
    Cloudflare account ID.
    extractor string
    Extractor type.
    rules list(object)
    accountId String
    Cloudflare account ID.
    extractor String
    Extractor type.
    rules List<GetFieldExtractorRule>
    accountId string
    Cloudflare account ID.
    extractor string
    Extractor type.
    rules GetFieldExtractorRule[]
    account_id str
    Cloudflare account ID.
    extractor str
    Extractor type.
    rules Sequence[GetFieldExtractorRule]
    accountId String
    Cloudflare account ID.
    extractor String
    Extractor type.
    rules List<Property Map>

    Supporting Types

    GetFieldExtractorRule

    Description string
    Human-readable rule description.
    Fields List<GetFieldExtractorRuleField>
    Ref string
    Stable rule identifier.
    Description string
    Human-readable rule description.
    Fields []GetFieldExtractorRuleField
    Ref string
    Stable rule identifier.
    description string
    Human-readable rule description.
    fields list(object)
    ref string
    Stable rule identifier.
    description String
    Human-readable rule description.
    fields List<GetFieldExtractorRuleField>
    ref String
    Stable rule identifier.
    description string
    Human-readable rule description.
    fields GetFieldExtractorRuleField[]
    ref string
    Stable rule identifier.
    description str
    Human-readable rule description.
    fields Sequence[GetFieldExtractorRuleField]
    ref str
    Stable rule identifier.
    description String
    Human-readable rule description.
    fields List<Property Map>
    ref String
    Stable rule identifier.

    GetFieldExtractorRuleField

    Expression string
    Wirefilter value expression.
    Name string
    Field name.
    Expression string
    Wirefilter value expression.
    Name string
    Field name.
    expression string
    Wirefilter value expression.
    name string
    Field name.
    expression String
    Wirefilter value expression.
    name String
    Field name.
    expression string
    Wirefilter value expression.
    name string
    Field name.
    expression str
    Wirefilter value expression.
    name str
    Field name.
    expression String
    Wirefilter value expression.
    name String
    Field name.

    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