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: "Weight information. An integer from 0 to 100. Only enterprise VIP domain names are available, 0 means off, does not pass this parameter, means that the weight information is not set.",
72
+
Default: 0,
73
+
Description: "Weight information. An integer from 0 to 100. Only enterprise VIP domain names are available, 0 means off, does not pass this parameter, means that the weight information is not set. Default is 0.",
73
74
},
74
75
"status": {
75
76
Type: schema.TypeString,
@@ -117,7 +118,7 @@ func resourceTencentCloudDnspodRecordCreate(d *schema.ResourceData, meta interfa
117
118
request.MX=helper.IntUint64(v.(int))
118
119
}
119
120
request.TTL=helper.IntUint64(ttl)
120
-
ifv, ok:=d.GetOkExists("weight"); ok {
121
+
ifv, ok:=d.GetOk("weight"); ok {
121
122
request.Weight=helper.IntUint64(v.(int))
122
123
}
123
124
request.Status=&status
@@ -268,7 +269,7 @@ func resourceTencentCloudDnspodRecordUpdate(d *schema.ResourceData, meta interfa
Copy file name to clipboardExpand all lines: website/docs/r/dnspod_record.html.markdown
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ The following arguments are supported:
38
38
*`status` - (Optional, String) Records the initial state, with values ranging from ENABLE and DISABLE. The default is ENABLE, and if DISABLE is passed in, resolution will not take effect and the limits of load balancing will not be verified.
39
39
*`sub_domain` - (Optional, String) The host records, default value is `@`.
40
40
*`ttl` - (Optional, Int) TTL, the range is 1-604800, and the minimum value of different levels of domain names is different. Default is 600.
41
-
*`weight` - (Optional, Int) Weight information. An integer from 0 to 100. Only enterprise VIP domain names are available, 0 means off, does not pass this parameter, means that the weight information is not set.
41
+
*`weight` - (Optional, Int) Weight information. An integer from 0 to 100. Only enterprise VIP domain names are available, 0 means off, does not pass this parameter, means that the weight information is not set. Default is 0.
0 commit comments