Skip to content

Latest commit

 

History

History
48 lines (34 loc) · 1.08 KB

domain.html.markdown

File metadata and controls

48 lines (34 loc) · 1.08 KB
layout page_title sidebar_current description
default
CloudStack: cloudstack_domain
docs-cloudstack-resource-domain
Creates a Domain

CloudStack: cloudstack_domain

A cloudstack_domain resource manages a domain within CloudStack.

Example Usage

resource "cloudstack_domain" "example" {
    name = "example-domain"
    network_domain = "example.local"
    parent_domain_id = "ROOT"
}

Argument Reference

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.

Attributes Reference

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.

Import

Domains can be imported; use <DOMAINID> as the import ID. For example:

$ terraform import cloudstack_domain.example <DOMAINID>