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 exampleZeroTrustList = cloudflare.getZeroTrustList({
accountId: "699d98642c564d2e855e9661899b7252",
listId: "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_zero_trust_list = cloudflare.get_zero_trust_list(account_id="699d98642c564d2e855e9661899b7252",
list_id="f174e90a-fafe-4643-bbbc-4a0ed4fc8415")
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.GetZeroTrustList(ctx, &cloudflare.LookupZeroTrustListArgs{
AccountId: pulumi.StringRef("699d98642c564d2e855e9661899b7252"),
ListId: pulumi.StringRef("f174e90a-fafe-4643-bbbc-4a0ed4fc8415"),
}, 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 exampleZeroTrustList = Cloudflare.GetZeroTrustList.Invoke(new()
{
AccountId = "699d98642c564d2e855e9661899b7252",
ListId = "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
});
});
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.GetZeroTrustListArgs;
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 exampleZeroTrustList = CloudflareFunctions.getZeroTrustList(GetZeroTrustListArgs.builder()
.accountId("699d98642c564d2e855e9661899b7252")
.listId("f174e90a-fafe-4643-bbbc-4a0ed4fc8415")
.build());
}
}
variables:
exampleZeroTrustList:
fn::invoke:
function: cloudflare:getZeroTrustList
arguments:
accountId: 699d98642c564d2e855e9661899b7252
listId: f174e90a-fafe-4643-bbbc-4a0ed4fc8415
terraform {
required_providers {
cloudflare = {
source = "pulumi/cloudflare"
}
}
}
data "cloudflare_zero_trust_list" "exampleZeroTrustList" {
account_id = "699d98642c564d2e855e9661899b7252"
list_id = "f174e90a-fafe-4643-bbbc-4a0ed4fc8415"
}
Using getZeroTrustList
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 getZeroTrustList(args: GetZeroTrustListArgs, opts?: InvokeOptions): Promise<GetZeroTrustListResult>
function getZeroTrustListOutput(args: GetZeroTrustListOutputArgs, opts?: InvokeOutputOptions): Output<GetZeroTrustListResult>def get_zero_trust_list(account_id: Optional[str] = None,
filter: Optional[GetZeroTrustListFilter] = None,
list_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetZeroTrustListResult
def get_zero_trust_list_output(account_id: pulumi.Input[Optional[str]] = None,
filter: pulumi.Input[Optional[GetZeroTrustListFilterArgs]] = None,
list_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetZeroTrustListResult]func LookupZeroTrustList(ctx *Context, args *LookupZeroTrustListArgs, opts ...InvokeOption) (*LookupZeroTrustListResult, error)
func LookupZeroTrustListOutput(ctx *Context, args *LookupZeroTrustListOutputArgs, opts ...InvokeOption) LookupZeroTrustListResultOutput> Note: This function is named LookupZeroTrustList in the Go SDK.
public static class GetZeroTrustList
{
public static Task<GetZeroTrustListResult> InvokeAsync(GetZeroTrustListArgs args, InvokeOptions? opts = null)
public static Output<GetZeroTrustListResult> Invoke(GetZeroTrustListInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetZeroTrustListResult> Invoke(GetZeroTrustListInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetZeroTrustListResult> getZeroTrustList(GetZeroTrustListArgs args, InvokeOptions options)
public static Output<GetZeroTrustListResult> getZeroTrustList(GetZeroTrustListArgs args, InvokeOptions options)
public static Output<GetZeroTrustListResult> getZeroTrustList(GetZeroTrustListArgs args, InvokeOutputOptions options)
fn::invoke:
function: cloudflare:index/getZeroTrustList:getZeroTrustList
arguments:
# arguments dictionarydata "cloudflare_get_zero_trust_list" "name" {
# arguments
}The following arguments are supported:
- Account
Id string - Filter
Get
Zero Trust List Filter - List
Id string
- Account
Id string - Filter
Get
Zero Trust List Filter - List
Id string
- account_
id string - filter object
- list_
id string
- account
Id String - filter
Get
Zero Trust List Filter - list
Id String
- account
Id string - filter
Get
Zero Trust List Filter - list
Id string
- account
Id String - filter Property Map
- list
Id String
getZeroTrustList Result
The following output properties are available:
- Created
At string - Description string
- Id string
- Items
List<Get
Zero Trust List Item> - List
Count double - Name string
- Type string
- Updated
At string - Account
Id string - Filter
Get
Zero Trust List Filter - List
Id string
- Created
At string - Description string
- Id string
- Items
[]Get
Zero Trust List Item - List
Count float64 - Name string
- Type string
- Updated
At string - Account
Id string - Filter
Get
Zero Trust List Filter - List
Id string
- created_
at string - description string
- id string
- items list(object)
- list_
count number - name string
- type string
- updated_
at string - account_
id string - filter object
- list_
id string
- created
At String - description String
- id String
- items
List<Get
Zero Trust List Item> - list
Count Double - name String
- type String
- updated
At String - account
Id String - filter
Get
Zero Trust List Filter - list
Id String
- created
At string - description string
- id string
- items
Get
Zero Trust List Item[] - list
Count number - name string
- type string
- updated
At string - account
Id string - filter
Get
Zero Trust List Filter - list
Id string
- created_
at str - description str
- id str
- items
Sequence[Get
Zero Trust List Item] - list_
count float - name str
- type str
- updated_
at str - account_
id str - filter
Get
Zero Trust List Filter - list_
id str
- created
At String - description String
- id String
- items List<Property Map>
- list
Count Number - name String
- type String
- updated
At String - account
Id String - filter Property Map
- list
Id String
Supporting Types
GetZeroTrustListFilter
- Direction string
- Sort direction. Applies to the field named in
orderBy; whenorderByis omitted it applies to the defaultcreatedAtordering. Whendirectionis omitted the default is field-specific: explicitly choosingcreatedAtorupdatedAtdefaults to descending (newest first);nameanditemCountdefault to ascending; and the defaultcreatedAtordering used whenorderByis omitted is ascending (for backwards compatibility).asc— ascending.desc— descending. Available values: "asc", "desc".
- Filters List<string>
Filter the returned lists by one or more
field:valuepairs. Repeat the parameter to apply multiple filters; they are combined with logical AND (a list must satisfy every filter to be returned).Supported fields and their matching behaviour:
name— case-insensitive substring match on the list name.id— substring match on the list ID (UUID), with or without dashes.type— exact match on the list type. Supersedes the legacytypequery parameter when both are supplied. Must be one of the valid type values.itemCount— exact integer match on the number of items in the list.
Each entry must match one of the per-field patterns below: the field must be one of
name,id,type, oritemCount;name/idaccept any value,typeis restricted to the valid list type values, anditemCountmust be a non-negative integer.- Order
By string - Field to sort the returned lists by. When omitted, results are ordered by
createdAtin ascending order (i.e. creation order) for backwards compatibility. Supported values:name— sort alphabetically by list name.createdAt— sort by creation time; defaults to descending unlessdirectionis set.updatedAt— sort by last-modified time; defaults to descending unlessdirectionis set.itemCount— sort by number of items in the list. Available values: "name", "createdAt", "updatedAt", "itemCount".
- Search string
- Case-insensitive substring match on the list name or description. When
combined with
filter, both must match (logical AND). - Type string
- Specify the list type. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP", "CATEGORY", "LOCATION", "DEVICE", "AAGUID".
- Direction string
- Sort direction. Applies to the field named in
orderBy; whenorderByis omitted it applies to the defaultcreatedAtordering. Whendirectionis omitted the default is field-specific: explicitly choosingcreatedAtorupdatedAtdefaults to descending (newest first);nameanditemCountdefault to ascending; and the defaultcreatedAtordering used whenorderByis omitted is ascending (for backwards compatibility).asc— ascending.desc— descending. Available values: "asc", "desc".
- Filters []string
Filter the returned lists by one or more
field:valuepairs. Repeat the parameter to apply multiple filters; they are combined with logical AND (a list must satisfy every filter to be returned).Supported fields and their matching behaviour:
name— case-insensitive substring match on the list name.id— substring match on the list ID (UUID), with or without dashes.type— exact match on the list type. Supersedes the legacytypequery parameter when both are supplied. Must be one of the valid type values.itemCount— exact integer match on the number of items in the list.
Each entry must match one of the per-field patterns below: the field must be one of
name,id,type, oritemCount;name/idaccept any value,typeis restricted to the valid list type values, anditemCountmust be a non-negative integer.- Order
By string - Field to sort the returned lists by. When omitted, results are ordered by
createdAtin ascending order (i.e. creation order) for backwards compatibility. Supported values:name— sort alphabetically by list name.createdAt— sort by creation time; defaults to descending unlessdirectionis set.updatedAt— sort by last-modified time; defaults to descending unlessdirectionis set.itemCount— sort by number of items in the list. Available values: "name", "createdAt", "updatedAt", "itemCount".
- Search string
- Case-insensitive substring match on the list name or description. When
combined with
filter, both must match (logical AND). - Type string
- Specify the list type. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP", "CATEGORY", "LOCATION", "DEVICE", "AAGUID".
- direction string
- Sort direction. Applies to the field named in
orderBy; whenorderByis omitted it applies to the defaultcreatedAtordering. Whendirectionis omitted the default is field-specific: explicitly choosingcreatedAtorupdatedAtdefaults to descending (newest first);nameanditemCountdefault to ascending; and the defaultcreatedAtordering used whenorderByis omitted is ascending (for backwards compatibility).asc— ascending.desc— descending. Available values: "asc", "desc".
- filters list(string)
Filter the returned lists by one or more
field:valuepairs. Repeat the parameter to apply multiple filters; they are combined with logical AND (a list must satisfy every filter to be returned).Supported fields and their matching behaviour:
name— case-insensitive substring match on the list name.id— substring match on the list ID (UUID), with or without dashes.type— exact match on the list type. Supersedes the legacytypequery parameter when both are supplied. Must be one of the valid type values.itemCount— exact integer match on the number of items in the list.
Each entry must match one of the per-field patterns below: the field must be one of
name,id,type, oritemCount;name/idaccept any value,typeis restricted to the valid list type values, anditemCountmust be a non-negative integer.- order_
by string - Field to sort the returned lists by. When omitted, results are ordered by
createdAtin ascending order (i.e. creation order) for backwards compatibility. Supported values:name— sort alphabetically by list name.createdAt— sort by creation time; defaults to descending unlessdirectionis set.updatedAt— sort by last-modified time; defaults to descending unlessdirectionis set.itemCount— sort by number of items in the list. Available values: "name", "createdAt", "updatedAt", "itemCount".
- search string
- Case-insensitive substring match on the list name or description. When
combined with
filter, both must match (logical AND). - type string
- Specify the list type. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP", "CATEGORY", "LOCATION", "DEVICE", "AAGUID".
- direction String
- Sort direction. Applies to the field named in
orderBy; whenorderByis omitted it applies to the defaultcreatedAtordering. Whendirectionis omitted the default is field-specific: explicitly choosingcreatedAtorupdatedAtdefaults to descending (newest first);nameanditemCountdefault to ascending; and the defaultcreatedAtordering used whenorderByis omitted is ascending (for backwards compatibility).asc— ascending.desc— descending. Available values: "asc", "desc".
- filters List<String>
Filter the returned lists by one or more
field:valuepairs. Repeat the parameter to apply multiple filters; they are combined with logical AND (a list must satisfy every filter to be returned).Supported fields and their matching behaviour:
name— case-insensitive substring match on the list name.id— substring match on the list ID (UUID), with or without dashes.type— exact match on the list type. Supersedes the legacytypequery parameter when both are supplied. Must be one of the valid type values.itemCount— exact integer match on the number of items in the list.
Each entry must match one of the per-field patterns below: the field must be one of
name,id,type, oritemCount;name/idaccept any value,typeis restricted to the valid list type values, anditemCountmust be a non-negative integer.- order
By String - Field to sort the returned lists by. When omitted, results are ordered by
createdAtin ascending order (i.e. creation order) for backwards compatibility. Supported values:name— sort alphabetically by list name.createdAt— sort by creation time; defaults to descending unlessdirectionis set.updatedAt— sort by last-modified time; defaults to descending unlessdirectionis set.itemCount— sort by number of items in the list. Available values: "name", "createdAt", "updatedAt", "itemCount".
- search String
- Case-insensitive substring match on the list name or description. When
combined with
filter, both must match (logical AND). - type String
- Specify the list type. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP", "CATEGORY", "LOCATION", "DEVICE", "AAGUID".
- direction string
- Sort direction. Applies to the field named in
orderBy; whenorderByis omitted it applies to the defaultcreatedAtordering. Whendirectionis omitted the default is field-specific: explicitly choosingcreatedAtorupdatedAtdefaults to descending (newest first);nameanditemCountdefault to ascending; and the defaultcreatedAtordering used whenorderByis omitted is ascending (for backwards compatibility).asc— ascending.desc— descending. Available values: "asc", "desc".
- filters string[]
Filter the returned lists by one or more
field:valuepairs. Repeat the parameter to apply multiple filters; they are combined with logical AND (a list must satisfy every filter to be returned).Supported fields and their matching behaviour:
name— case-insensitive substring match on the list name.id— substring match on the list ID (UUID), with or without dashes.type— exact match on the list type. Supersedes the legacytypequery parameter when both are supplied. Must be one of the valid type values.itemCount— exact integer match on the number of items in the list.
Each entry must match one of the per-field patterns below: the field must be one of
name,id,type, oritemCount;name/idaccept any value,typeis restricted to the valid list type values, anditemCountmust be a non-negative integer.- order
By string - Field to sort the returned lists by. When omitted, results are ordered by
createdAtin ascending order (i.e. creation order) for backwards compatibility. Supported values:name— sort alphabetically by list name.createdAt— sort by creation time; defaults to descending unlessdirectionis set.updatedAt— sort by last-modified time; defaults to descending unlessdirectionis set.itemCount— sort by number of items in the list. Available values: "name", "createdAt", "updatedAt", "itemCount".
- search string
- Case-insensitive substring match on the list name or description. When
combined with
filter, both must match (logical AND). - type string
- Specify the list type. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP", "CATEGORY", "LOCATION", "DEVICE", "AAGUID".
- direction str
- Sort direction. Applies to the field named in
orderBy; whenorderByis omitted it applies to the defaultcreatedAtordering. Whendirectionis omitted the default is field-specific: explicitly choosingcreatedAtorupdatedAtdefaults to descending (newest first);nameanditemCountdefault to ascending; and the defaultcreatedAtordering used whenorderByis omitted is ascending (for backwards compatibility).asc— ascending.desc— descending. Available values: "asc", "desc".
- filters Sequence[str]
Filter the returned lists by one or more
field:valuepairs. Repeat the parameter to apply multiple filters; they are combined with logical AND (a list must satisfy every filter to be returned).Supported fields and their matching behaviour:
name— case-insensitive substring match on the list name.id— substring match on the list ID (UUID), with or without dashes.type— exact match on the list type. Supersedes the legacytypequery parameter when both are supplied. Must be one of the valid type values.itemCount— exact integer match on the number of items in the list.
Each entry must match one of the per-field patterns below: the field must be one of
name,id,type, oritemCount;name/idaccept any value,typeis restricted to the valid list type values, anditemCountmust be a non-negative integer.- order_
by str - Field to sort the returned lists by. When omitted, results are ordered by
createdAtin ascending order (i.e. creation order) for backwards compatibility. Supported values:name— sort alphabetically by list name.createdAt— sort by creation time; defaults to descending unlessdirectionis set.updatedAt— sort by last-modified time; defaults to descending unlessdirectionis set.itemCount— sort by number of items in the list. Available values: "name", "createdAt", "updatedAt", "itemCount".
- search str
- Case-insensitive substring match on the list name or description. When
combined with
filter, both must match (logical AND). - type str
- Specify the list type. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP", "CATEGORY", "LOCATION", "DEVICE", "AAGUID".
- direction String
- Sort direction. Applies to the field named in
orderBy; whenorderByis omitted it applies to the defaultcreatedAtordering. Whendirectionis omitted the default is field-specific: explicitly choosingcreatedAtorupdatedAtdefaults to descending (newest first);nameanditemCountdefault to ascending; and the defaultcreatedAtordering used whenorderByis omitted is ascending (for backwards compatibility).asc— ascending.desc— descending. Available values: "asc", "desc".
- filters List<String>
Filter the returned lists by one or more
field:valuepairs. Repeat the parameter to apply multiple filters; they are combined with logical AND (a list must satisfy every filter to be returned).Supported fields and their matching behaviour:
name— case-insensitive substring match on the list name.id— substring match on the list ID (UUID), with or without dashes.type— exact match on the list type. Supersedes the legacytypequery parameter when both are supplied. Must be one of the valid type values.itemCount— exact integer match on the number of items in the list.
Each entry must match one of the per-field patterns below: the field must be one of
name,id,type, oritemCount;name/idaccept any value,typeis restricted to the valid list type values, anditemCountmust be a non-negative integer.- order
By String - Field to sort the returned lists by. When omitted, results are ordered by
createdAtin ascending order (i.e. creation order) for backwards compatibility. Supported values:name— sort alphabetically by list name.createdAt— sort by creation time; defaults to descending unlessdirectionis set.updatedAt— sort by last-modified time; defaults to descending unlessdirectionis set.itemCount— sort by number of items in the list. Available values: "name", "createdAt", "updatedAt", "itemCount".
- search String
- Case-insensitive substring match on the list name or description. When
combined with
filter, both must match (logical AND). - type String
- Specify the list type. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP", "CATEGORY", "LOCATION", "DEVICE", "AAGUID".
GetZeroTrustListItem
- Created
At 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.
- created_
at 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.
- created
At 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.
- created
At 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
cloudflareTerraform Provider.
published on Wednesday, Oct 21, 2026 by Pulumi