Package com.pulumi.openstack.dns
Class Zone
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.openstack.dns.Zone
-
public class Zone extends com.pulumi.resources.CustomResourceManages a DNS zone in the OpenStack DNS Service. ## Example Usage ### Automatically detect the correct network ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.openstack.dns.Zone; import com.pulumi.openstack.dns.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 exampleCom = new Zone("exampleCom", ZoneArgs.builder() .description("An example zone") .email("jdoe@example.com") .ttl(3000) .type("PRIMARY") .build()); } } ``` ## Import This resource can be imported by specifying the zone ID with optional project ID ```sh $ pulumi import openstack:dns/zone:Zone zone_1 zone_id ``` ```sh $ pulumi import openstack:dns/zone:Zone zone_1 zone_id/project_id ```
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>>>attributes()com.pulumi.core.Output<java.util.Optional<java.lang.String>>description()com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>>disableStatusCheck()com.pulumi.core.Output<java.util.Optional<java.lang.String>>email()static Zoneget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, ZoneState state, com.pulumi.resources.CustomResourceOptions options)Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>>masters()com.pulumi.core.Output<java.lang.String>name()com.pulumi.core.Output<java.lang.String>projectId()com.pulumi.core.Output<java.lang.String>region()com.pulumi.core.Output<java.lang.Integer>ttl()com.pulumi.core.Output<java.lang.String>type()com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>>>valueSpecs()
-
-
-
Constructor Detail
-
Zone
public Zone(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
Zone
public Zone(java.lang.String name, @Nullable ZoneArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
Zone
public Zone(java.lang.String name, @Nullable ZoneArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.options- A bag of options that control this resource's behavior.
-
-
Method Detail
-
attributes
public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>>> attributes()
- Returns:
- Attributes for the DNS Service scheduler. Changing this creates a new zone.
-
description
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> description()
- Returns:
- A description of the zone.
-
disableStatusCheck
public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> disableStatusCheck()
- Returns:
- Disable wait for zone to reach ACTIVE status. The check is enabled by default. If this argument is true, zone will be considered as created/updated if OpenStack request returned success.
-
email
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> email()
- Returns:
- The email contact for the zone record.
-
masters
public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> masters()
- Returns:
- An array of master DNS servers. For when `type` is `SECONDARY`.
-
name
public com.pulumi.core.Output<java.lang.String> name()
- Returns:
- The name of the zone. Note the `.` at the end of the name. Changing this creates a new DNS zone.
-
projectId
public com.pulumi.core.Output<java.lang.String> projectId()
- Returns:
- The ID of the project DNS zone is created for, sets `X-Auth-Sudo-Tenant-ID` header (requires an assigned user role in target project)
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- The region in which to obtain the V2 Compute client. Keypairs are associated with accounts, but a Compute client is needed to create one. If omitted, the `region` argument of the provider is used. Changing this creates a new DNS zone.
-
ttl
public com.pulumi.core.Output<java.lang.Integer> ttl()
- Returns:
- The time to live (TTL) of the zone.
-
type
public com.pulumi.core.Output<java.lang.String> type()
- Returns:
- The type of zone. Can either be `PRIMARY` or `SECONDARY`. Changing this creates a new zone.
-
valueSpecs
public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>>> valueSpecs()
- Returns:
- Map of additional options. Changing this creates a new zone.
-
get
public static Zone get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable ZoneState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name- The _unique_ name of the resulting resource.id- The _unique_ provider ID of the resource to lookup.state-options- Optional settings to control the behavior of the CustomResource.
-
-