1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. TeamsList
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

cloudflare.TeamsList

Explore with Pulumi AI

cloudflare logo
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi
    Deprecated: cloudflare.index/teamslist.TeamsList has been deprecated in favor of cloudflare.index/zerotrustlist.ZeroTrustList

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleZeroTrustList = new cloudflare.ZeroTrustList("example_zero_trust_list", {
        accountId: "699d98642c564d2e855e9661899b7252",
        name: "Admin Serial Numbers",
        type: "SERIAL",
        description: "The serial numbers for administrators",
        items: [{
            description: "Austin office IP",
            value: "8GE8721REF",
        }],
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_zero_trust_list = cloudflare.ZeroTrustList("example_zero_trust_list",
        account_id="699d98642c564d2e855e9661899b7252",
        name="Admin Serial Numbers",
        type="SERIAL",
        description="The serial numbers for administrators",
        items=[{
            "description": "Austin office IP",
            "value": "8GE8721REF",
        }])
    
    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.NewZeroTrustList(ctx, "example_zero_trust_list", &cloudflare.ZeroTrustListArgs{
    			AccountId:   pulumi.String("699d98642c564d2e855e9661899b7252"),
    			Name:        pulumi.String("Admin Serial Numbers"),
    			Type:        pulumi.String("SERIAL"),
    			Description: pulumi.String("The serial numbers for administrators"),
    			Items: cloudflare.ZeroTrustListItemArray{
    				&cloudflare.ZeroTrustListItemArgs{
    					Description: pulumi.String("Austin office IP"),
    					Value:       pulumi.String("8GE8721REF"),
    				},
    			},
    		})
    		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 = new Cloudflare.ZeroTrustList("example_zero_trust_list", new()
        {
            AccountId = "699d98642c564d2e855e9661899b7252",
            Name = "Admin Serial Numbers",
            Type = "SERIAL",
            Description = "The serial numbers for administrators",
            Items = new[]
            {
                new Cloudflare.Inputs.ZeroTrustListItemArgs
                {
                    Description = "Austin office IP",
                    Value = "8GE8721REF",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.ZeroTrustList;
    import com.pulumi.cloudflare.ZeroTrustListArgs;
    import com.pulumi.cloudflare.inputs.ZeroTrustListItemArgs;
    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) {
            var exampleZeroTrustList = new ZeroTrustList("exampleZeroTrustList", ZeroTrustListArgs.builder()
                .accountId("699d98642c564d2e855e9661899b7252")
                .name("Admin Serial Numbers")
                .type("SERIAL")
                .description("The serial numbers for administrators")
                .items(ZeroTrustListItemArgs.builder()
                    .description("Austin office IP")
                    .value("8GE8721REF")
                    .build())
                .build());
    
        }
    }
    
    resources:
      exampleZeroTrustList:
        type: cloudflare:ZeroTrustList
        name: example_zero_trust_list
        properties:
          accountId: 699d98642c564d2e855e9661899b7252
          name: Admin Serial Numbers
          type: SERIAL
          description: The serial numbers for administrators
          items:
            - description: Austin office IP
              value: 8GE8721REF
    

    Create TeamsList Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new TeamsList(name: string, args: TeamsListArgs, opts?: CustomResourceOptions);
    @overload
    def TeamsList(resource_name: str,
                  args: TeamsListArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def TeamsList(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  account_id: Optional[str] = None,
                  description: Optional[str] = None,
                  items: Optional[Sequence[TeamsListItemArgs]] = None,
                  name: Optional[str] = None,
                  type: Optional[str] = None)
    func NewTeamsList(ctx *Context, name string, args TeamsListArgs, opts ...ResourceOption) (*TeamsList, error)
    public TeamsList(string name, TeamsListArgs args, CustomResourceOptions? opts = null)
    public TeamsList(String name, TeamsListArgs args)
    public TeamsList(String name, TeamsListArgs args, CustomResourceOptions options)
    
    type: cloudflare:TeamsList
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args TeamsListArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args TeamsListArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args TeamsListArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TeamsListArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TeamsListArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    TeamsList Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The TeamsList resource accepts the following input properties:

    AccountId string
    Name string
    The name of the list.
    Type string
    The type of list. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".
    Description string
    The description of the list.
    Items List<TeamsListItem>
    The items in the list.
    AccountId string
    Name string
    The name of the list.
    Type string
    The type of list. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".
    Description string
    The description of the list.
    Items []TeamsListItemArgs
    The items in the list.
    accountId String
    name String
    The name of the list.
    type String
    The type of list. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".
    description String
    The description of the list.
    items List<TeamsListItem>
    The items in the list.
    accountId string
    name string
    The name of the list.
    type string
    The type of list. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".
    description string
    The description of the list.
    items TeamsListItem[]
    The items in the list.
    account_id str
    name str
    The name of the list.
    type str
    The type of list. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".
    description str
    The description of the list.
    items Sequence[TeamsListItemArgs]
    The items in the list.
    accountId String
    name String
    The name of the list.
    type String
    The type of list. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".
    description String
    The description of the list.
    items List<Property Map>
    The items in the list.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TeamsList resource produces the following output properties:

    CreatedAt string
    Id string
    The provider-assigned unique ID for this managed resource.
    ListCount double
    The number of items in the list.
    UpdatedAt string
    CreatedAt string
    Id string
    The provider-assigned unique ID for this managed resource.
    ListCount float64
    The number of items in the list.
    UpdatedAt string
    createdAt String
    id String
    The provider-assigned unique ID for this managed resource.
    listCount Double
    The number of items in the list.
    updatedAt String
    createdAt string
    id string
    The provider-assigned unique ID for this managed resource.
    listCount number
    The number of items in the list.
    updatedAt string
    created_at str
    id str
    The provider-assigned unique ID for this managed resource.
    list_count float
    The number of items in the list.
    updated_at str
    createdAt String
    id String
    The provider-assigned unique ID for this managed resource.
    listCount Number
    The number of items in the list.
    updatedAt String

    Look up Existing TeamsList Resource

    Get an existing TeamsList resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: TeamsListState, opts?: CustomResourceOptions): TeamsList
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            created_at: Optional[str] = None,
            description: Optional[str] = None,
            items: Optional[Sequence[TeamsListItemArgs]] = None,
            list_count: Optional[float] = None,
            name: Optional[str] = None,
            type: Optional[str] = None,
            updated_at: Optional[str] = None) -> TeamsList
    func GetTeamsList(ctx *Context, name string, id IDInput, state *TeamsListState, opts ...ResourceOption) (*TeamsList, error)
    public static TeamsList Get(string name, Input<string> id, TeamsListState? state, CustomResourceOptions? opts = null)
    public static TeamsList get(String name, Output<String> id, TeamsListState state, CustomResourceOptions options)
    resources:  _:    type: cloudflare:TeamsList    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AccountId string
    CreatedAt string
    Description string
    The description of the list.
    Items List<TeamsListItem>
    The items in the list.
    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
    AccountId string
    CreatedAt string
    Description string
    The description of the list.
    Items []TeamsListItemArgs
    The items in the list.
    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
    accountId String
    createdAt String
    description String
    The description of the list.
    items List<TeamsListItem>
    The items in the list.
    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
    accountId string
    createdAt string
    description string
    The description of the list.
    items TeamsListItem[]
    The items in the list.
    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
    account_id str
    created_at str
    description str
    The description of the list.
    items Sequence[TeamsListItemArgs]
    The items in the list.
    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
    accountId String
    createdAt String
    description String
    The description of the list.
    items List<Property Map>
    The items in the list.
    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

    Supporting Types

    TeamsListItem, TeamsListItemArgs

    CreatedAt string
    Description string
    The description of the list item, if present
    Value string
    The value of the item in a list.
    CreatedAt string
    Description string
    The description of the list item, if present
    Value string
    The value of the item in a list.
    createdAt String
    description String
    The description of the list item, if present
    value String
    The value of the item in a list.
    createdAt string
    description string
    The description of the list item, if present
    value string
    The value of the item in a list.
    created_at str
    description str
    The description of the list item, if present
    value str
    The value of the item in a list.
    createdAt String
    description String
    The description of the list item, if present
    value String
    The value of the item in a list.

    Import

    $ pulumi import cloudflare:index/teamsList:TeamsList example '<account_id>/<list_id>'
    

    To learn more about importing existing cloud resources, see Importing resources.

    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 v6.1.2 published on Monday, Apr 28, 2025 by Pulumi