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
0 commit comments