layout | page_title | sidebar_current | description |
---|---|---|---|
default |
CloudStack: cloudstack_zone |
docs-cloudstack-resource-zone |
Creates a Zone |
A cloudstack_zone
resource manages a zone within CloudStack.
resource "cloudstack_zone" "example" {
name = "example-zone"
dns1 = "8.8.8.8"
internal_dns1 = "8.8.4.4"
network_type = "Basic"
}
The following arguments are supported:
name
- (Required) The name of the zone.dns1
- (Required) The DNS server 1 for the zone.internal_dns1
- (Required) The internal DNS server 1 for the zone.network_type
- (Required) The type of network to use for the zone.
The following attributes are exported:
id
- The ID of the zone.name
- The name of the zone.dns1
- The DNS server 1 for the zone.internal_dns1
- The internal DNS server 1 for the zone.network_type
- The type of network to use for the zone.
Zones can be imported; use <ZONEID>
as the import ID. For example:
$ terraform import cloudstack_zone.example <ZONEID>