1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getZeroTrustLists
Cloudflare v6.0.1 published on Wednesday, Apr 16, 2025 by Pulumi

cloudflare.getZeroTrustLists

Explore with Pulumi AI

Cloudflare v6.0.1 published on Wednesday, Apr 16, 2025 by Pulumi

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";

const exampleZeroTrustLists = cloudflare.getZeroTrustLists({
    accountId: "699d98642c564d2e855e9661899b7252",
    type: "SERIAL",
});
Copy
import pulumi
import pulumi_cloudflare as cloudflare

example_zero_trust_lists = cloudflare.get_zero_trust_lists(account_id="699d98642c564d2e855e9661899b7252",
    type="SERIAL")
Copy
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.LookupZeroTrustLists(ctx, &cloudflare.LookupZeroTrustListsArgs{
			AccountId: "699d98642c564d2e855e9661899b7252",
			Type:      pulumi.StringRef("SERIAL"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
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",
        Type = "SERIAL",
    });

});
Copy
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.List;
import java.util.ArrayList;
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")
            .type("SERIAL")
            .build());

    }
}
Copy
variables:
  exampleZeroTrustLists:
    fn::invoke:
      function: cloudflare:getZeroTrustLists
      arguments:
        accountId: 699d98642c564d2e855e9661899b7252
        type: SERIAL
Copy

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?: InvokeOptions): Output<GetZeroTrustListsResult>
Copy
def get_zero_trust_lists(account_id: Optional[str] = None,
                         max_items: Optional[int] = None,
                         type: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetZeroTrustListsResult
def get_zero_trust_lists_output(account_id: Optional[pulumi.Input[str]] = None,
                         max_items: Optional[pulumi.Input[int]] = None,
                         type: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetZeroTrustListsResult]
Copy
func LookupZeroTrustLists(ctx *Context, args *LookupZeroTrustListsArgs, opts ...InvokeOption) (*LookupZeroTrustListsResult, error)
func LookupZeroTrustListsOutput(ctx *Context, args *LookupZeroTrustListsOutputArgs, opts ...InvokeOption) LookupZeroTrustListsResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetZeroTrustListsResult> getZeroTrustLists(GetZeroTrustListsArgs args, InvokeOptions options)
public static Output<GetZeroTrustListsResult> getZeroTrustLists(GetZeroTrustListsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: cloudflare:index/getZeroTrustLists:getZeroTrustLists
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AccountId This property is required. string
MaxItems int
Max items to fetch, default: 1000
Type string
The type of list. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".
AccountId This property is required. string
MaxItems int
Max items to fetch, default: 1000
Type string
The type of list. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".
accountId This property is required. String
maxItems Integer
Max items to fetch, default: 1000
type String
The type of list. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".
accountId This property is required. string
maxItems number
Max items to fetch, default: 1000
type string
The type of list. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".
account_id This property is required. str
max_items int
Max items to fetch, default: 1000
type str
The type of list. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".
accountId This property is required. String
maxItems Number
Max items to fetch, default: 1000
type String
The type of list. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".

getZeroTrustLists Result

The following output properties are available:

AccountId string
Id string
The provider-assigned unique ID for this managed resource.
Results List<GetZeroTrustListsResult>
The items returned by the data source
MaxItems int
Max items to fetch, default: 1000
Type string
The type of list. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".
AccountId string
Id string
The provider-assigned unique ID for this managed resource.
Results []GetZeroTrustListsResult
The items returned by the data source
MaxItems int
Max items to fetch, default: 1000
Type string
The type of list. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".
accountId String
id String
The provider-assigned unique ID for this managed resource.
results List<GetZeroTrustListsResult>
The items returned by the data source
maxItems Integer
Max items to fetch, default: 1000
type String
The type of list. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".
accountId string
id string
The provider-assigned unique ID for this managed resource.
results GetZeroTrustListsResult[]
The items returned by the data source
maxItems number
Max items to fetch, default: 1000
type string
The type of list. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".
account_id str
id str
The provider-assigned unique ID for this managed resource.
results Sequence[GetZeroTrustListsResult]
The items returned by the data source
max_items int
Max items to fetch, default: 1000
type str
The type of list. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".
accountId String
id String
The provider-assigned unique ID for this managed resource.
results List<Property Map>
The items returned by the data source
maxItems Number
Max items to fetch, default: 1000
type String
The type of list. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".

Supporting Types

GetZeroTrustListsResult

CreatedAt This property is required. string
Description This property is required. string
The description of the list.
Id This property is required. string
API Resource UUID tag.
ListCount This property is required. double
The number of items in the list.
Name This property is required. string
The name of the list.
Type This property is required. string
The type of list. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".
UpdatedAt This property is required. string
CreatedAt This property is required. string
Description This property is required. string
The description of the list.
Id This property is required. string
API Resource UUID tag.
ListCount This property is required. float64
The number of items in the list.
Name This property is required. string
The name of the list.
Type This property is required. string
The type of list. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".
UpdatedAt This property is required. string
createdAt This property is required. String
description This property is required. String
The description of the list.
id This property is required. String
API Resource UUID tag.
listCount This property is required. Double
The number of items in the list.
name This property is required. String
The name of the list.
type This property is required. String
The type of list. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".
updatedAt This property is required. String
createdAt This property is required. string
description This property is required. string
The description of the list.
id This property is required. string
API Resource UUID tag.
listCount This property is required. number
The number of items in the list.
name This property is required. string
The name of the list.
type This property is required. string
The type of list. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".
updatedAt This property is required. string
created_at This property is required. str
description This property is required. str
The description of the list.
id This property is required. str
API Resource UUID tag.
list_count This property is required. float
The number of items in the list.
name This property is required. str
The name of the list.
type This property is required. str
The type of list. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".
updated_at This property is required. str
createdAt This property is required. String
description This property is required. String
The description of the list.
id This property is required. String
API Resource UUID tag.
listCount This property is required. Number
The number of items in the list.
name This property is required. String
The name of the list.
type This property is required. String
The type of list. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".
updatedAt This property is required. String

Package Details

Repository
Cloudflare pulumi/pulumi-cloudflare
License
Apache-2.0
Notes
This Pulumi package is based on the cloudflare Terraform Provider.
Cloudflare v6.0.1 published on Wednesday, Apr 16, 2025 by Pulumi