From 0cd07c0ebb700376e444310586e581c053ab26a8 Mon Sep 17 00:00:00 2001 From: hellertang Date: Fri, 2 Aug 2024 19:38:27 +0800 Subject: [PATCH 1/2] add uuid --- tencentcloud/services/cvm/data_source_tc_instances.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tencentcloud/services/cvm/data_source_tc_instances.go b/tencentcloud/services/cvm/data_source_tc_instances.go index 64da8f0d72..f0c41fc89b 100644 --- a/tencentcloud/services/cvm/data_source_tc_instances.go +++ b/tencentcloud/services/cvm/data_source_tc_instances.go @@ -253,6 +253,11 @@ func DataSourceTencentCloudInstances() *schema.Resource { Computed: true, Description: "CAM role name authorized to access.", }, + "uuid": { + Type: schema.TypeString, + Computed: true, + Description: "Globally unique ID of the instance.", + }, }, }, }, @@ -354,6 +359,7 @@ func dataSourceTencentCloudInstancesRead(d *schema.ResourceData, meta interface{ "expired_time": instance.ExpiredTime, "instance_charge_type_prepaid_renew_flag": instance.RenewFlag, "cam_role_name": instance.CamRoleName, + "uuid": instance.Uuid, } if len(instance.PublicIpAddresses) > 0 { From 1dfc8e8a2f20348b3363972653ae94cd8c866b20 Mon Sep 17 00:00:00 2001 From: hellertang Date: Fri, 2 Aug 2024 19:40:49 +0800 Subject: [PATCH 2/2] add changelog --- .changelog/2757.txt | 3 +++ website/docs/d/instances.html.markdown | 1 + 2 files changed, 4 insertions(+) create mode 100644 .changelog/2757.txt diff --git a/.changelog/2757.txt b/.changelog/2757.txt new file mode 100644 index 0000000000..bebe0f5e0c --- /dev/null +++ b/.changelog/2757.txt @@ -0,0 +1,3 @@ +```release-note:enhancement +data_source/tencentcloud_instances: add params `uuid` +``` diff --git a/website/docs/d/instances.html.markdown b/website/docs/d/instances.html.markdown index 75096997f1..07ec203492 100644 --- a/website/docs/d/instances.html.markdown +++ b/website/docs/d/instances.html.markdown @@ -96,6 +96,7 @@ In addition to all arguments above, the following attributes are exported: * `system_disk_size` - Size of the system disk. * `system_disk_type` - Type of the system disk. * `tags` - Tags of the instance. + * `uuid` - Globally unique ID of the instance. * `vpc_id` - ID of the vpc.