get Zero Trust Lists
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleZeroTrustLists = cloudflare.getZeroTrustLists({
accountId: "699d98642c564d2e855e9661899b7252",
type: "SERIAL",
});
Content copied to clipboard
import pulumi
import pulumi_cloudflare as cloudflare
example_zero_trust_lists = cloudflare.get_zero_trust_lists(account_id="699d98642c564d2e855e9661899b7252",
type="SERIAL")
Content copied to clipboard
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",
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
variables:
exampleZeroTrustLists:
fn::invoke:
function: cloudflare:getZeroTrustLists
arguments:
accountId: 699d98642c564d2e855e9661899b7252
type: SERIAL
Content copied to clipboard
Return
A collection of values returned by getZeroTrustLists.
Parameters
argument
A collection of arguments for invoking getZeroTrustLists.
suspend fun getZeroTrustLists(accountId: String, maxItems: Int? = null, type: String? = null): GetZeroTrustListsInvokeResult
Return
A collection of values returned by getZeroTrustLists.
Parameters
account Id
max Items
Max items to fetch, default: 1000
type
The type of list. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".
See also
suspend fun getZeroTrustLists(argument: suspend GetZeroTrustListsPlainArgsBuilder.() -> Unit): GetZeroTrustListsInvokeResult
Return
A collection of values returned by getZeroTrustLists.
Parameters
argument
Builder for com.pulumi.cloudflare.kotlin.inputs.GetZeroTrustListsPlainArgs.