Перейти к основному содержимому
selectel_domains_domain_v1
Последнее изменение:

selectel_domains_domain_v1

Creates and manages a domain in DNS Hosting using public API v1. For more information about domains, see the official Selectel documentation.

Example usage

resource "selectel_domains_domain_v1" "domain_1" {
name = "example.com"
}

Argument Reference

  • name - (Required) Domain name. Changing this creates a new domain name.

Attributes Reference

  • name - Domain name.

  • user_id - Selectel account ID. The account ID is in the top right corner of the Control panel.

Import

You can import a domain:

export OS_DOMAIN_NAME=<account_id>
export OS_USERNAME=<username>
export OS_PASSWORD=<password>
terraform import selectel_domains_domain_v1.domain_1 <domain_id>

where:

  • <account_id> — Selectel account ID. The account ID is in the top right corner of the Control panel. Learn more about Registration.

  • <username> — Name of the service user. To get the name, in the top right corner of the Control panel, go to the account menu ⟶ Profile and SettingsUser management ⟶ the Service users tab ⟶ copy the name of the required user. Learn more about Service users.

  • <password> — Password of the service user.

  • <domain_id> — Unique identifier of the domain, for example, 45623. To get the domain ID, in the Control panel, go to Networks ServicesDNS Hosting ⟶ the domain page ⟶ copy the domain ID from the address bar.