diff --git a/docs/resources/loadbalancerv2.md b/docs/resources/loadbalancerv2.md index f600439..50c200f 100644 --- a/docs/resources/loadbalancerv2.md +++ b/docs/resources/loadbalancerv2.md @@ -50,6 +50,7 @@ resource "gcore_loadbalancerv2" "lb" { - `id` (String) The ID of this resource. - `metadata_read_only` (List of Object) (see [below for nested schema](#nestedatt--metadata_read_only)) - `vip_address` (String) Load balancer IP address +- `vip_port_id` (String) Load balancer Port ID ### Nested Schema for `timeouts` diff --git a/gcore/resource_gcore_loadbalancerv2.go b/gcore/resource_gcore_loadbalancerv2.go index 1a16d77..a11da0f 100644 --- a/gcore/resource_gcore_loadbalancerv2.go +++ b/gcore/resource_gcore_loadbalancerv2.go @@ -103,6 +103,11 @@ func resourceLoadBalancerV2() *schema.Resource { Description: "Load balancer IP address", Computed: true, }, + "vip_port_id": &schema.Schema{ + Type: schema.TypeString, + Description: "Load balancer Port ID", + Computed: true, + }, "last_updated": &schema.Schema{ Type: schema.TypeString, Optional: true, @@ -217,6 +222,7 @@ func resourceLoadBalancerV2Read(ctx context.Context, d *schema.ResourceData, m i d.Set("region_id", lb.RegionID) d.Set("name", lb.Name) d.Set("flavor", lb.Flavor.FlavorName) + d.Set("vip_port_id", lb.VipPortID) if lb.VipAddress != nil { d.Set("vip_address", lb.VipAddress.String())