Zone
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());
}
}
Content copied to clipboard
Import
$ pulumi import cloudflare:index/zone:Zone example <zone_id>
Content copied to clipboard
Properties
Link copied to clipboard
Cloudflare-assigned name servers. This is only populated for zones that use Cloudflare DNS.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
List of Vanity Nameservers (if set).
Link copied to clipboard
Contains the TXT record value to validate domain ownership. This is only populated for zones of type partial
.