1. Registry
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. getZeroTrustLists
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 exampleZeroTrustLists = cloudflare.getZeroTrustLists({
        accountId: "699d98642c564d2e855e9661899b7252",
        direction: "asc",
        filters: ["string"],
        orderBy: "name",
        search: "search",
        type: "SERIAL",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_zero_trust_lists = cloudflare.get_zero_trust_lists(account_id="699d98642c564d2e855e9661899b7252",
        direction="asc",
        filters=["string"],
        order_by="name",
        search="search",
        type="SERIAL")
    
    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.GetZeroTrustLists(ctx, &cloudflare.LookupZeroTrustListsArgs{
    			AccountId: pulumi.StringRef("699d98642c564d2e855e9661899b7252"),
    			Direction: pulumi.StringRef("asc"),
    			Filters: []string{
    				"string",
    			},
    			OrderBy: pulumi.StringRef("name"),
    			Search:  pulumi.StringRef("search"),
    			Type:    pulumi.StringRef("SERIAL"),
    		}, 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 exampleZeroTrustLists = Cloudflare.GetZeroTrustLists.Invoke(new()
        {
            AccountId = "699d98642c564d2e855e9661899b7252",
            Direction = "asc",
            Filters = new[]
            {
                "string",
            },
            OrderBy = "name",
            Search = "search",
            Type = "SERIAL",
        });
    
    });
    
    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.GetZeroTrustListsArgs;
    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 exampleZeroTrustLists = CloudflareFunctions.getZeroTrustLists(GetZeroTrustListsArgs.builder()
                .accountId("699d98642c564d2e855e9661899b7252")
                .direction("asc")
                .filters("string")
                .orderBy("name")
                .search("search")
                .type("SERIAL")
                .build());
    
        }
    }
    
    variables:
      exampleZeroTrustLists:
        fn::invoke:
          function: cloudflare:getZeroTrustLists
          arguments:
            accountId: 699d98642c564d2e855e9661899b7252
            direction: asc
            filters:
              - string
            orderBy: name
            search: search
            type: SERIAL
    
    terraform {
      required_providers {
        cloudflare = {
          source = "pulumi/cloudflare"
        }
      }
    }
    
    data "cloudflare_zero_trust_lists" "exampleZeroTrustLists" {
      account_id = "699d98642c564d2e855e9661899b7252"
      direction  = "asc"
      filters    = ["string"]
      order_by   = "name"
      search     = "search"
      type       = "SERIAL"
    }
    

    Using getZeroTrustLists

    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 getZeroTrustLists(args: GetZeroTrustListsArgs, opts?: InvokeOptions): Promise<GetZeroTrustListsResult>
    function getZeroTrustListsOutput(args: GetZeroTrustListsOutputArgs, opts?: InvokeOutputOptions): Output<GetZeroTrustListsResult>
    def get_zero_trust_lists(account_id: Optional[str] = None,
                             direction: Optional[str] = None,
                             filters: Optional[Sequence[str]] = None,
                             max_items: Optional[int] = None,
                             order_by: Optional[str] = None,
                             search: Optional[str] = None,
                             type: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetZeroTrustListsResult
    def get_zero_trust_lists_output(account_id: pulumi.Input[Optional[str]] = None,
                             direction: pulumi.Input[Optional[str]] = None,
                             filters: pulumi.Input[Optional[Sequence[pulumi.Input[str]]]] = None,
                             max_items: pulumi.Input[Optional[int]] = None,
                             order_by: pulumi.Input[Optional[str]] = None,
                             search: pulumi.Input[Optional[str]] = None,
                             type: pulumi.Input[Optional[str]] = None,
                             opts: Optional[InvokeOutputOptions] = None) -> Output[GetZeroTrustListsResult]
    func LookupZeroTrustLists(ctx *Context, args *LookupZeroTrustListsArgs, opts ...InvokeOption) (*LookupZeroTrustListsResult, error)
    func LookupZeroTrustListsOutput(ctx *Context, args *LookupZeroTrustListsOutputArgs, opts ...InvokeOption) LookupZeroTrustListsResultOutput

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

    public static class GetZeroTrustLists 
    {
        public static Task<GetZeroTrustListsResult> InvokeAsync(GetZeroTrustListsArgs args, InvokeOptions? opts = null)
        public static Output<GetZeroTrustListsResult> Invoke(GetZeroTrustListsInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetZeroTrustListsResult> Invoke(GetZeroTrustListsInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetZeroTrustListsResult> getZeroTrustLists(GetZeroTrustListsArgs args, InvokeOptions options)
    public static Output<GetZeroTrustListsResult> getZeroTrustLists(GetZeroTrustListsArgs args, InvokeOptions options)
    public static Output<GetZeroTrustListsResult> getZeroTrustLists(GetZeroTrustListsArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: cloudflare:index/getZeroTrustLists:getZeroTrustLists
      arguments:
        # arguments dictionary
    data "cloudflare_get_zero_trust_lists" "name" {
        # arguments
    }

    The following arguments are supported:

    AccountId string
    Direction string
    Filters List<string>
    MaxItems int
    OrderBy string
    Search string
    Type string
    AccountId string
    Direction string
    Filters []string
    MaxItems int
    OrderBy string
    Search string
    Type string
    account_id string
    direction string
    filters list(string)
    max_items number
    order_by string
    search string
    type string
    accountId String
    direction String
    filters List<String>
    maxItems Integer
    orderBy String
    search String
    type String
    accountId string
    direction string
    filters string[]
    maxItems number
    orderBy string
    search string
    type string
    account_id str
    direction str
    filters Sequence[str]
    max_items int
    order_by str
    search str
    type str
    accountId String
    direction String
    filters List<String>
    maxItems Number
    orderBy String
    search String
    type String

    getZeroTrustLists Result

    The following output properties are available:

    results list(object)
    account_id string
    direction string
    filters list(string)
    max_items number
    order_by string
    search string
    type string
    results List<Property Map>
    accountId String
    direction String
    filters List<String>
    maxItems Number
    orderBy String
    search String
    type String

    Supporting Types

    GetZeroTrustListsResult

    CreatedAt string
    Description string
    Provide the list description.
    Id string
    Identify the API resource with a UUID.
    Items List<GetZeroTrustListsResultItem>
    Provide the list items.
    ListCount double
    Indicate the number of items in the list.
    Name string
    Specify the list name.
    Type string
    Specify the list type. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP", "CATEGORY", "LOCATION", "DEVICE", "AAGUID".
    UpdatedAt string
    CreatedAt string
    Description string
    Provide the list description.
    Id string
    Identify the API resource with a UUID.
    Items []GetZeroTrustListsResultItem
    Provide the list items.
    ListCount float64
    Indicate the number of items in the list.
    Name string
    Specify the list name.
    Type string
    Specify the list type. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP", "CATEGORY", "LOCATION", "DEVICE", "AAGUID".
    UpdatedAt string
    created_at string
    description string
    Provide the list description.
    id string
    Identify the API resource with a UUID.
    items list(object)
    Provide the list items.
    list_count number
    Indicate the number of items in the list.
    name string
    Specify the list name.
    type string
    Specify the list type. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP", "CATEGORY", "LOCATION", "DEVICE", "AAGUID".
    updated_at string
    createdAt String
    description String
    Provide the list description.
    id String
    Identify the API resource with a UUID.
    items List<GetZeroTrustListsResultItem>
    Provide the list items.
    listCount Double
    Indicate the number of items in the list.
    name String
    Specify the list name.
    type String
    Specify the list type. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP", "CATEGORY", "LOCATION", "DEVICE", "AAGUID".
    updatedAt String
    createdAt string
    description string
    Provide the list description.
    id string
    Identify the API resource with a UUID.
    items GetZeroTrustListsResultItem[]
    Provide the list items.
    listCount number
    Indicate the number of items in the list.
    name string
    Specify the list name.
    type string
    Specify the list type. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP", "CATEGORY", "LOCATION", "DEVICE", "AAGUID".
    updatedAt string
    created_at str
    description str
    Provide the list description.
    id str
    Identify the API resource with a UUID.
    items Sequence[GetZeroTrustListsResultItem]
    Provide the list items.
    list_count float
    Indicate the number of items in the list.
    name str
    Specify the list name.
    type str
    Specify the list type. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP", "CATEGORY", "LOCATION", "DEVICE", "AAGUID".
    updated_at str
    createdAt String
    description String
    Provide the list description.
    id String
    Identify the API resource with a UUID.
    items List<Property Map>
    Provide the list items.
    listCount Number
    Indicate the number of items in the list.
    name String
    Specify the list name.
    type String
    Specify the list type. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP", "CATEGORY", "LOCATION", "DEVICE", "AAGUID".
    updatedAt String

    GetZeroTrustListsResultItem

    CreatedAt string
    Description string
    Provide the list item description (optional).
    Value string
    Specify the item value.
    CreatedAt string
    Description string
    Provide the list item description (optional).
    Value string
    Specify the item value.
    created_at string
    description string
    Provide the list item description (optional).
    value string
    Specify the item value.
    createdAt String
    description String
    Provide the list item description (optional).
    value String
    Specify the item value.
    createdAt string
    description string
    Provide the list item description (optional).
    value string
    Specify the item value.
    created_at str
    description str
    Provide the list item description (optional).
    value str
    Specify the item value.
    createdAt String
    description String
    Provide the list item description (optional).
    value String
    Specify the item value.

    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