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

cloudflare.getZeroTrustList

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 exampleZeroTrustList = cloudflare.getZeroTrustList({
    accountId: "699d98642c564d2e855e9661899b7252",
    listId: "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
});
Copy
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")
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.LookupZeroTrustList(ctx, &cloudflare.LookupZeroTrustListArgs{
			AccountId: "699d98642c564d2e855e9661899b7252",
			ListId:    pulumi.StringRef("f174e90a-fafe-4643-bbbc-4a0ed4fc8415"),
		}, 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 exampleZeroTrustList = Cloudflare.GetZeroTrustList.Invoke(new()
    {
        AccountId = "699d98642c564d2e855e9661899b7252",
        ListId = "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
    });

});
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.GetZeroTrustListArgs;
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 exampleZeroTrustList = CloudflareFunctions.getZeroTrustList(GetZeroTrustListArgs.builder()
            .accountId("699d98642c564d2e855e9661899b7252")
            .listId("f174e90a-fafe-4643-bbbc-4a0ed4fc8415")
            .build());

    }
}
Copy
variables:
  exampleZeroTrustList:
    fn::invoke:
      function: cloudflare:getZeroTrustList
      arguments:
        accountId: 699d98642c564d2e855e9661899b7252
        listId: f174e90a-fafe-4643-bbbc-4a0ed4fc8415
Copy

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?: InvokeOptions): Output<GetZeroTrustListResult>
Copy
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: Optional[pulumi.Input[str]] = None,
                        filter: Optional[pulumi.Input[GetZeroTrustListFilterArgs]] = None,
                        list_id: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetZeroTrustListResult]
Copy
func LookupZeroTrustList(ctx *Context, args *LookupZeroTrustListArgs, opts ...InvokeOption) (*LookupZeroTrustListResult, error)
func LookupZeroTrustListOutput(ctx *Context, args *LookupZeroTrustListOutputArgs, opts ...InvokeOption) LookupZeroTrustListResultOutput
Copy

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

The following arguments are supported:

AccountId This property is required. string
Filter GetZeroTrustListFilter
ListId string
API Resource UUID tag.
AccountId This property is required. string
Filter GetZeroTrustListFilter
ListId string
API Resource UUID tag.
accountId This property is required. String
filter GetZeroTrustListFilter
listId String
API Resource UUID tag.
accountId This property is required. string
filter GetZeroTrustListFilter
listId string
API Resource UUID tag.
account_id This property is required. str
filter GetZeroTrustListFilter
list_id str
API Resource UUID tag.
accountId This property is required. String
filter Property Map
listId String
API Resource UUID tag.

getZeroTrustList Result

The following output properties are available:

AccountId string
CreatedAt string
Description string
The description of the list.
Id string
API Resource UUID tag.
ListCount double
The number of items in the list.
Name string
The name of the list.
Type string
The type of list. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".
UpdatedAt string
Filter GetZeroTrustListFilter
ListId string
API Resource UUID tag.
AccountId string
CreatedAt string
Description string
The description of the list.
Id string
API Resource UUID tag.
ListCount float64
The number of items in the list.
Name string
The name of the list.
Type string
The type of list. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".
UpdatedAt string
Filter GetZeroTrustListFilter
ListId string
API Resource UUID tag.
accountId String
createdAt String
description String
The description of the list.
id String
API Resource UUID tag.
listCount Double
The number of items in the list.
name String
The name of the list.
type String
The type of list. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".
updatedAt String
filter GetZeroTrustListFilter
listId String
API Resource UUID tag.
accountId string
createdAt string
description string
The description of the list.
id string
API Resource UUID tag.
listCount number
The number of items in the list.
name string
The name of the list.
type string
The type of list. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".
updatedAt string
filter GetZeroTrustListFilter
listId string
API Resource UUID tag.
account_id str
created_at str
description str
The description of the list.
id str
API Resource UUID tag.
list_count float
The number of items in the list.
name str
The name of the list.
type str
The type of list. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".
updated_at str
filter GetZeroTrustListFilter
list_id str
API Resource UUID tag.
accountId String
createdAt String
description String
The description of the list.
id String
API Resource UUID tag.
listCount Number
The number of items in the list.
name String
The name of the list.
type String
The type of list. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".
updatedAt String
filter Property Map
listId String
API Resource UUID tag.

Supporting Types

GetZeroTrustListFilter

Type string
The type of list. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".
Type string
The type of list. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".
type String
The type of list. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".
type string
The type of list. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".
type str
The type of list. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".
type String
The type of list. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".

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