This data source provides Private Zone Records resource information owned by an Alibaba Cloud account.
data "alicloud_pvtz_zone_records" "records_ds" {
zone_id = "${alicloud_pvtz_zone.basic.id}"
keyword = "${alicloud_pvtz_zone_record.foo.value}"
}
output "first_record_id" {
value = "${data.alicloud_pvtz_zone_records.records_ds.records.0.id}"
}
The following arguments are supported:
keyword
- (Optional) Keyword for record rr and value.lang
- (Optional, Available 1.109.0+) User language.search_mode
- (Optional, Available 1.109.0+) Search mode. Value:
status
- (Optional, Available 1.109.0+) Resolve record status. Value:
tag
- (Optional, Available 1.109.0+) It is not filled in by default, and queries the current zone resolution records. Fill in "ecs" to query the host name record list under the VPC associated with the current zone.user_client_ip
- (Optional, Available 1.109.0+) User ip.zone_id
- (Required) ID of the Private Zone.ids
- (Optional, Available in 1.53.0+) A list of Private Zone Record IDs.output_file
- (Optional) File name where to save data source results (after running terraform plan
).The following attributes are exported in addition to the arguments listed above:
ids
- A list of Private Zone Record IDs.records
- A list of zone records. Each element contains the following attributes:
id
- ID of the Private Zone Record.resource_record
- Resource record of the Private Zone Record.rr
- Rr of the Private Zone Record.type
- Type of the Private Zone Record.value
- Value of the Private Zone Record.ttl
- Ttl of the Private Zone Record.priority
- Priority of the Private Zone Record.record_id
- RecordId of the Private Zone Record.remark
- Remark of the Private Zone Record.status
- Status of the Private Zone Record.