cloudflare.ZeroTrustList
Explore with Pulumi AI
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 ZeroTrustList Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ZeroTrustList(name: string, args: ZeroTrustListArgs, opts?: CustomResourceOptions);
@overload
def ZeroTrustList(resource_name: str,
args: ZeroTrustListArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ZeroTrustList(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
name: Optional[str] = None,
type: Optional[str] = None,
description: Optional[str] = None,
items: Optional[Sequence[ZeroTrustListItemArgs]] = None)
func NewZeroTrustList(ctx *Context, name string, args ZeroTrustListArgs, opts ...ResourceOption) (*ZeroTrustList, error)
public ZeroTrustList(string name, ZeroTrustListArgs args, CustomResourceOptions? opts = null)
public ZeroTrustList(String name, ZeroTrustListArgs args)
public ZeroTrustList(String name, ZeroTrustListArgs args, CustomResourceOptions options)
type: cloudflare:ZeroTrustList
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 ZeroTrustListArgs
- 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 ZeroTrustListArgs
- 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 ZeroTrustListArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ZeroTrustListArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ZeroTrustListArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var zeroTrustListResource = new Cloudflare.ZeroTrustList("zeroTrustListResource", new()
{
AccountId = "string",
Name = "string",
Type = "string",
Description = "string",
Items = new[]
{
new Cloudflare.Inputs.ZeroTrustListItemArgs
{
Description = "string",
Value = "string",
},
},
});
example, err := cloudflare.NewZeroTrustList(ctx, "zeroTrustListResource", &cloudflare.ZeroTrustListArgs{
AccountId: pulumi.String("string"),
Name: pulumi.String("string"),
Type: pulumi.String("string"),
Description: pulumi.String("string"),
Items: cloudflare.ZeroTrustListItemArray{
&cloudflare.ZeroTrustListItemArgs{
Description: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
})
var zeroTrustListResource = new ZeroTrustList("zeroTrustListResource", ZeroTrustListArgs.builder()
.accountId("string")
.name("string")
.type("string")
.description("string")
.items(ZeroTrustListItemArgs.builder()
.description("string")
.value("string")
.build())
.build());
zero_trust_list_resource = cloudflare.ZeroTrustList("zeroTrustListResource",
account_id="string",
name="string",
type="string",
description="string",
items=[{
"description": "string",
"value": "string",
}])
const zeroTrustListResource = new cloudflare.ZeroTrustList("zeroTrustListResource", {
accountId: "string",
name: "string",
type: "string",
description: "string",
items: [{
description: "string",
value: "string",
}],
});
type: cloudflare:ZeroTrustList
properties:
accountId: string
description: string
items:
- description: string
value: string
name: string
type: string
ZeroTrustList 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 ZeroTrustList resource accepts the following input properties:
- Account
Id 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<Zero
Trust List Item> - Add items to the list.
- Account
Id 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
[]Zero
Trust List Item Args - Add items to the list.
- account
Id 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<Zero
Trust List Item> - Add items to the list.
- account
Id 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
Zero
Trust List 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[Zero
Trust List Item Args] - Add items to the list.
- account
Id 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 ZeroTrustList 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 ZeroTrustList Resource
Get an existing ZeroTrustList 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?: ZeroTrustListState, opts?: CustomResourceOptions): ZeroTrustList
@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[ZeroTrustListItemArgs]] = None,
list_count: Optional[float] = None,
name: Optional[str] = None,
type: Optional[str] = None,
updated_at: Optional[str] = None) -> ZeroTrustList
func GetZeroTrustList(ctx *Context, name string, id IDInput, state *ZeroTrustListState, opts ...ResourceOption) (*ZeroTrustList, error)
public static ZeroTrustList Get(string name, Input<string> id, ZeroTrustListState? state, CustomResourceOptions? opts = null)
public static ZeroTrustList get(String name, Output<String> id, ZeroTrustListState state, CustomResourceOptions options)
resources: _: type: cloudflare:ZeroTrustList 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.
- Account
Id string - Created
At string - Description string
- Provide the list description.
- Items
List<Zero
Trust List Item> - Add items to the list.
- List
Count 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".
- Updated
At string
- Account
Id string - Created
At string - Description string
- Provide the list description.
- Items
[]Zero
Trust List Item Args - Add items to the list.
- List
Count 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".
- Updated
At string
- account
Id String - created
At String - description String
- Provide the list description.
- items
List<Zero
Trust List Item> - Add items to the list.
- list
Count 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".
- updated
At String
- account
Id string - created
At string - description string
- Provide the list description.
- items
Zero
Trust List Item[] - Add items to the list.
- list
Count 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".
- updated
At string
- account_
id str - created_
at str - description str
- Provide the list description.
- items
Sequence[Zero
Trust List 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
- account
Id String - created
At String - description String
- Provide the list description.
- items List<Property Map>
- Add items to the list.
- list
Count 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".
- updated
At String
Supporting Types
ZeroTrustListItem, ZeroTrustListItemArgs
- 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/zeroTrustList:ZeroTrustList 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.