Skip to content

Commit 8320977

Browse files
authored
fix(cvm): [112105200] support parm uuid (#2757)
* add uuid * add changelog
1 parent 4d4f46c commit 8320977

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

.changelog/2757.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
data_source/tencentcloud_instances: add params `uuid`
3+
```

tencentcloud/services/cvm/data_source_tc_instances.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,11 @@ func DataSourceTencentCloudInstances() *schema.Resource {
253253
Computed: true,
254254
Description: "CAM role name authorized to access.",
255255
},
256+
"uuid": {
257+
Type: schema.TypeString,
258+
Computed: true,
259+
Description: "Globally unique ID of the instance.",
260+
},
256261
},
257262
},
258263
},
@@ -354,6 +359,7 @@ func dataSourceTencentCloudInstancesRead(d *schema.ResourceData, meta interface{
354359
"expired_time": instance.ExpiredTime,
355360
"instance_charge_type_prepaid_renew_flag": instance.RenewFlag,
356361
"cam_role_name": instance.CamRoleName,
362+
"uuid": instance.Uuid,
357363
}
358364

359365
if len(instance.PublicIpAddresses) > 0 {

website/docs/d/instances.html.markdown

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ In addition to all arguments above, the following attributes are exported:
9696
* `system_disk_size` - Size of the system disk.
9797
* `system_disk_type` - Type of the system disk.
9898
* `tags` - Tags of the instance.
99+
* `uuid` - Globally unique ID of the instance.
99100
* `vpc_id` - ID of the vpc.
100101

101102

0 commit comments

Comments
 (0)