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