You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: "Retrieve resolution records based on the host header of the resolution record. Fuzzy matching is used by default. You can set the IsExactSubdomain parameter to true for precise searching.",
32
+
Optional: true,
33
+
Type: schema.TypeString,
34
+
ConflictsWith: []string{"sub_domains"},
35
+
Description: "Retrieve resolution records based on the host header of the resolution record. Fuzzy matching is used by default. You can set the IsExactSubdomain parameter to true for precise searching.",
36
+
},
37
+
"sub_domains": {
38
+
Optional: true,
39
+
Type: schema.TypeSet,
40
+
Elem: &schema.Schema{Type: schema.TypeString},
41
+
ConflictsWith: []string{"sub_domain"},
42
+
Description: "Sub domains.",
35
43
},
36
44
37
45
"record_type": {
@@ -381,8 +389,16 @@ func dataSourceTencentCloudDnspodRecordListRead(d *schema.ResourceData, meta int
381
389
paramMap["DomainId"] =helper.IntUint64(v.(int))
382
390
}
383
391
392
+
subDomains:=make([]string, 0)
384
393
ifv, ok:=d.GetOk("sub_domain"); ok {
385
-
paramMap["SubDomain"] =helper.String(v.(string))
394
+
subDomains=append(subDomains, v.(string))
395
+
}
396
+
397
+
ifv, ok:=d.GetOk("sub_domains"); ok {
398
+
subDomainList:=v.(*schema.Set).List()
399
+
for_, subDomain:=rangesubDomainList {
400
+
subDomains=append(subDomains, subDomain.(string))
401
+
}
386
402
}
387
403
388
404
ifv, ok:=d.GetOk("record_type"); ok {
@@ -472,16 +488,19 @@ func dataSourceTencentCloudDnspodRecordListRead(d *schema.ResourceData, meta int
Copy file name to clipboardExpand all lines: website/docs/d/dnspod_record_list.html.markdown
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,6 +61,7 @@ The following arguments are supported:
61
61
*`sort_field` - (Optional, String) Sorting field, supporting NAME, LINE, TYPE, VALUE, WEIGHT, MX, TTL, UPDATED_ON fields. NAME: The host header of the resolution record LINE: The resolution record line TYPE: The resolution record type VALUE: The resolution record value WEIGHT: The weight MX: MX priority TTL: The resolution record cache time UPDATED_ON: The resolution record update time.
62
62
*`sort_type` - (Optional, String) Sorting method, ascending: ASC, descending: DESC. The default value is ASC.
63
63
*`sub_domain` - (Optional, String) Retrieve resolution records based on the host header of the resolution record. Fuzzy matching is used by default. You can set the IsExactSubdomain parameter to true for precise searching.
64
+
*`sub_domains` - (Optional, Set: [`String`]) Sub domains.
64
65
*`ttl_begin` - (Optional, Int) The starting point of the resolution record TTL query interval.
65
66
*`ttl_end` - (Optional, Int) The endpoint of the resolution record TTL query interval.
66
67
*`updated_at_begin` - (Optional, String) The starting point of the resolution record update time query interval.
0 commit comments