Zone

class Zone : KotlinCustomResource

If you are attempting to sign up a subdomain of a zone you must first have Subdomain Support entitlement for your account.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleZone = new cloudflare.Zone("example_zone", {
account: {
id: "023e105f4ecef8ad9ca31a8372d0c353",
},
name: "example.com",
type: "full",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_zone = cloudflare.Zone("example_zone",
account={
"id": "023e105f4ecef8ad9ca31a8372d0c353",
},
name="example.com",
type="full")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleZone = new Cloudflare.Zone("example_zone", new()
{
Account = new Cloudflare.Inputs.ZoneAccountArgs
{
Id = "023e105f4ecef8ad9ca31a8372d0c353",
},
Name = "example.com",
Type = "full",
});
});
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.NewZone(ctx, "example_zone", &cloudflare.ZoneArgs{
Account: &cloudflare.ZoneAccountArgs{
Id: pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
},
Name: pulumi.String("example.com"),
Type: pulumi.String("full"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.Zone;
import com.pulumi.cloudflare.ZoneArgs;
import com.pulumi.cloudflare.inputs.ZoneAccountArgs;
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 exampleZone = new Zone("exampleZone", ZoneArgs.builder()
.account(ZoneAccountArgs.builder()
.id("023e105f4ecef8ad9ca31a8372d0c353")
.build())
.name("example.com")
.type("full")
.build());
}
}
resources:
exampleZone:
type: cloudflare:Zone
name: example_zone
properties:
account:
id: 023e105f4ecef8ad9ca31a8372d0c353
name: example.com
type: full

Import

$ pulumi import cloudflare:index/zone:Zone example '<zone_id>'

Properties

Link copied to clipboard
val account: Output<ZoneAccount>
Link copied to clipboard
val activatedOn: Output<String>

The last time proof of ownership was detected and the zone was made active

Link copied to clipboard
val createdOn: Output<String>

When the zone was created

Link copied to clipboard
val developmentMode: Output<Double>

The interval (in seconds) from when development mode expires (positive integer) or last expired (negative integer) for the domain. If development mode has never been enabled, this value is 0.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val meta: Output<ZoneMeta>

Metadata about the zone

Link copied to clipboard
val modifiedOn: Output<String>

When the zone was last modified

Link copied to clipboard
val name: Output<String>

The domain name

Link copied to clipboard
val nameServers: Output<List<String>>

The name servers Cloudflare assigns to a zone

Link copied to clipboard
val originalDnshost: Output<String>

DNS host at the time of switching to Cloudflare

Link copied to clipboard

Original name servers before moving to Cloudflare

Link copied to clipboard

Registrar for the domain at the time of switching to Cloudflare

Link copied to clipboard
val owner: Output<ZoneOwner>

The owner of the zone

Link copied to clipboard
val paused: Output<Boolean>

Indicates whether the zone is only using Cloudflare DNS services. A true value means the zone will not receive security or performance benefits.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val status: Output<String>

The zone status on Cloudflare. Available values: "initializing", "pending", "active", "moved".

Link copied to clipboard
val type: Output<String>

A full zone implies that DNS is hosted with Cloudflare. A partial zone is typically a partner-hosted zone or a CNAME setup. Available values: "full", "partial", "secondary".

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard

An array of domains used for custom name servers. This is only available for Business and Enterprise plans.

Link copied to clipboard
val verificationKey: Output<String>

Verification key for partial zone setup.