1. Packages
  2. Gcore Provider
  3. API Docs
  4. Lbmember
gcore 0.22.0 published on Wednesday, Apr 30, 2025 by g-core

gcore.Lbmember

Explore with Pulumi AI

gcore logo
gcore 0.22.0 published on Wednesday, Apr 30, 2025 by g-core

    Represent load balancer member

    Example Usage

    Prerequisite

    import * as pulumi from "@pulumi/pulumi";
    import * as gcore from "@pulumi/gcore";
    
    const project = gcore.getProject({
        name: "Default",
    });
    const region = gcore.getRegion({
        name: "Luxembourg-2",
    });
    
    import pulumi
    import pulumi_gcore as gcore
    
    project = gcore.get_project(name="Default")
    region = gcore.get_region(name="Luxembourg-2")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/gcore"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := gcore.GetProject(ctx, &gcore.GetProjectArgs{
    			Name: "Default",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = gcore.GetRegion(ctx, &gcore.GetRegionArgs{
    			Name: "Luxembourg-2",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcore = Pulumi.Gcore;
    
    return await Deployment.RunAsync(() => 
    {
        var project = Gcore.GetProject.Invoke(new()
        {
            Name = "Default",
        });
    
        var region = Gcore.GetRegion.Invoke(new()
        {
            Name = "Luxembourg-2",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcore.GcoreFunctions;
    import com.pulumi.gcore.inputs.GetProjectArgs;
    import com.pulumi.gcore.inputs.GetRegionArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var project = GcoreFunctions.getProject(GetProjectArgs.builder()
                .name("Default")
                .build());
    
            final var region = GcoreFunctions.getRegion(GetRegionArgs.builder()
                .name("Luxembourg-2")
                .build());
    
        }
    }
    
    variables:
      project:
        fn::invoke:
          function: gcore:getProject
          arguments:
            name: Default
      region:
        fn::invoke:
          function: gcore:getRegion
          arguments:
            name: Luxembourg-2
    
    import * as pulumi from "@pulumi/pulumi";
    import * as gcore from "@pulumi/gcore";
    
    const lb = new gcore.Loadbalancerv2("lb", {
        projectId: data.gcore_project.project.id,
        regionId: data.gcore_region.region.id,
        flavor: "lb1-1-2",
    });
    const http80 = new gcore.Lblistener("http80", {
        projectId: data.gcore_project.project.id,
        regionId: data.gcore_region.region.id,
        loadbalancerId: lb.loadbalancerv2Id,
        protocol: "HTTP",
        protocolPort: 80,
    });
    const http = new gcore.Lbpool("http", {
        projectId: data.gcore_project.project.id,
        regionId: data.gcore_region.region.id,
        loadbalancerId: lb.loadbalancerv2Id,
        listenerId: http80.lblistenerId,
        protocol: "HTTP",
        lbAlgorithm: "ROUND_ROBIN",
        healthMonitor: {
            type: "TCP",
            delay: 10,
            maxRetries: 3,
            timeout: 5,
        },
    });
    
    import pulumi
    import pulumi_gcore as gcore
    
    lb = gcore.Loadbalancerv2("lb",
        project_id=data["gcore_project"]["project"]["id"],
        region_id=data["gcore_region"]["region"]["id"],
        flavor="lb1-1-2")
    http80 = gcore.Lblistener("http80",
        project_id=data["gcore_project"]["project"]["id"],
        region_id=data["gcore_region"]["region"]["id"],
        loadbalancer_id=lb.loadbalancerv2_id,
        protocol="HTTP",
        protocol_port=80)
    http = gcore.Lbpool("http",
        project_id=data["gcore_project"]["project"]["id"],
        region_id=data["gcore_region"]["region"]["id"],
        loadbalancer_id=lb.loadbalancerv2_id,
        listener_id=http80.lblistener_id,
        protocol="HTTP",
        lb_algorithm="ROUND_ROBIN",
        health_monitor={
            "type": "TCP",
            "delay": 10,
            "max_retries": 3,
            "timeout": 5,
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/gcore"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		lb, err := gcore.NewLoadbalancerv2(ctx, "lb", &gcore.Loadbalancerv2Args{
    			ProjectId: pulumi.Any(data.Gcore_project.Project.Id),
    			RegionId:  pulumi.Any(data.Gcore_region.Region.Id),
    			Flavor:    pulumi.String("lb1-1-2"),
    		})
    		if err != nil {
    			return err
    		}
    		http80, err := gcore.NewLblistener(ctx, "http80", &gcore.LblistenerArgs{
    			ProjectId:      pulumi.Any(data.Gcore_project.Project.Id),
    			RegionId:       pulumi.Any(data.Gcore_region.Region.Id),
    			LoadbalancerId: lb.Loadbalancerv2Id,
    			Protocol:       pulumi.String("HTTP"),
    			ProtocolPort:   pulumi.Float64(80),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = gcore.NewLbpool(ctx, "http", &gcore.LbpoolArgs{
    			ProjectId:      pulumi.Any(data.Gcore_project.Project.Id),
    			RegionId:       pulumi.Any(data.Gcore_region.Region.Id),
    			LoadbalancerId: lb.Loadbalancerv2Id,
    			ListenerId:     http80.LblistenerId,
    			Protocol:       pulumi.String("HTTP"),
    			LbAlgorithm:    pulumi.String("ROUND_ROBIN"),
    			HealthMonitor: &gcore.LbpoolHealthMonitorArgs{
    				Type:       pulumi.String("TCP"),
    				Delay:      pulumi.Float64(10),
    				MaxRetries: pulumi.Float64(3),
    				Timeout:    pulumi.Float64(5),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcore = Pulumi.Gcore;
    
    return await Deployment.RunAsync(() => 
    {
        var lb = new Gcore.Loadbalancerv2("lb", new()
        {
            ProjectId = data.Gcore_project.Project.Id,
            RegionId = data.Gcore_region.Region.Id,
            Flavor = "lb1-1-2",
        });
    
        var http80 = new Gcore.Lblistener("http80", new()
        {
            ProjectId = data.Gcore_project.Project.Id,
            RegionId = data.Gcore_region.Region.Id,
            LoadbalancerId = lb.Loadbalancerv2Id,
            Protocol = "HTTP",
            ProtocolPort = 80,
        });
    
        var http = new Gcore.Lbpool("http", new()
        {
            ProjectId = data.Gcore_project.Project.Id,
            RegionId = data.Gcore_region.Region.Id,
            LoadbalancerId = lb.Loadbalancerv2Id,
            ListenerId = http80.LblistenerId,
            Protocol = "HTTP",
            LbAlgorithm = "ROUND_ROBIN",
            HealthMonitor = new Gcore.Inputs.LbpoolHealthMonitorArgs
            {
                Type = "TCP",
                Delay = 10,
                MaxRetries = 3,
                Timeout = 5,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcore.Loadbalancerv2;
    import com.pulumi.gcore.Loadbalancerv2Args;
    import com.pulumi.gcore.Lblistener;
    import com.pulumi.gcore.LblistenerArgs;
    import com.pulumi.gcore.Lbpool;
    import com.pulumi.gcore.LbpoolArgs;
    import com.pulumi.gcore.inputs.LbpoolHealthMonitorArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var lb = new Loadbalancerv2("lb", Loadbalancerv2Args.builder()
                .projectId(data.gcore_project().project().id())
                .regionId(data.gcore_region().region().id())
                .flavor("lb1-1-2")
                .build());
    
            var http80 = new Lblistener("http80", LblistenerArgs.builder()
                .projectId(data.gcore_project().project().id())
                .regionId(data.gcore_region().region().id())
                .loadbalancerId(lb.loadbalancerv2Id())
                .protocol("HTTP")
                .protocolPort(80)
                .build());
    
            var http = new Lbpool("http", LbpoolArgs.builder()
                .projectId(data.gcore_project().project().id())
                .regionId(data.gcore_region().region().id())
                .loadbalancerId(lb.loadbalancerv2Id())
                .listenerId(http80.lblistenerId())
                .protocol("HTTP")
                .lbAlgorithm("ROUND_ROBIN")
                .healthMonitor(LbpoolHealthMonitorArgs.builder()
                    .type("TCP")
                    .delay(10)
                    .maxRetries(3)
                    .timeout(5)
                    .build())
                .build());
    
        }
    }
    
    resources:
      lb:
        type: gcore:Loadbalancerv2
        properties:
          projectId: ${data.gcore_project.project.id}
          regionId: ${data.gcore_region.region.id}
          flavor: lb1-1-2
      http80:
        type: gcore:Lblistener
        properties:
          projectId: ${data.gcore_project.project.id}
          regionId: ${data.gcore_region.region.id}
          loadbalancerId: ${lb.loadbalancerv2Id}
          protocol: HTTP
          protocolPort: 80
      http:
        type: gcore:Lbpool
        properties:
          projectId: ${data.gcore_project.project.id}
          regionId: ${data.gcore_region.region.id}
          loadbalancerId: ${lb.loadbalancerv2Id}
          listenerId: ${http80.lblistenerId}
          protocol: HTTP
          lbAlgorithm: ROUND_ROBIN
          healthMonitor:
            type: TCP
            delay: 10
            maxRetries: 3
            timeout: 5
    

    Public member

    import * as pulumi from "@pulumi/pulumi";
    import * as gcore from "@pulumi/gcore";
    
    const publicMember = new gcore.Lbmember("publicMember", {
        projectId: data.gcore_project.project.id,
        regionId: data.gcore_region.region.id,
        poolId: gcore_lbpool.http.id,
        address: "8.8.8.8",
        protocolPort: 80,
        weight: 1,
    });
    
    import pulumi
    import pulumi_gcore as gcore
    
    public_member = gcore.Lbmember("publicMember",
        project_id=data["gcore_project"]["project"]["id"],
        region_id=data["gcore_region"]["region"]["id"],
        pool_id=gcore_lbpool["http"]["id"],
        address="8.8.8.8",
        protocol_port=80,
        weight=1)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/gcore"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := gcore.NewLbmember(ctx, "publicMember", &gcore.LbmemberArgs{
    			ProjectId:    pulumi.Any(data.Gcore_project.Project.Id),
    			RegionId:     pulumi.Any(data.Gcore_region.Region.Id),
    			PoolId:       pulumi.Any(gcore_lbpool.Http.Id),
    			Address:      pulumi.String("8.8.8.8"),
    			ProtocolPort: pulumi.Float64(80),
    			Weight:       pulumi.Float64(1),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcore = Pulumi.Gcore;
    
    return await Deployment.RunAsync(() => 
    {
        var publicMember = new Gcore.Lbmember("publicMember", new()
        {
            ProjectId = data.Gcore_project.Project.Id,
            RegionId = data.Gcore_region.Region.Id,
            PoolId = gcore_lbpool.Http.Id,
            Address = "8.8.8.8",
            ProtocolPort = 80,
            Weight = 1,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcore.Lbmember;
    import com.pulumi.gcore.LbmemberArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var publicMember = new Lbmember("publicMember", LbmemberArgs.builder()
                .projectId(data.gcore_project().project().id())
                .regionId(data.gcore_region().region().id())
                .poolId(gcore_lbpool.http().id())
                .address("8.8.8.8")
                .protocolPort(80)
                .weight(1)
                .build());
    
        }
    }
    
    resources:
      publicMember:
        type: gcore:Lbmember
        properties:
          projectId: ${data.gcore_project.project.id}
          regionId: ${data.gcore_region.region.id}
          poolId: ${gcore_lbpool.http.id}
          address: 8.8.8.8
          protocolPort: 80
          weight: 1
    

    Private member

    import * as pulumi from "@pulumi/pulumi";
    import * as gcore from "@pulumi/gcore";
    
    const privateNetwork = new gcore.Network("privateNetwork", {
        projectId: data.gcore_project.project.id,
        regionId: data.gcore_region.region.id,
    });
    const privateSubnet = new gcore.Subnet("privateSubnet", {
        projectId: data.gcore_project.project.id,
        regionId: data.gcore_region.region.id,
        cidr: "10.0.0.0/24",
        networkId: privateNetwork.networkId,
    });
    const fixedIp = new gcore.Reservedfixedip("fixedIp", {
        projectId: data.gcore_project.project.id,
        regionId: data.gcore_region.region.id,
        type: "ip_address",
        networkId: privateNetwork.networkId,
        subnetId: privateSubnet.subnetId,
        fixedIpAddress: "10.0.0.10",
        isVip: false,
    });
    const privateMember = new gcore.Lbmember("privateMember", {
        projectId: data.gcore_project.project.id,
        regionId: data.gcore_region.region.id,
        poolId: gcore_lbpool.http.id,
        address: fixedIp.fixedIpAddress,
        subnetId: fixedIp.subnetId,
        protocolPort: 80,
        weight: 1,
    });
    
    import pulumi
    import pulumi_gcore as gcore
    
    private_network = gcore.Network("privateNetwork",
        project_id=data["gcore_project"]["project"]["id"],
        region_id=data["gcore_region"]["region"]["id"])
    private_subnet = gcore.Subnet("privateSubnet",
        project_id=data["gcore_project"]["project"]["id"],
        region_id=data["gcore_region"]["region"]["id"],
        cidr="10.0.0.0/24",
        network_id=private_network.network_id)
    fixed_ip = gcore.Reservedfixedip("fixedIp",
        project_id=data["gcore_project"]["project"]["id"],
        region_id=data["gcore_region"]["region"]["id"],
        type="ip_address",
        network_id=private_network.network_id,
        subnet_id=private_subnet.subnet_id,
        fixed_ip_address="10.0.0.10",
        is_vip=False)
    private_member = gcore.Lbmember("privateMember",
        project_id=data["gcore_project"]["project"]["id"],
        region_id=data["gcore_region"]["region"]["id"],
        pool_id=gcore_lbpool["http"]["id"],
        address=fixed_ip.fixed_ip_address,
        subnet_id=fixed_ip.subnet_id,
        protocol_port=80,
        weight=1)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/gcore"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		privateNetwork, err := gcore.NewNetwork(ctx, "privateNetwork", &gcore.NetworkArgs{
    			ProjectId: pulumi.Any(data.Gcore_project.Project.Id),
    			RegionId:  pulumi.Any(data.Gcore_region.Region.Id),
    		})
    		if err != nil {
    			return err
    		}
    		privateSubnet, err := gcore.NewSubnet(ctx, "privateSubnet", &gcore.SubnetArgs{
    			ProjectId: pulumi.Any(data.Gcore_project.Project.Id),
    			RegionId:  pulumi.Any(data.Gcore_region.Region.Id),
    			Cidr:      pulumi.String("10.0.0.0/24"),
    			NetworkId: privateNetwork.NetworkId,
    		})
    		if err != nil {
    			return err
    		}
    		fixedIp, err := gcore.NewReservedfixedip(ctx, "fixedIp", &gcore.ReservedfixedipArgs{
    			ProjectId:      pulumi.Any(data.Gcore_project.Project.Id),
    			RegionId:       pulumi.Any(data.Gcore_region.Region.Id),
    			Type:           pulumi.String("ip_address"),
    			NetworkId:      privateNetwork.NetworkId,
    			SubnetId:       privateSubnet.SubnetId,
    			FixedIpAddress: pulumi.String("10.0.0.10"),
    			IsVip:          pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = gcore.NewLbmember(ctx, "privateMember", &gcore.LbmemberArgs{
    			ProjectId:    pulumi.Any(data.Gcore_project.Project.Id),
    			RegionId:     pulumi.Any(data.Gcore_region.Region.Id),
    			PoolId:       pulumi.Any(gcore_lbpool.Http.Id),
    			Address:      fixedIp.FixedIpAddress,
    			SubnetId:     fixedIp.SubnetId,
    			ProtocolPort: pulumi.Float64(80),
    			Weight:       pulumi.Float64(1),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcore = Pulumi.Gcore;
    
    return await Deployment.RunAsync(() => 
    {
        var privateNetwork = new Gcore.Network("privateNetwork", new()
        {
            ProjectId = data.Gcore_project.Project.Id,
            RegionId = data.Gcore_region.Region.Id,
        });
    
        var privateSubnet = new Gcore.Subnet("privateSubnet", new()
        {
            ProjectId = data.Gcore_project.Project.Id,
            RegionId = data.Gcore_region.Region.Id,
            Cidr = "10.0.0.0/24",
            NetworkId = privateNetwork.NetworkId,
        });
    
        var fixedIp = new Gcore.Reservedfixedip("fixedIp", new()
        {
            ProjectId = data.Gcore_project.Project.Id,
            RegionId = data.Gcore_region.Region.Id,
            Type = "ip_address",
            NetworkId = privateNetwork.NetworkId,
            SubnetId = privateSubnet.SubnetId,
            FixedIpAddress = "10.0.0.10",
            IsVip = false,
        });
    
        var privateMember = new Gcore.Lbmember("privateMember", new()
        {
            ProjectId = data.Gcore_project.Project.Id,
            RegionId = data.Gcore_region.Region.Id,
            PoolId = gcore_lbpool.Http.Id,
            Address = fixedIp.FixedIpAddress,
            SubnetId = fixedIp.SubnetId,
            ProtocolPort = 80,
            Weight = 1,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcore.Network;
    import com.pulumi.gcore.NetworkArgs;
    import com.pulumi.gcore.Subnet;
    import com.pulumi.gcore.SubnetArgs;
    import com.pulumi.gcore.Reservedfixedip;
    import com.pulumi.gcore.ReservedfixedipArgs;
    import com.pulumi.gcore.Lbmember;
    import com.pulumi.gcore.LbmemberArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var privateNetwork = new Network("privateNetwork", NetworkArgs.builder()
                .projectId(data.gcore_project().project().id())
                .regionId(data.gcore_region().region().id())
                .build());
    
            var privateSubnet = new Subnet("privateSubnet", SubnetArgs.builder()
                .projectId(data.gcore_project().project().id())
                .regionId(data.gcore_region().region().id())
                .cidr("10.0.0.0/24")
                .networkId(privateNetwork.networkId())
                .build());
    
            var fixedIp = new Reservedfixedip("fixedIp", ReservedfixedipArgs.builder()
                .projectId(data.gcore_project().project().id())
                .regionId(data.gcore_region().region().id())
                .type("ip_address")
                .networkId(privateNetwork.networkId())
                .subnetId(privateSubnet.subnetId())
                .fixedIpAddress("10.0.0.10")
                .isVip(false)
                .build());
    
            var privateMember = new Lbmember("privateMember", LbmemberArgs.builder()
                .projectId(data.gcore_project().project().id())
                .regionId(data.gcore_region().region().id())
                .poolId(gcore_lbpool.http().id())
                .address(fixedIp.fixedIpAddress())
                .subnetId(fixedIp.subnetId())
                .protocolPort(80)
                .weight(1)
                .build());
    
        }
    }
    
    resources:
      privateNetwork:
        type: gcore:Network
        properties:
          projectId: ${data.gcore_project.project.id}
          regionId: ${data.gcore_region.region.id}
      privateSubnet:
        type: gcore:Subnet
        properties:
          projectId: ${data.gcore_project.project.id}
          regionId: ${data.gcore_region.region.id}
          cidr: 10.0.0.0/24
          networkId: ${privateNetwork.networkId}
      fixedIp:
        type: gcore:Reservedfixedip
        properties:
          projectId: ${data.gcore_project.project.id}
          regionId: ${data.gcore_region.region.id}
          type: ip_address
          networkId: ${privateNetwork.networkId}
          subnetId: ${privateSubnet.subnetId}
          fixedIpAddress: 10.0.0.10
          isVip: false
      privateMember:
        type: gcore:Lbmember
        properties:
          projectId: ${data.gcore_project.project.id}
          regionId: ${data.gcore_region.region.id}
          poolId: ${gcore_lbpool.http.id}
          address: ${fixedIp.fixedIpAddress}
          subnetId: ${fixedIp.subnetId}
          protocolPort: 80
          weight: 1
    

    Private Instance member

    import * as pulumi from "@pulumi/pulumi";
    import * as gcore from "@pulumi/gcore";
    
    const instanceMemberPrivateNetwork = new gcore.Network("instanceMemberPrivateNetwork", {
        projectId: data.gcore_project.project.id,
        regionId: data.gcore_region.region.id,
    });
    const instanceMemberPrivateSubnet = new gcore.Subnet("instanceMemberPrivateSubnet", {
        projectId: data.gcore_project.project.id,
        regionId: data.gcore_region.region.id,
        cidr: "10.0.0.0/24",
        networkId: instanceMemberPrivateNetwork.networkId,
    });
    const instanceMemberFixedIp = new gcore.Reservedfixedip("instanceMemberFixedIp", {
        projectId: data.gcore_project.project.id,
        regionId: data.gcore_region.region.id,
        type: "ip_address",
        networkId: instanceMemberPrivateNetwork.networkId,
        subnetId: instanceMemberPrivateSubnet.subnetId,
        fixedIpAddress: "10.0.0.11",
        isVip: false,
    });
    const ubuntu = gcore.getImage({
        projectId: data.gcore_project.project.id,
        regionId: data.gcore_region.region.id,
        name: "ubuntu-22.04",
    });
    const _default = gcore.getSecuritygroup({
        name: "default",
        projectId: data.gcore_project.project.id,
        regionId: data.gcore_region.region.id,
    });
    const instanceMemberVolume = new gcore.Volume("instanceMemberVolume", {
        projectId: data.gcore_project.project.id,
        regionId: data.gcore_region.region.id,
        typeName: "ssd_hiiops",
        size: 10,
        imageId: ubuntu.then(ubuntu => ubuntu.id),
    });
    const instanceMemberInstancev2 = new gcore.Instancev2("instanceMemberInstancev2", {
        projectId: data.gcore_project.project.id,
        regionId: data.gcore_region.region.id,
        nameTemplate: "ed-c16-{ip_octets}",
        flavorId: "g1-standard-1-2",
        volumes: [{
            volumeId: instanceMemberVolume.volumeId,
            bootIndex: 0,
        }],
        interfaces: [{
            type: "reserved_fixed_ip",
            name: "my-private-network-interface",
            portId: instanceMemberFixedIp.portId,
            securityGroups: [_default.then(_default => _default.id)],
        }],
    });
    const instanceMemberLbmember = new gcore.Lbmember("instanceMemberLbmember", {
        projectId: data.gcore_project.project.id,
        regionId: data.gcore_region.region.id,
        poolId: gcore_lbpool.http.id,
        instanceId: instanceMemberInstancev2.instancev2Id,
        address: instanceMemberFixedIp.fixedIpAddress,
        protocolPort: 80,
        weight: 1,
    });
    
    import pulumi
    import pulumi_gcore as gcore
    
    instance_member_private_network = gcore.Network("instanceMemberPrivateNetwork",
        project_id=data["gcore_project"]["project"]["id"],
        region_id=data["gcore_region"]["region"]["id"])
    instance_member_private_subnet = gcore.Subnet("instanceMemberPrivateSubnet",
        project_id=data["gcore_project"]["project"]["id"],
        region_id=data["gcore_region"]["region"]["id"],
        cidr="10.0.0.0/24",
        network_id=instance_member_private_network.network_id)
    instance_member_fixed_ip = gcore.Reservedfixedip("instanceMemberFixedIp",
        project_id=data["gcore_project"]["project"]["id"],
        region_id=data["gcore_region"]["region"]["id"],
        type="ip_address",
        network_id=instance_member_private_network.network_id,
        subnet_id=instance_member_private_subnet.subnet_id,
        fixed_ip_address="10.0.0.11",
        is_vip=False)
    ubuntu = gcore.get_image(project_id=data["gcore_project"]["project"]["id"],
        region_id=data["gcore_region"]["region"]["id"],
        name="ubuntu-22.04")
    default = gcore.get_securitygroup(name="default",
        project_id=data["gcore_project"]["project"]["id"],
        region_id=data["gcore_region"]["region"]["id"])
    instance_member_volume = gcore.Volume("instanceMemberVolume",
        project_id=data["gcore_project"]["project"]["id"],
        region_id=data["gcore_region"]["region"]["id"],
        type_name="ssd_hiiops",
        size=10,
        image_id=ubuntu.id)
    instance_member_instancev2 = gcore.Instancev2("instanceMemberInstancev2",
        project_id=data["gcore_project"]["project"]["id"],
        region_id=data["gcore_region"]["region"]["id"],
        name_template="ed-c16-{ip_octets}",
        flavor_id="g1-standard-1-2",
        volumes=[{
            "volume_id": instance_member_volume.volume_id,
            "boot_index": 0,
        }],
        interfaces=[{
            "type": "reserved_fixed_ip",
            "name": "my-private-network-interface",
            "port_id": instance_member_fixed_ip.port_id,
            "security_groups": [default.id],
        }])
    instance_member_lbmember = gcore.Lbmember("instanceMemberLbmember",
        project_id=data["gcore_project"]["project"]["id"],
        region_id=data["gcore_region"]["region"]["id"],
        pool_id=gcore_lbpool["http"]["id"],
        instance_id=instance_member_instancev2.instancev2_id,
        address=instance_member_fixed_ip.fixed_ip_address,
        protocol_port=80,
        weight=1)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/gcore"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		instanceMemberPrivateNetwork, err := gcore.NewNetwork(ctx, "instanceMemberPrivateNetwork", &gcore.NetworkArgs{
    			ProjectId: pulumi.Any(data.Gcore_project.Project.Id),
    			RegionId:  pulumi.Any(data.Gcore_region.Region.Id),
    		})
    		if err != nil {
    			return err
    		}
    		instanceMemberPrivateSubnet, err := gcore.NewSubnet(ctx, "instanceMemberPrivateSubnet", &gcore.SubnetArgs{
    			ProjectId: pulumi.Any(data.Gcore_project.Project.Id),
    			RegionId:  pulumi.Any(data.Gcore_region.Region.Id),
    			Cidr:      pulumi.String("10.0.0.0/24"),
    			NetworkId: instanceMemberPrivateNetwork.NetworkId,
    		})
    		if err != nil {
    			return err
    		}
    		instanceMemberFixedIp, err := gcore.NewReservedfixedip(ctx, "instanceMemberFixedIp", &gcore.ReservedfixedipArgs{
    			ProjectId:      pulumi.Any(data.Gcore_project.Project.Id),
    			RegionId:       pulumi.Any(data.Gcore_region.Region.Id),
    			Type:           pulumi.String("ip_address"),
    			NetworkId:      instanceMemberPrivateNetwork.NetworkId,
    			SubnetId:       instanceMemberPrivateSubnet.SubnetId,
    			FixedIpAddress: pulumi.String("10.0.0.11"),
    			IsVip:          pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		ubuntu, err := gcore.GetImage(ctx, &gcore.GetImageArgs{
    			ProjectId: pulumi.Float64Ref(data.Gcore_project.Project.Id),
    			RegionId:  pulumi.Float64Ref(data.Gcore_region.Region.Id),
    			Name:      pulumi.StringRef("ubuntu-22.04"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_default, err := gcore.LookupSecuritygroup(ctx, &gcore.LookupSecuritygroupArgs{
    			Name:      "default",
    			ProjectId: pulumi.Float64Ref(data.Gcore_project.Project.Id),
    			RegionId:  pulumi.Float64Ref(data.Gcore_region.Region.Id),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		instanceMemberVolume, err := gcore.NewVolume(ctx, "instanceMemberVolume", &gcore.VolumeArgs{
    			ProjectId: pulumi.Any(data.Gcore_project.Project.Id),
    			RegionId:  pulumi.Any(data.Gcore_region.Region.Id),
    			TypeName:  pulumi.String("ssd_hiiops"),
    			Size:      pulumi.Float64(10),
    			ImageId:   pulumi.String(ubuntu.Id),
    		})
    		if err != nil {
    			return err
    		}
    		instanceMemberInstancev2, err := gcore.NewInstancev2(ctx, "instanceMemberInstancev2", &gcore.Instancev2Args{
    			ProjectId:    pulumi.Any(data.Gcore_project.Project.Id),
    			RegionId:     pulumi.Any(data.Gcore_region.Region.Id),
    			NameTemplate: pulumi.String("ed-c16-{ip_octets}"),
    			FlavorId:     pulumi.String("g1-standard-1-2"),
    			Volumes: gcore.Instancev2VolumeArray{
    				&gcore.Instancev2VolumeArgs{
    					VolumeId:  instanceMemberVolume.VolumeId,
    					BootIndex: pulumi.Float64(0),
    				},
    			},
    			Interfaces: gcore.Instancev2InterfaceArray{
    				&gcore.Instancev2InterfaceArgs{
    					Type:   pulumi.String("reserved_fixed_ip"),
    					Name:   pulumi.String("my-private-network-interface"),
    					PortId: instanceMemberFixedIp.PortId,
    					SecurityGroups: pulumi.StringArray{
    						pulumi.String(_default.Id),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = gcore.NewLbmember(ctx, "instanceMemberLbmember", &gcore.LbmemberArgs{
    			ProjectId:    pulumi.Any(data.Gcore_project.Project.Id),
    			RegionId:     pulumi.Any(data.Gcore_region.Region.Id),
    			PoolId:       pulumi.Any(gcore_lbpool.Http.Id),
    			InstanceId:   instanceMemberInstancev2.Instancev2Id,
    			Address:      instanceMemberFixedIp.FixedIpAddress,
    			ProtocolPort: pulumi.Float64(80),
    			Weight:       pulumi.Float64(1),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcore = Pulumi.Gcore;
    
    return await Deployment.RunAsync(() => 
    {
        var instanceMemberPrivateNetwork = new Gcore.Network("instanceMemberPrivateNetwork", new()
        {
            ProjectId = data.Gcore_project.Project.Id,
            RegionId = data.Gcore_region.Region.Id,
        });
    
        var instanceMemberPrivateSubnet = new Gcore.Subnet("instanceMemberPrivateSubnet", new()
        {
            ProjectId = data.Gcore_project.Project.Id,
            RegionId = data.Gcore_region.Region.Id,
            Cidr = "10.0.0.0/24",
            NetworkId = instanceMemberPrivateNetwork.NetworkId,
        });
    
        var instanceMemberFixedIp = new Gcore.Reservedfixedip("instanceMemberFixedIp", new()
        {
            ProjectId = data.Gcore_project.Project.Id,
            RegionId = data.Gcore_region.Region.Id,
            Type = "ip_address",
            NetworkId = instanceMemberPrivateNetwork.NetworkId,
            SubnetId = instanceMemberPrivateSubnet.SubnetId,
            FixedIpAddress = "10.0.0.11",
            IsVip = false,
        });
    
        var ubuntu = Gcore.GetImage.Invoke(new()
        {
            ProjectId = data.Gcore_project.Project.Id,
            RegionId = data.Gcore_region.Region.Id,
            Name = "ubuntu-22.04",
        });
    
        var @default = Gcore.GetSecuritygroup.Invoke(new()
        {
            Name = "default",
            ProjectId = data.Gcore_project.Project.Id,
            RegionId = data.Gcore_region.Region.Id,
        });
    
        var instanceMemberVolume = new Gcore.Volume("instanceMemberVolume", new()
        {
            ProjectId = data.Gcore_project.Project.Id,
            RegionId = data.Gcore_region.Region.Id,
            TypeName = "ssd_hiiops",
            Size = 10,
            ImageId = ubuntu.Apply(getImageResult => getImageResult.Id),
        });
    
        var instanceMemberInstancev2 = new Gcore.Instancev2("instanceMemberInstancev2", new()
        {
            ProjectId = data.Gcore_project.Project.Id,
            RegionId = data.Gcore_region.Region.Id,
            NameTemplate = "ed-c16-{ip_octets}",
            FlavorId = "g1-standard-1-2",
            Volumes = new[]
            {
                new Gcore.Inputs.Instancev2VolumeArgs
                {
                    VolumeId = instanceMemberVolume.VolumeId,
                    BootIndex = 0,
                },
            },
            Interfaces = new[]
            {
                new Gcore.Inputs.Instancev2InterfaceArgs
                {
                    Type = "reserved_fixed_ip",
                    Name = "my-private-network-interface",
                    PortId = instanceMemberFixedIp.PortId,
                    SecurityGroups = new[]
                    {
                        @default.Apply(@default => @default.Apply(getSecuritygroupResult => getSecuritygroupResult.Id)),
                    },
                },
            },
        });
    
        var instanceMemberLbmember = new Gcore.Lbmember("instanceMemberLbmember", new()
        {
            ProjectId = data.Gcore_project.Project.Id,
            RegionId = data.Gcore_region.Region.Id,
            PoolId = gcore_lbpool.Http.Id,
            InstanceId = instanceMemberInstancev2.Instancev2Id,
            Address = instanceMemberFixedIp.FixedIpAddress,
            ProtocolPort = 80,
            Weight = 1,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcore.Network;
    import com.pulumi.gcore.NetworkArgs;
    import com.pulumi.gcore.Subnet;
    import com.pulumi.gcore.SubnetArgs;
    import com.pulumi.gcore.Reservedfixedip;
    import com.pulumi.gcore.ReservedfixedipArgs;
    import com.pulumi.gcore.GcoreFunctions;
    import com.pulumi.gcore.inputs.GetImageArgs;
    import com.pulumi.gcore.inputs.GetSecuritygroupArgs;
    import com.pulumi.gcore.Volume;
    import com.pulumi.gcore.VolumeArgs;
    import com.pulumi.gcore.Instancev2;
    import com.pulumi.gcore.Instancev2Args;
    import com.pulumi.gcore.inputs.Instancev2VolumeArgs;
    import com.pulumi.gcore.inputs.Instancev2InterfaceArgs;
    import com.pulumi.gcore.Lbmember;
    import com.pulumi.gcore.LbmemberArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var instanceMemberPrivateNetwork = new Network("instanceMemberPrivateNetwork", NetworkArgs.builder()
                .projectId(data.gcore_project().project().id())
                .regionId(data.gcore_region().region().id())
                .build());
    
            var instanceMemberPrivateSubnet = new Subnet("instanceMemberPrivateSubnet", SubnetArgs.builder()
                .projectId(data.gcore_project().project().id())
                .regionId(data.gcore_region().region().id())
                .cidr("10.0.0.0/24")
                .networkId(instanceMemberPrivateNetwork.networkId())
                .build());
    
            var instanceMemberFixedIp = new Reservedfixedip("instanceMemberFixedIp", ReservedfixedipArgs.builder()
                .projectId(data.gcore_project().project().id())
                .regionId(data.gcore_region().region().id())
                .type("ip_address")
                .networkId(instanceMemberPrivateNetwork.networkId())
                .subnetId(instanceMemberPrivateSubnet.subnetId())
                .fixedIpAddress("10.0.0.11")
                .isVip(false)
                .build());
    
            final var ubuntu = GcoreFunctions.getImage(GetImageArgs.builder()
                .projectId(data.gcore_project().project().id())
                .regionId(data.gcore_region().region().id())
                .name("ubuntu-22.04")
                .build());
    
            final var default = GcoreFunctions.getSecuritygroup(GetSecuritygroupArgs.builder()
                .name("default")
                .projectId(data.gcore_project().project().id())
                .regionId(data.gcore_region().region().id())
                .build());
    
            var instanceMemberVolume = new Volume("instanceMemberVolume", VolumeArgs.builder()
                .projectId(data.gcore_project().project().id())
                .regionId(data.gcore_region().region().id())
                .typeName("ssd_hiiops")
                .size(10)
                .imageId(ubuntu.applyValue(getImageResult -> getImageResult.id()))
                .build());
    
            var instanceMemberInstancev2 = new Instancev2("instanceMemberInstancev2", Instancev2Args.builder()
                .projectId(data.gcore_project().project().id())
                .regionId(data.gcore_region().region().id())
                .nameTemplate("ed-c16-{ip_octets}")
                .flavorId("g1-standard-1-2")
                .volumes(Instancev2VolumeArgs.builder()
                    .volumeId(instanceMemberVolume.volumeId())
                    .bootIndex(0)
                    .build())
                .interfaces(Instancev2InterfaceArgs.builder()
                    .type("reserved_fixed_ip")
                    .name("my-private-network-interface")
                    .portId(instanceMemberFixedIp.portId())
                    .securityGroups(default_.id())
                    .build())
                .build());
    
            var instanceMemberLbmember = new Lbmember("instanceMemberLbmember", LbmemberArgs.builder()
                .projectId(data.gcore_project().project().id())
                .regionId(data.gcore_region().region().id())
                .poolId(gcore_lbpool.http().id())
                .instanceId(instanceMemberInstancev2.instancev2Id())
                .address(instanceMemberFixedIp.fixedIpAddress())
                .protocolPort(80)
                .weight(1)
                .build());
    
        }
    }
    
    resources:
      instanceMemberPrivateNetwork:
        type: gcore:Network
        properties:
          projectId: ${data.gcore_project.project.id}
          regionId: ${data.gcore_region.region.id}
      instanceMemberPrivateSubnet:
        type: gcore:Subnet
        properties:
          projectId: ${data.gcore_project.project.id}
          regionId: ${data.gcore_region.region.id}
          cidr: 10.0.0.0/24
          networkId: ${instanceMemberPrivateNetwork.networkId}
      instanceMemberFixedIp:
        type: gcore:Reservedfixedip
        properties:
          projectId: ${data.gcore_project.project.id}
          regionId: ${data.gcore_region.region.id}
          type: ip_address
          networkId: ${instanceMemberPrivateNetwork.networkId}
          subnetId: ${instanceMemberPrivateSubnet.subnetId}
          fixedIpAddress: 10.0.0.11
          isVip: false
      instanceMemberVolume:
        type: gcore:Volume
        properties:
          projectId: ${data.gcore_project.project.id}
          regionId: ${data.gcore_region.region.id}
          typeName: ssd_hiiops
          size: 10
          imageId: ${ubuntu.id}
      instanceMemberInstancev2:
        type: gcore:Instancev2
        properties:
          projectId: ${data.gcore_project.project.id}
          regionId: ${data.gcore_region.region.id}
          nameTemplate: ed-c16-{ip_octets}
          flavorId: g1-standard-1-2
          volumes:
            - volumeId: ${instanceMemberVolume.volumeId}
              bootIndex: 0
          interfaces:
            - type: reserved_fixed_ip
              name: my-private-network-interface
              portId: ${instanceMemberFixedIp.portId}
              securityGroups:
                - ${default.id}
      instanceMemberLbmember:
        type: gcore:Lbmember
        properties:
          projectId: ${data.gcore_project.project.id}
          regionId: ${data.gcore_region.region.id}
          poolId: ${gcore_lbpool.http.id}
          instanceId: ${instanceMemberInstancev2.instancev2Id}
          address: ${instanceMemberFixedIp.fixedIpAddress}
          protocolPort: 80
          weight: 1
    variables:
      ubuntu:
        fn::invoke:
          function: gcore:getImage
          arguments:
            projectId: ${data.gcore_project.project.id}
            regionId: ${data.gcore_region.region.id}
            name: ubuntu-22.04
      default:
        fn::invoke:
          function: gcore:getSecuritygroup
          arguments:
            name: default
            projectId: ${data.gcore_project.project.id}
            regionId: ${data.gcore_region.region.id}
    

    Create Lbmember Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Lbmember(name: string, args: LbmemberArgs, opts?: CustomResourceOptions);
    @overload
    def Lbmember(resource_name: str,
                 args: LbmemberArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def Lbmember(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 address: Optional[str] = None,
                 pool_id: Optional[str] = None,
                 protocol_port: Optional[float] = None,
                 instance_id: Optional[str] = None,
                 lbmember_id: Optional[str] = None,
                 project_id: Optional[float] = None,
                 project_name: Optional[str] = None,
                 region_id: Optional[float] = None,
                 region_name: Optional[str] = None,
                 subnet_id: Optional[str] = None,
                 timeouts: Optional[LbmemberTimeoutsArgs] = None,
                 weight: Optional[float] = None)
    func NewLbmember(ctx *Context, name string, args LbmemberArgs, opts ...ResourceOption) (*Lbmember, error)
    public Lbmember(string name, LbmemberArgs args, CustomResourceOptions? opts = null)
    public Lbmember(String name, LbmemberArgs args)
    public Lbmember(String name, LbmemberArgs args, CustomResourceOptions options)
    
    type: gcore:Lbmember
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args LbmemberArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args LbmemberArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args LbmemberArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LbmemberArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LbmemberArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var lbmemberResource = new Gcore.Lbmember("lbmemberResource", new()
    {
        Address = "string",
        PoolId = "string",
        ProtocolPort = 0,
        InstanceId = "string",
        LbmemberId = "string",
        ProjectId = 0,
        ProjectName = "string",
        RegionId = 0,
        RegionName = "string",
        SubnetId = "string",
        Timeouts = new Gcore.Inputs.LbmemberTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
        Weight = 0,
    });
    
    example, err := gcore.NewLbmember(ctx, "lbmemberResource", &gcore.LbmemberArgs{
    	Address:      pulumi.String("string"),
    	PoolId:       pulumi.String("string"),
    	ProtocolPort: pulumi.Float64(0),
    	InstanceId:   pulumi.String("string"),
    	LbmemberId:   pulumi.String("string"),
    	ProjectId:    pulumi.Float64(0),
    	ProjectName:  pulumi.String("string"),
    	RegionId:     pulumi.Float64(0),
    	RegionName:   pulumi.String("string"),
    	SubnetId:     pulumi.String("string"),
    	Timeouts: &gcore.LbmemberTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    	Weight: pulumi.Float64(0),
    })
    
    var lbmemberResource = new Lbmember("lbmemberResource", LbmemberArgs.builder()
        .address("string")
        .poolId("string")
        .protocolPort(0)
        .instanceId("string")
        .lbmemberId("string")
        .projectId(0)
        .projectName("string")
        .regionId(0)
        .regionName("string")
        .subnetId("string")
        .timeouts(LbmemberTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .weight(0)
        .build());
    
    lbmember_resource = gcore.Lbmember("lbmemberResource",
        address="string",
        pool_id="string",
        protocol_port=0,
        instance_id="string",
        lbmember_id="string",
        project_id=0,
        project_name="string",
        region_id=0,
        region_name="string",
        subnet_id="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        },
        weight=0)
    
    const lbmemberResource = new gcore.Lbmember("lbmemberResource", {
        address: "string",
        poolId: "string",
        protocolPort: 0,
        instanceId: "string",
        lbmemberId: "string",
        projectId: 0,
        projectName: "string",
        regionId: 0,
        regionName: "string",
        subnetId: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
        weight: 0,
    });
    
    type: gcore:Lbmember
    properties:
        address: string
        instanceId: string
        lbmemberId: string
        poolId: string
        projectId: 0
        projectName: string
        protocolPort: 0
        regionId: 0
        regionName: string
        subnetId: string
        timeouts:
            create: string
            delete: string
            update: string
        weight: 0
    

    Lbmember Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Lbmember resource accepts the following input properties:

    Address string
    IP address to communicate with real server.
    PoolId string
    ID of the target load balancer pool to attach newly created member.
    ProtocolPort double
    Port to communicate with real server.
    InstanceId string
    ID of the gcore_instance.
    LbmemberId string
    The ID of this resource.
    ProjectId double
    ID of the desired project to create load balancer member in. Alternative for project_name. One of them should be specified.
    ProjectName string
    Name of the desired project to create load balancer member in. Alternative for project_id. One of them should be specified.
    RegionId double
    ID of the desired region to create load balancer member in. Alternative for region_name. One of them should be specified.
    RegionName string
    Name of the desired region to create load balancer member in. Alternative for region_id. One of them should be specified.
    SubnetId string
    ID of the subnet in which real server placed.
    Timeouts LbmemberTimeouts
    Weight double
    Value between 0 and 256, default 1.
    Address string
    IP address to communicate with real server.
    PoolId string
    ID of the target load balancer pool to attach newly created member.
    ProtocolPort float64
    Port to communicate with real server.
    InstanceId string
    ID of the gcore_instance.
    LbmemberId string
    The ID of this resource.
    ProjectId float64
    ID of the desired project to create load balancer member in. Alternative for project_name. One of them should be specified.
    ProjectName string
    Name of the desired project to create load balancer member in. Alternative for project_id. One of them should be specified.
    RegionId float64
    ID of the desired region to create load balancer member in. Alternative for region_name. One of them should be specified.
    RegionName string
    Name of the desired region to create load balancer member in. Alternative for region_id. One of them should be specified.
    SubnetId string
    ID of the subnet in which real server placed.
    Timeouts LbmemberTimeoutsArgs
    Weight float64
    Value between 0 and 256, default 1.
    address String
    IP address to communicate with real server.
    poolId String
    ID of the target load balancer pool to attach newly created member.
    protocolPort Double
    Port to communicate with real server.
    instanceId String
    ID of the gcore_instance.
    lbmemberId String
    The ID of this resource.
    projectId Double
    ID of the desired project to create load balancer member in. Alternative for project_name. One of them should be specified.
    projectName String
    Name of the desired project to create load balancer member in. Alternative for project_id. One of them should be specified.
    regionId Double
    ID of the desired region to create load balancer member in. Alternative for region_name. One of them should be specified.
    regionName String
    Name of the desired region to create load balancer member in. Alternative for region_id. One of them should be specified.
    subnetId String
    ID of the subnet in which real server placed.
    timeouts LbmemberTimeouts
    weight Double
    Value between 0 and 256, default 1.
    address string
    IP address to communicate with real server.
    poolId string
    ID of the target load balancer pool to attach newly created member.
    protocolPort number
    Port to communicate with real server.
    instanceId string
    ID of the gcore_instance.
    lbmemberId string
    The ID of this resource.
    projectId number
    ID of the desired project to create load balancer member in. Alternative for project_name. One of them should be specified.
    projectName string
    Name of the desired project to create load balancer member in. Alternative for project_id. One of them should be specified.
    regionId number
    ID of the desired region to create load balancer member in. Alternative for region_name. One of them should be specified.
    regionName string
    Name of the desired region to create load balancer member in. Alternative for region_id. One of them should be specified.
    subnetId string
    ID of the subnet in which real server placed.
    timeouts LbmemberTimeouts
    weight number
    Value between 0 and 256, default 1.
    address str
    IP address to communicate with real server.
    pool_id str
    ID of the target load balancer pool to attach newly created member.
    protocol_port float
    Port to communicate with real server.
    instance_id str
    ID of the gcore_instance.
    lbmember_id str
    The ID of this resource.
    project_id float
    ID of the desired project to create load balancer member in. Alternative for project_name. One of them should be specified.
    project_name str
    Name of the desired project to create load balancer member in. Alternative for project_id. One of them should be specified.
    region_id float
    ID of the desired region to create load balancer member in. Alternative for region_name. One of them should be specified.
    region_name str
    Name of the desired region to create load balancer member in. Alternative for region_id. One of them should be specified.
    subnet_id str
    ID of the subnet in which real server placed.
    timeouts LbmemberTimeoutsArgs
    weight float
    Value between 0 and 256, default 1.
    address String
    IP address to communicate with real server.
    poolId String
    ID of the target load balancer pool to attach newly created member.
    protocolPort Number
    Port to communicate with real server.
    instanceId String
    ID of the gcore_instance.
    lbmemberId String
    The ID of this resource.
    projectId Number
    ID of the desired project to create load balancer member in. Alternative for project_name. One of them should be specified.
    projectName String
    Name of the desired project to create load balancer member in. Alternative for project_id. One of them should be specified.
    regionId Number
    ID of the desired region to create load balancer member in. Alternative for region_name. One of them should be specified.
    regionName String
    Name of the desired region to create load balancer member in. Alternative for region_id. One of them should be specified.
    subnetId String
    ID of the subnet in which real server placed.
    timeouts Property Map
    weight Number
    Value between 0 and 256, default 1.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Lbmember resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    LastUpdated string
    Datetime when load balancer member was updated at the last time.
    OperatingStatus string
    Operating status of this member.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastUpdated string
    Datetime when load balancer member was updated at the last time.
    OperatingStatus string
    Operating status of this member.
    id String
    The provider-assigned unique ID for this managed resource.
    lastUpdated String
    Datetime when load balancer member was updated at the last time.
    operatingStatus String
    Operating status of this member.
    id string
    The provider-assigned unique ID for this managed resource.
    lastUpdated string
    Datetime when load balancer member was updated at the last time.
    operatingStatus string
    Operating status of this member.
    id str
    The provider-assigned unique ID for this managed resource.
    last_updated str
    Datetime when load balancer member was updated at the last time.
    operating_status str
    Operating status of this member.
    id String
    The provider-assigned unique ID for this managed resource.
    lastUpdated String
    Datetime when load balancer member was updated at the last time.
    operatingStatus String
    Operating status of this member.

    Look up Existing Lbmember Resource

    Get an existing Lbmember resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: LbmemberState, opts?: CustomResourceOptions): Lbmember
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            address: Optional[str] = None,
            instance_id: Optional[str] = None,
            last_updated: Optional[str] = None,
            lbmember_id: Optional[str] = None,
            operating_status: Optional[str] = None,
            pool_id: Optional[str] = None,
            project_id: Optional[float] = None,
            project_name: Optional[str] = None,
            protocol_port: Optional[float] = None,
            region_id: Optional[float] = None,
            region_name: Optional[str] = None,
            subnet_id: Optional[str] = None,
            timeouts: Optional[LbmemberTimeoutsArgs] = None,
            weight: Optional[float] = None) -> Lbmember
    func GetLbmember(ctx *Context, name string, id IDInput, state *LbmemberState, opts ...ResourceOption) (*Lbmember, error)
    public static Lbmember Get(string name, Input<string> id, LbmemberState? state, CustomResourceOptions? opts = null)
    public static Lbmember get(String name, Output<String> id, LbmemberState state, CustomResourceOptions options)
    resources:  _:    type: gcore:Lbmember    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Address string
    IP address to communicate with real server.
    InstanceId string
    ID of the gcore_instance.
    LastUpdated string
    Datetime when load balancer member was updated at the last time.
    LbmemberId string
    The ID of this resource.
    OperatingStatus string
    Operating status of this member.
    PoolId string
    ID of the target load balancer pool to attach newly created member.
    ProjectId double
    ID of the desired project to create load balancer member in. Alternative for project_name. One of them should be specified.
    ProjectName string
    Name of the desired project to create load balancer member in. Alternative for project_id. One of them should be specified.
    ProtocolPort double
    Port to communicate with real server.
    RegionId double
    ID of the desired region to create load balancer member in. Alternative for region_name. One of them should be specified.
    RegionName string
    Name of the desired region to create load balancer member in. Alternative for region_id. One of them should be specified.
    SubnetId string
    ID of the subnet in which real server placed.
    Timeouts LbmemberTimeouts
    Weight double
    Value between 0 and 256, default 1.
    Address string
    IP address to communicate with real server.
    InstanceId string
    ID of the gcore_instance.
    LastUpdated string
    Datetime when load balancer member was updated at the last time.
    LbmemberId string
    The ID of this resource.
    OperatingStatus string
    Operating status of this member.
    PoolId string
    ID of the target load balancer pool to attach newly created member.
    ProjectId float64
    ID of the desired project to create load balancer member in. Alternative for project_name. One of them should be specified.
    ProjectName string
    Name of the desired project to create load balancer member in. Alternative for project_id. One of them should be specified.
    ProtocolPort float64
    Port to communicate with real server.
    RegionId float64
    ID of the desired region to create load balancer member in. Alternative for region_name. One of them should be specified.
    RegionName string
    Name of the desired region to create load balancer member in. Alternative for region_id. One of them should be specified.
    SubnetId string
    ID of the subnet in which real server placed.
    Timeouts LbmemberTimeoutsArgs
    Weight float64
    Value between 0 and 256, default 1.
    address String
    IP address to communicate with real server.
    instanceId String
    ID of the gcore_instance.
    lastUpdated String
    Datetime when load balancer member was updated at the last time.
    lbmemberId String
    The ID of this resource.
    operatingStatus String
    Operating status of this member.
    poolId String
    ID of the target load balancer pool to attach newly created member.
    projectId Double
    ID of the desired project to create load balancer member in. Alternative for project_name. One of them should be specified.
    projectName String
    Name of the desired project to create load balancer member in. Alternative for project_id. One of them should be specified.
    protocolPort Double
    Port to communicate with real server.
    regionId Double
    ID of the desired region to create load balancer member in. Alternative for region_name. One of them should be specified.
    regionName String
    Name of the desired region to create load balancer member in. Alternative for region_id. One of them should be specified.
    subnetId String
    ID of the subnet in which real server placed.
    timeouts LbmemberTimeouts
    weight Double
    Value between 0 and 256, default 1.
    address string
    IP address to communicate with real server.
    instanceId string
    ID of the gcore_instance.
    lastUpdated string
    Datetime when load balancer member was updated at the last time.
    lbmemberId string
    The ID of this resource.
    operatingStatus string
    Operating status of this member.
    poolId string
    ID of the target load balancer pool to attach newly created member.
    projectId number
    ID of the desired project to create load balancer member in. Alternative for project_name. One of them should be specified.
    projectName string
    Name of the desired project to create load balancer member in. Alternative for project_id. One of them should be specified.
    protocolPort number
    Port to communicate with real server.
    regionId number
    ID of the desired region to create load balancer member in. Alternative for region_name. One of them should be specified.
    regionName string
    Name of the desired region to create load balancer member in. Alternative for region_id. One of them should be specified.
    subnetId string
    ID of the subnet in which real server placed.
    timeouts LbmemberTimeouts
    weight number
    Value between 0 and 256, default 1.
    address str
    IP address to communicate with real server.
    instance_id str
    ID of the gcore_instance.
    last_updated str
    Datetime when load balancer member was updated at the last time.
    lbmember_id str
    The ID of this resource.
    operating_status str
    Operating status of this member.
    pool_id str
    ID of the target load balancer pool to attach newly created member.
    project_id float
    ID of the desired project to create load balancer member in. Alternative for project_name. One of them should be specified.
    project_name str
    Name of the desired project to create load balancer member in. Alternative for project_id. One of them should be specified.
    protocol_port float
    Port to communicate with real server.
    region_id float
    ID of the desired region to create load balancer member in. Alternative for region_name. One of them should be specified.
    region_name str
    Name of the desired region to create load balancer member in. Alternative for region_id. One of them should be specified.
    subnet_id str
    ID of the subnet in which real server placed.
    timeouts LbmemberTimeoutsArgs
    weight float
    Value between 0 and 256, default 1.
    address String
    IP address to communicate with real server.
    instanceId String
    ID of the gcore_instance.
    lastUpdated String
    Datetime when load balancer member was updated at the last time.
    lbmemberId String
    The ID of this resource.
    operatingStatus String
    Operating status of this member.
    poolId String
    ID of the target load balancer pool to attach newly created member.
    projectId Number
    ID of the desired project to create load balancer member in. Alternative for project_name. One of them should be specified.
    projectName String
    Name of the desired project to create load balancer member in. Alternative for project_id. One of them should be specified.
    protocolPort Number
    Port to communicate with real server.
    regionId Number
    ID of the desired region to create load balancer member in. Alternative for region_name. One of them should be specified.
    regionName String
    Name of the desired region to create load balancer member in. Alternative for region_id. One of them should be specified.
    subnetId String
    ID of the subnet in which real server placed.
    timeouts Property Map
    weight Number
    Value between 0 and 256, default 1.

    Supporting Types

    LbmemberTimeouts, LbmemberTimeoutsArgs

    Create string
    Delete string
    Update string
    Create string
    Delete string
    Update string
    create String
    delete String
    update String
    create string
    delete string
    update string
    create str
    delete str
    update str
    create String
    delete String
    update String

    Import

    import using <project_id>:<region_id>::<pool_id> format

    $ pulumi import gcore:index/lbmember:Lbmember lbmember1 1:6:a775dd94-4e9c-4da7-9f0e-ffc9ae34446b:447d2959-8ae0-4ca0-8d47-9f050a3637d7
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    gcore g-core/terraform-provider-gcore
    License
    Notes
    This Pulumi package is based on the gcore Terraform Provider.
    gcore logo
    gcore 0.22.0 published on Wednesday, Apr 30, 2025 by g-core