1. Packages
  2. Cloudflare
  3. API Docs
  4. getLists
Cloudflare v5.26.0 published on Wednesday, Apr 17, 2024 by Pulumi

cloudflare.getLists

Explore with Pulumi AI

cloudflare logo
Cloudflare v5.26.0 published on Wednesday, Apr 17, 2024 by Pulumi

    Use this data source to lookup Lists.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const example = cloudflare.getLists({
        accountId: "f037e56e89293a057740de681ac9abbe",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example = cloudflare.get_lists(account_id="f037e56e89293a057740de681ac9abbe")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-cloudflare/sdk/v5/go/cloudflare"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudflare.GetLists(ctx, &cloudflare.GetListsArgs{
    			AccountId: "f037e56e89293a057740de681ac9abbe",
    		}, 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 example = Cloudflare.GetLists.Invoke(new()
        {
            AccountId = "f037e56e89293a057740de681ac9abbe",
        });
    
    });
    
    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.GetListsArgs;
    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 example = CloudflareFunctions.getLists(GetListsArgs.builder()
                .accountId("f037e56e89293a057740de681ac9abbe")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: cloudflare:getLists
          Arguments:
            accountId: f037e56e89293a057740de681ac9abbe
    

    Using getLists

    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 getLists(args: GetListsArgs, opts?: InvokeOptions): Promise<GetListsResult>
    function getListsOutput(args: GetListsOutputArgs, opts?: InvokeOptions): Output<GetListsResult>
    def get_lists(account_id: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetListsResult
    def get_lists_output(account_id: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetListsResult]
    func GetLists(ctx *Context, args *GetListsArgs, opts ...InvokeOption) (*GetListsResult, error)
    func GetListsOutput(ctx *Context, args *GetListsOutputArgs, opts ...InvokeOption) GetListsResultOutput

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

    public static class GetLists 
    {
        public static Task<GetListsResult> InvokeAsync(GetListsArgs args, InvokeOptions? opts = null)
        public static Output<GetListsResult> Invoke(GetListsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetListsResult> getLists(GetListsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: cloudflare:index/getLists:getLists
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    The account identifier to target for the resource.
    AccountId string
    The account identifier to target for the resource.
    accountId String
    The account identifier to target for the resource.
    accountId string
    The account identifier to target for the resource.
    account_id str
    The account identifier to target for the resource.
    accountId String
    The account identifier to target for the resource.

    getLists Result

    The following output properties are available:

    AccountId string
    The account identifier to target for the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Lists List<GetListsList>
    AccountId string
    The account identifier to target for the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Lists []GetListsList
    accountId String
    The account identifier to target for the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    lists List<GetListsList>
    accountId string
    The account identifier to target for the resource.
    id string
    The provider-assigned unique ID for this managed resource.
    lists GetListsList[]
    account_id str
    The account identifier to target for the resource.
    id str
    The provider-assigned unique ID for this managed resource.
    lists Sequence[GetListsList]
    accountId String
    The account identifier to target for the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    lists List<Property Map>

    Supporting Types

    GetListsList

    Description string
    List description.
    Id string
    List identifier.
    Kind string
    List kind.
    Name string
    The list name to target for the resource.
    Numitems int
    Number of items in list.
    Description string
    List description.
    Id string
    List identifier.
    Kind string
    List kind.
    Name string
    The list name to target for the resource.
    Numitems int
    Number of items in list.
    description String
    List description.
    id String
    List identifier.
    kind String
    List kind.
    name String
    The list name to target for the resource.
    numitems Integer
    Number of items in list.
    description string
    List description.
    id string
    List identifier.
    kind string
    List kind.
    name string
    The list name to target for the resource.
    numitems number
    Number of items in list.
    description str
    List description.
    id str
    List identifier.
    kind str
    List kind.
    name str
    The list name to target for the resource.
    numitems int
    Number of items in list.
    description String
    List description.
    id String
    List identifier.
    kind String
    List kind.
    name String
    The list name to target for the resource.
    numitems Number
    Number of items in list.

    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 v5.26.0 published on Wednesday, Apr 17, 2024 by Pulumi