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/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 { 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.