» alicloud_pvtz_zone_record

Provides a Private Zone Record resource.

» Example Usage

Basic Usage

resource "alicloud_pvtz_zone" "zone" {
    name = "foo.test.com"
}

resource "alicloud_pvtz_zone_record" "foo" {
    zone_id = "${alicloud_pvtz_zone.zone.id}"
    resource_record = "www"
    type = "CNAME"
    value = "bbb.test.com"
    ttl="60
}

» Argument Reference

The following arguments are supported:

  • zone_id - (Required, Forces new resource) The name of the Private Zone Record.
  • resource_record - (Required, Forces new resource) The resource record of the Private Zone Record.
  • type - (Required) The type of the Private Zone Record. Valid values: A, CNAME, TXT, MX, PTR.
  • value - (Required) The value of the Private Zone Record.
  • ttl - (Optional) The ttl of the Private Zone Record.
  • priority - (Optional) The priority of the Private Zone Record. At present, only can "MX" record support it. Valid values: [1-50]. Default to 1.

» Attributes Reference

The following attributes are exported:

  • id - The ID of the Private Zone Record.

» Import

Private Zone Record can be imported using the id, e.g.

$ terraform import alicloud_pvtz_zone_record.example abc123456