From 2997d2b8ebebd5d283764936520694b182d140c1 Mon Sep 17 00:00:00 2001 From: arunma Date: Mon, 24 Feb 2025 16:47:54 +0800 Subject: [PATCH 1/2] fix: modify doc --- tencentcloud/services/cvm/data_source_tc_eips.go | 1 + tencentcloud/services/cvm/data_source_tc_eips.md | 8 -------- website/docs/d/eips.html.markdown | 10 +--------- 3 files changed, 2 insertions(+), 17 deletions(-) diff --git a/tencentcloud/services/cvm/data_source_tc_eips.go b/tencentcloud/services/cvm/data_source_tc_eips.go index 58057f6c3d..c9ce280b3d 100644 --- a/tencentcloud/services/cvm/data_source_tc_eips.go +++ b/tencentcloud/services/cvm/data_source_tc_eips.go @@ -34,6 +34,7 @@ func DataSourceTencentCloudEips() *schema.Resource { Type: schema.TypeString, Optional: true, Description: "The elastic ip address.", + Deprecated: "Field 'public_ip' is deprecated.", }, "tags": { Type: schema.TypeMap, diff --git a/tencentcloud/services/cvm/data_source_tc_eips.md b/tencentcloud/services/cvm/data_source_tc_eips.md index 3327218a58..8192f64a71 100644 --- a/tencentcloud/services/cvm/data_source_tc_eips.md +++ b/tencentcloud/services/cvm/data_source_tc_eips.md @@ -24,14 +24,6 @@ data "tencentcloud_eips" "example" { } ``` -Query eip instances by public ip - -```hcl -data "tencentcloud_eips" "example" { - public_ip = "1.12.62.3" -} -``` - Query eip instances by tags ```hcl diff --git a/website/docs/d/eips.html.markdown b/website/docs/d/eips.html.markdown index a79ede63f7..cac31a6f42 100644 --- a/website/docs/d/eips.html.markdown +++ b/website/docs/d/eips.html.markdown @@ -35,14 +35,6 @@ data "tencentcloud_eips" "example" { } ``` -### Query eip instances by public ip - -```hcl -data "tencentcloud_eips" "example" { - public_ip = "1.12.62.3" -} -``` - ### Query eip instances by tags ```hcl @@ -59,7 +51,7 @@ The following arguments are supported: * `eip_id` - (Optional, String) ID of the EIP to be queried. * `eip_name` - (Optional, String) Name of the EIP to be queried. -* `public_ip` - (Optional, String) The elastic ip address. +* `public_ip` - (Optional, String, **Deprecated**) Field 'public_ip' is deprecated. The elastic ip address. * `result_output_file` - (Optional, String) Used to save results. * `tags` - (Optional, Map) The tags of EIP. From 02c6ab43a4452e84bf311d8cd18e8a147585b0d5 Mon Sep 17 00:00:00 2001 From: arunma Date: Mon, 24 Feb 2025 16:53:33 +0800 Subject: [PATCH 2/2] feat: add changelog --- .changelog/3153.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .changelog/3153.txt diff --git a/.changelog/3153.txt b/.changelog/3153.txt new file mode 100644 index 0000000000..625c92b0e8 --- /dev/null +++ b/.changelog/3153.txt @@ -0,0 +1,3 @@ +```release-note:deprecation +resource/tencentcloud_eips: Field 'public_ip' is deprecated. +``` \ No newline at end of file