List Item
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleListItem = new cloudflare.ListItem("example_list_item", {
accountId: "023e105f4ecef8ad9ca31a8372d0c353",
listId: "2c0fc9fa937b11eaa1b71c4d701ab86e",
ip: "10.0.0.1",
});
Content copied to clipboard
import pulumi
import pulumi_cloudflare as cloudflare
example_list_item = cloudflare.ListItem("example_list_item",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
list_id="2c0fc9fa937b11eaa1b71c4d701ab86e",
ip="10.0.0.1")
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleListItem = new Cloudflare.ListItem("example_list_item", new()
{
AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
ListId = "2c0fc9fa937b11eaa1b71c4d701ab86e",
Ip = "10.0.0.1",
});
});
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.NewListItem(ctx, "example_list_item", &cloudflare.ListItemArgs{
AccountId: pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
ListId: pulumi.String("2c0fc9fa937b11eaa1b71c4d701ab86e"),
Ip: pulumi.String("10.0.0.1"),
})
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.ListItem;
import com.pulumi.cloudflare.ListItemArgs;
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 exampleListItem = new ListItem("exampleListItem", ListItemArgs.builder()
.accountId("023e105f4ecef8ad9ca31a8372d0c353")
.listId("2c0fc9fa937b11eaa1b71c4d701ab86e")
.ip("10.0.0.1")
.build());
}
}
Content copied to clipboard
resources:
exampleListItem:
type: cloudflare:ListItem
name: example_list_item
properties:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
listId: 2c0fc9fa937b11eaa1b71c4d701ab86e
ip: 10.0.0.1
Content copied to clipboard
Properties
Link copied to clipboard
Valid characters for hostnames are ASCII(7) letters from a to z, the digits from 0 to 9, wildcards (*), and the hyphen (-).
Link copied to clipboard
The RFC 3339 timestamp of when the item was last modified.
Link copied to clipboard
The unique operation ID of the asynchronous action.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The definition of the redirect.