cloudflare.TeamsList
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
- Specify the list name.
- Type string
- Specify the list type. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".
- Description string
- Provide the list description.
- Items
List<TeamsList Item> 
- Add items to the list.
- AccountId string
- Name string
- Specify the list name.
- Type string
- Specify the list type. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".
- Description string
- Provide the list description.
- Items
[]TeamsList Item Args 
- Add items to the list.
- accountId String
- name String
- Specify the list name.
- type String
- Specify the list type. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".
- description String
- Provide the list description.
- items
List<TeamsList Item> 
- Add items to the list.
- accountId string
- name string
- Specify the list name.
- type string
- Specify the list type. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".
- description string
- Provide the list description.
- items
TeamsList Item[] 
- Add items to the list.
- account_id str
- name str
- Specify the list name.
- type str
- Specify the list type. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".
- description str
- Provide the list description.
- items
Sequence[TeamsList Item Args] 
- Add items to the list.
- accountId String
- name String
- Specify the list name.
- type String
- Specify the list type. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".
- description String
- Provide the list description.
- items List<Property Map>
- Add items to the list.
Outputs
All input properties are implicitly available as output properties. Additionally, the TeamsList resource produces the following output properties:
- created_at str
- id str
- The provider-assigned unique ID for this managed resource.
- list_count float
- Indicate the number of items in the list.
- updated_at str
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) -> TeamsListfunc 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.
- AccountId string
- CreatedAt string
- Description string
- Provide the list description.
- Items
List<TeamsList Item> 
- Add items to the list.
- ListCount double
- Indicate the number of items in the list.
- Name string
- Specify the list name.
- Type string
- Specify the list type. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".
- UpdatedAt string
- AccountId string
- CreatedAt string
- Description string
- Provide the list description.
- Items
[]TeamsList Item Args 
- Add items to the list.
- ListCount float64
- Indicate the number of items in the list.
- Name string
- Specify the list name.
- Type string
- Specify the list type. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".
- UpdatedAt string
- accountId String
- createdAt String
- description String
- Provide the list description.
- items
List<TeamsList Item> 
- Add items to the list.
- listCount Double
- Indicate the number of items in the list.
- name String
- Specify the list name.
- type String
- Specify the list type. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".
- updatedAt String
- accountId string
- createdAt string
- description string
- Provide the list description.
- items
TeamsList Item[] 
- Add items to the list.
- listCount number
- Indicate the number of items in the list.
- name string
- Specify the list name.
- type string
- Specify the list type. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".
- updatedAt string
- account_id str
- created_at str
- description str
- Provide the list description.
- items
Sequence[TeamsList Item Args] 
- Add items to the list.
- list_count float
- Indicate the number of items in the list.
- name str
- Specify the list name.
- type str
- Specify the list type. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".
- updated_at str
- accountId String
- createdAt String
- description String
- Provide the list description.
- items List<Property Map>
- Add items to the list.
- listCount Number
- Indicate the number of items in the list.
- name String
- Specify the list name.
- type String
- Specify the list type. Available values: "SERIAL", "URL", "DOMAIN", "EMAIL", "IP".
- updatedAt String
Supporting Types
TeamsListItem, TeamsListItemArgs      
- Description string
- Provide the list item description (optional).
- Value string
- Specify the item value.
- Description string
- Provide the list item description (optional).
- Value string
- Specify the item value.
- description String
- Provide the list item description (optional).
- value String
- Specify the item value.
- description string
- Provide the list item description (optional).
- value string
- Specify the item value.
- description str
- Provide the list item description (optional).
- value str
- Specify the item value.
- description String
- Provide the list item description (optional).
- value String
- Specify the item value.
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 cloudflareTerraform Provider.
