Zone

class Zone : KotlinCustomResource

Provides a Cloudflare Zone resource. Zone is the basic resource for working with Cloudflare and is roughly equivalent to a domain name that the user purchases.

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

Example Usage

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 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 example = new Zone("example", ZoneArgs.builder()
.accountId("f037e56e89293a057740de681ac9abbe")
.zone("example.com")
.build());
}
}

Import

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

Properties

Link copied to clipboard
val accountId: Output<String>?

Account ID to manage the zone resource in.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val jumpStart: Output<Boolean>?

Whether to scan for DNS records on creation. Ignored after zone is created.

Link copied to clipboard
val meta: Output<Map<String, Boolean>>
Link copied to clipboard
val nameServers: Output<List<String>>

Cloudflare-assigned name servers. This is only populated for zones that use Cloudflare DNS.

Link copied to clipboard
val paused: Output<Boolean>?

Whether this zone is paused (traffic bypasses Cloudflare). Defaults to false.

Link copied to clipboard
val plan: Output<String>

The name of the commercial plan to apply to the zone. Available values: free, lite, pro, pro_plus, business, enterprise, partners_free, partners_pro, partners_business, partners_enterprise.

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

Status of the zone. Available values: active, pending, initializing, moved, deleted, deactivated.

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. Defaults to full.

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

List of Vanity Nameservers (if set).

Link copied to clipboard
val verificationKey: Output<String>

Contains the TXT record value to validate domain ownership. This is only populated for zones of type partial.

Link copied to clipboard
val zone: Output<String>

The DNS zone name which will be added. Modifying this attribute will force creation of a new resource.