Up-to-date reference of API arguments for DNS ptr record you can get at documentation portal

opentelekomcloud_dns_ptrrecord_v2

Manages a DNS PTR record in the OpenTelekomCloud DNS Service.

Example Usage

resource "opentelekomcloud_networking_floatingip_v2" "fip_1" {}

resource "opentelekomcloud_dns_ptrrecord_v2" "ptr_1" {
  name          = "ptr.example.com."
  description   = "An example PTR record"
  floatingip_id = opentelekomcloud_networking_floatingip_v2.fip_1.id
  ttl           = 3000

  tags = {
    foo = "bar"
  }
}

Argument Reference

The following arguments are supported:

  • name - (Required) Domain name of the PTR record. A domain name is case insensitive. Uppercase letters will also be converted into lowercase letters.

  • description - (Optional) Description of the PTR record.

  • floatingip_id - (Required) The ID of the FloatingIP/EIP.

  • ttl - (Optional) The time to live (TTL) of the record set (in seconds). The value range is 300–2147483647. The default value is 300.

  • tags - (Optional) Tags key/value pairs to associate with the PTR record.

Attributes Reference

The following attributes are exported:

  • id - The PTR record ID, which is in {region}:{floatingip_id} format.

  • name - See Argument Reference above.

  • description - See Argument Reference above.

  • floatingip_id - See Argument Reference above.

  • ttl - See Argument Reference above.

  • tags - See Argument Reference above.

  • address - The address of the FloatingIP/EIP.

Import

PTR records can be imported using region and floatingip/eip ID, separated by a colon(:), e.g.

terraform import opentelekomcloud_dns_ptrrecord_v2.ptr_1 eu-de:d90ce693-5ccf-4136-a0ed-152ce412b6b9