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

selectel_domains_domain_v1

осторожно

This resource is applicable to DNS Hosting (legacy). We do not support and develop DNS Hosting (legacy), but domains and records created in DNS Hosting (legacy) continue to work until further notice. We recommend to transfer your data to DNS Hosting (actual). For more infomation about DNS Hosting (actual), see the official Selectel documentation.
To create zones in DNS Hosting (actual), use the selectel_domains_zone_v2 resource.

Creates and manages a domain in DNS Hosting (legacy) using public API v1.

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.