layout | page_title | sidebar_current | description |
---|---|---|---|
default |
CloudStack: cloudstack_domain |
docs-cloudstack-resource-domain |
Creates a Domain |
A cloudstack_domain
resource manages a domain within CloudStack.
resource "cloudstack_domain" "example" {
name = "example-domain"
network_domain = "example.local"
parent_domain_id = "ROOT"
}
The following arguments are supported:
name
- (Required) The name of the domain.domain_id
- (Optional) The ID of the domain.network_domain
- (Optional) The network domain for the domain.parent_domain_id
- (Optional) The ID of the parent domain.
The following attributes are exported:
id
- The ID of the domain.name
- The name of the domain.network_domain
- The network domain for the domain.parent_domain_id
- The ID of the parent domain.
Domains can be imported; use <DOMAINID>
as the import ID. For example:
$ terraform import cloudstack_domain.example <DOMAINID>