diff --git a/tencentcloud/services/lighthouse/resource_tc_lighthouse_instance.go b/tencentcloud/services/lighthouse/resource_tc_lighthouse_instance.go index 8dfdd5325c..81ce9a7196 100644 --- a/tencentcloud/services/lighthouse/resource_tc_lighthouse_instance.go +++ b/tencentcloud/services/lighthouse/resource_tc_lighthouse_instance.go @@ -212,15 +212,17 @@ func ResourceTencentCloudLighthouseInstance() *schema.Resource { Computed: true, Description: "Firewall template ID. If this parameter is not specified, the default firewall policy is used.", }, - "public_address": { - Type: schema.TypeString, + "public_addresses": { + Type: schema.TypeList, + Elem: &schema.Schema{Type: schema.TypeString}, Computed: true, - Description: "Public address.", + Description: "Public addresses.", }, - "private_address": { - Type: schema.TypeString, + "private_addresses": { + Type: schema.TypeList, + Elem: &schema.Schema{Type: schema.TypeString}, Computed: true, - Description: "Private address.", + Description: "Private addresses.", }, }, } @@ -423,11 +425,11 @@ func resourceTencentCloudLighthouseInstanceRead(d *schema.ResourceData, meta int } if len(instance.PublicAddresses) > 0 { - _ = d.Set("public_address", instance.PublicAddresses[0]) + _ = d.Set("public_addresses", instance.PublicAddresses) } if len(instance.PrivateAddresses) > 0 { - _ = d.Set("private_address", instance.PrivateAddresses[0]) + _ = d.Set("private_addresses", instance.PrivateAddresses) } return nil diff --git a/website/docs/r/lighthouse_instance.html.markdown b/website/docs/r/lighthouse_instance.html.markdown index bad4fc2f05..0323b39c87 100644 --- a/website/docs/r/lighthouse_instance.html.markdown +++ b/website/docs/r/lighthouse_instance.html.markdown @@ -141,8 +141,8 @@ The `volumes` object of `containers` supports the following: In addition to all arguments above, the following attributes are exported: * `id` - ID of the resource. -* `private_address` - Private address. -* `public_address` - Public address. +* `private_addresses` - Private addresses. +* `public_addresses` - Public addresses. ## Import