1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. LbMemberV2
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.LbMemberV2

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    Manages an enhanced load balancer member resource within FlexibleEngine.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const exampleMember = new flexibleengine.LbMemberV2("exampleMember", {
        address: "192.168.199.23",
        protocolPort: 8080,
        poolId: flexibleengine_lb_pool_v2.example_pool.id,
        subnetId: flexibleengine_vpc_subnet_v1.example_subnet.ipv4_subnet_id,
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    example_member = flexibleengine.LbMemberV2("exampleMember",
        address="192.168.199.23",
        protocol_port=8080,
        pool_id=flexibleengine_lb_pool_v2["example_pool"]["id"],
        subnet_id=flexibleengine_vpc_subnet_v1["example_subnet"]["ipv4_subnet_id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := flexibleengine.NewLbMemberV2(ctx, "exampleMember", &flexibleengine.LbMemberV2Args{
    			Address:      pulumi.String("192.168.199.23"),
    			ProtocolPort: pulumi.Float64(8080),
    			PoolId:       pulumi.Any(flexibleengine_lb_pool_v2.Example_pool.Id),
    			SubnetId:     pulumi.Any(flexibleengine_vpc_subnet_v1.Example_subnet.Ipv4_subnet_id),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleMember = new Flexibleengine.LbMemberV2("exampleMember", new()
        {
            Address = "192.168.199.23",
            ProtocolPort = 8080,
            PoolId = flexibleengine_lb_pool_v2.Example_pool.Id,
            SubnetId = flexibleengine_vpc_subnet_v1.Example_subnet.Ipv4_subnet_id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.LbMemberV2;
    import com.pulumi.flexibleengine.LbMemberV2Args;
    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 exampleMember = new LbMemberV2("exampleMember", LbMemberV2Args.builder()
                .address("192.168.199.23")
                .protocolPort(8080)
                .poolId(flexibleengine_lb_pool_v2.example_pool().id())
                .subnetId(flexibleengine_vpc_subnet_v1.example_subnet().ipv4_subnet_id())
                .build());
    
        }
    }
    
    resources:
      exampleMember:
        type: flexibleengine:LbMemberV2
        properties:
          address: 192.168.199.23
          protocolPort: 8080
          poolId: ${flexibleengine_lb_pool_v2.example_pool.id}
          subnetId: ${flexibleengine_vpc_subnet_v1.example_subnet.ipv4_subnet_id}
    

    Create LbMemberV2 Resource

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

    Constructor syntax

    new LbMemberV2(name: string, args: LbMemberV2Args, opts?: CustomResourceOptions);
    @overload
    def LbMemberV2(resource_name: str,
                   args: LbMemberV2Args,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def LbMemberV2(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   address: Optional[str] = None,
                   pool_id: Optional[str] = None,
                   protocol_port: Optional[float] = None,
                   subnet_id: Optional[str] = None,
                   admin_state_up: Optional[bool] = None,
                   lb_member_v2_id: Optional[str] = None,
                   name: Optional[str] = None,
                   region: Optional[str] = None,
                   tenant_id: Optional[str] = None,
                   timeouts: Optional[LbMemberV2TimeoutsArgs] = None,
                   weight: Optional[float] = None)
    func NewLbMemberV2(ctx *Context, name string, args LbMemberV2Args, opts ...ResourceOption) (*LbMemberV2, error)
    public LbMemberV2(string name, LbMemberV2Args args, CustomResourceOptions? opts = null)
    public LbMemberV2(String name, LbMemberV2Args args)
    public LbMemberV2(String name, LbMemberV2Args args, CustomResourceOptions options)
    
    type: flexibleengine:LbMemberV2
    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 LbMemberV2Args
    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 LbMemberV2Args
    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 LbMemberV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LbMemberV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LbMemberV2Args
    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 lbMemberV2Resource = new Flexibleengine.LbMemberV2("lbMemberV2Resource", new()
    {
        Address = "string",
        PoolId = "string",
        ProtocolPort = 0,
        SubnetId = "string",
        LbMemberV2Id = "string",
        Name = "string",
        Region = "string",
        Timeouts = new Flexibleengine.Inputs.LbMemberV2TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
        Weight = 0,
    });
    
    example, err := flexibleengine.NewLbMemberV2(ctx, "lbMemberV2Resource", &flexibleengine.LbMemberV2Args{
    	Address:      pulumi.String("string"),
    	PoolId:       pulumi.String("string"),
    	ProtocolPort: pulumi.Float64(0),
    	SubnetId:     pulumi.String("string"),
    	LbMemberV2Id: pulumi.String("string"),
    	Name:         pulumi.String("string"),
    	Region:       pulumi.String("string"),
    	Timeouts: &flexibleengine.LbMemberV2TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    	Weight: pulumi.Float64(0),
    })
    
    var lbMemberV2Resource = new LbMemberV2("lbMemberV2Resource", LbMemberV2Args.builder()
        .address("string")
        .poolId("string")
        .protocolPort(0)
        .subnetId("string")
        .lbMemberV2Id("string")
        .name("string")
        .region("string")
        .timeouts(LbMemberV2TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .weight(0)
        .build());
    
    lb_member_v2_resource = flexibleengine.LbMemberV2("lbMemberV2Resource",
        address="string",
        pool_id="string",
        protocol_port=0,
        subnet_id="string",
        lb_member_v2_id="string",
        name="string",
        region="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        },
        weight=0)
    
    const lbMemberV2Resource = new flexibleengine.LbMemberV2("lbMemberV2Resource", {
        address: "string",
        poolId: "string",
        protocolPort: 0,
        subnetId: "string",
        lbMemberV2Id: "string",
        name: "string",
        region: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
        weight: 0,
    });
    
    type: flexibleengine:LbMemberV2
    properties:
        address: string
        lbMemberV2Id: string
        name: string
        poolId: string
        protocolPort: 0
        region: string
        subnetId: string
        timeouts:
            create: string
            delete: string
            update: string
        weight: 0
    

    LbMemberV2 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 LbMemberV2 resource accepts the following input properties:

    Address string
    The IP address of the member to receive traffic from the load balancer. Changing this creates a new member.
    PoolId string
    The id of the pool that this member will be assigned to. Changing this creates a new member.
    ProtocolPort double
    The port on which to listen for client traffic. Changing this creates a new member.
    SubnetId string
    The ipv4_subnet_id or ipv6_subnet_id of the VPC Subnet in which to access the member. Changing this creates a new member.
    AdminStateUp bool

    Deprecated: Deprecated

    LbMemberV2Id string
    The unique ID for the member.
    Name string
    Human-readable name for the member.
    Region string
    The region in which to obtain the V2 Networking client. A Networking client is needed to be created. If omitted, the region argument of the provider is used. Changing this creates a new member.
    TenantId string

    Deprecated: Deprecated

    Timeouts LbMemberV2Timeouts
    Weight double
    A positive integer value that indicates the relative portion of traffic that this member should receive from the pool. For example, a member with a weight of 10 receives five times as much traffic as a member with a weight of 2.
    Address string
    The IP address of the member to receive traffic from the load balancer. Changing this creates a new member.
    PoolId string
    The id of the pool that this member will be assigned to. Changing this creates a new member.
    ProtocolPort float64
    The port on which to listen for client traffic. Changing this creates a new member.
    SubnetId string
    The ipv4_subnet_id or ipv6_subnet_id of the VPC Subnet in which to access the member. Changing this creates a new member.
    AdminStateUp bool

    Deprecated: Deprecated

    LbMemberV2Id string
    The unique ID for the member.
    Name string
    Human-readable name for the member.
    Region string
    The region in which to obtain the V2 Networking client. A Networking client is needed to be created. If omitted, the region argument of the provider is used. Changing this creates a new member.
    TenantId string

    Deprecated: Deprecated

    Timeouts LbMemberV2TimeoutsArgs
    Weight float64
    A positive integer value that indicates the relative portion of traffic that this member should receive from the pool. For example, a member with a weight of 10 receives five times as much traffic as a member with a weight of 2.
    address String
    The IP address of the member to receive traffic from the load balancer. Changing this creates a new member.
    poolId String
    The id of the pool that this member will be assigned to. Changing this creates a new member.
    protocolPort Double
    The port on which to listen for client traffic. Changing this creates a new member.
    subnetId String
    The ipv4_subnet_id or ipv6_subnet_id of the VPC Subnet in which to access the member. Changing this creates a new member.
    adminStateUp Boolean

    Deprecated: Deprecated

    lbMemberV2Id String
    The unique ID for the member.
    name String
    Human-readable name for the member.
    region String
    The region in which to obtain the V2 Networking client. A Networking client is needed to be created. If omitted, the region argument of the provider is used. Changing this creates a new member.
    tenantId String

    Deprecated: Deprecated

    timeouts LbMemberV2Timeouts
    weight Double
    A positive integer value that indicates the relative portion of traffic that this member should receive from the pool. For example, a member with a weight of 10 receives five times as much traffic as a member with a weight of 2.
    address string
    The IP address of the member to receive traffic from the load balancer. Changing this creates a new member.
    poolId string
    The id of the pool that this member will be assigned to. Changing this creates a new member.
    protocolPort number
    The port on which to listen for client traffic. Changing this creates a new member.
    subnetId string
    The ipv4_subnet_id or ipv6_subnet_id of the VPC Subnet in which to access the member. Changing this creates a new member.
    adminStateUp boolean

    Deprecated: Deprecated

    lbMemberV2Id string
    The unique ID for the member.
    name string
    Human-readable name for the member.
    region string
    The region in which to obtain the V2 Networking client. A Networking client is needed to be created. If omitted, the region argument of the provider is used. Changing this creates a new member.
    tenantId string

    Deprecated: Deprecated

    timeouts LbMemberV2Timeouts
    weight number
    A positive integer value that indicates the relative portion of traffic that this member should receive from the pool. For example, a member with a weight of 10 receives five times as much traffic as a member with a weight of 2.
    address str
    The IP address of the member to receive traffic from the load balancer. Changing this creates a new member.
    pool_id str
    The id of the pool that this member will be assigned to. Changing this creates a new member.
    protocol_port float
    The port on which to listen for client traffic. Changing this creates a new member.
    subnet_id str
    The ipv4_subnet_id or ipv6_subnet_id of the VPC Subnet in which to access the member. Changing this creates a new member.
    admin_state_up bool

    Deprecated: Deprecated

    lb_member_v2_id str
    The unique ID for the member.
    name str
    Human-readable name for the member.
    region str
    The region in which to obtain the V2 Networking client. A Networking client is needed to be created. If omitted, the region argument of the provider is used. Changing this creates a new member.
    tenant_id str

    Deprecated: Deprecated

    timeouts LbMemberV2TimeoutsArgs
    weight float
    A positive integer value that indicates the relative portion of traffic that this member should receive from the pool. For example, a member with a weight of 10 receives five times as much traffic as a member with a weight of 2.
    address String
    The IP address of the member to receive traffic from the load balancer. Changing this creates a new member.
    poolId String
    The id of the pool that this member will be assigned to. Changing this creates a new member.
    protocolPort Number
    The port on which to listen for client traffic. Changing this creates a new member.
    subnetId String
    The ipv4_subnet_id or ipv6_subnet_id of the VPC Subnet in which to access the member. Changing this creates a new member.
    adminStateUp Boolean

    Deprecated: Deprecated

    lbMemberV2Id String
    The unique ID for the member.
    name String
    Human-readable name for the member.
    region String
    The region in which to obtain the V2 Networking client. A Networking client is needed to be created. If omitted, the region argument of the provider is used. Changing this creates a new member.
    tenantId String

    Deprecated: Deprecated

    timeouts Property Map
    weight Number
    A positive integer value that indicates the relative portion of traffic that this member should receive from the pool. For example, a member with a weight of 10 receives five times as much traffic as a member with a weight of 2.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing LbMemberV2 Resource

    Get an existing LbMemberV2 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?: LbMemberV2State, opts?: CustomResourceOptions): LbMemberV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            address: Optional[str] = None,
            admin_state_up: Optional[bool] = None,
            lb_member_v2_id: Optional[str] = None,
            name: Optional[str] = None,
            pool_id: Optional[str] = None,
            protocol_port: Optional[float] = None,
            region: Optional[str] = None,
            subnet_id: Optional[str] = None,
            tenant_id: Optional[str] = None,
            timeouts: Optional[LbMemberV2TimeoutsArgs] = None,
            weight: Optional[float] = None) -> LbMemberV2
    func GetLbMemberV2(ctx *Context, name string, id IDInput, state *LbMemberV2State, opts ...ResourceOption) (*LbMemberV2, error)
    public static LbMemberV2 Get(string name, Input<string> id, LbMemberV2State? state, CustomResourceOptions? opts = null)
    public static LbMemberV2 get(String name, Output<String> id, LbMemberV2State state, CustomResourceOptions options)
    resources:  _:    type: flexibleengine:LbMemberV2    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
    The IP address of the member to receive traffic from the load balancer. Changing this creates a new member.
    AdminStateUp bool

    Deprecated: Deprecated

    LbMemberV2Id string
    The unique ID for the member.
    Name string
    Human-readable name for the member.
    PoolId string
    The id of the pool that this member will be assigned to. Changing this creates a new member.
    ProtocolPort double
    The port on which to listen for client traffic. Changing this creates a new member.
    Region string
    The region in which to obtain the V2 Networking client. A Networking client is needed to be created. If omitted, the region argument of the provider is used. Changing this creates a new member.
    SubnetId string
    The ipv4_subnet_id or ipv6_subnet_id of the VPC Subnet in which to access the member. Changing this creates a new member.
    TenantId string

    Deprecated: Deprecated

    Timeouts LbMemberV2Timeouts
    Weight double
    A positive integer value that indicates the relative portion of traffic that this member should receive from the pool. For example, a member with a weight of 10 receives five times as much traffic as a member with a weight of 2.
    Address string
    The IP address of the member to receive traffic from the load balancer. Changing this creates a new member.
    AdminStateUp bool

    Deprecated: Deprecated

    LbMemberV2Id string
    The unique ID for the member.
    Name string
    Human-readable name for the member.
    PoolId string
    The id of the pool that this member will be assigned to. Changing this creates a new member.
    ProtocolPort float64
    The port on which to listen for client traffic. Changing this creates a new member.
    Region string
    The region in which to obtain the V2 Networking client. A Networking client is needed to be created. If omitted, the region argument of the provider is used. Changing this creates a new member.
    SubnetId string
    The ipv4_subnet_id or ipv6_subnet_id of the VPC Subnet in which to access the member. Changing this creates a new member.
    TenantId string

    Deprecated: Deprecated

    Timeouts LbMemberV2TimeoutsArgs
    Weight float64
    A positive integer value that indicates the relative portion of traffic that this member should receive from the pool. For example, a member with a weight of 10 receives five times as much traffic as a member with a weight of 2.
    address String
    The IP address of the member to receive traffic from the load balancer. Changing this creates a new member.
    adminStateUp Boolean

    Deprecated: Deprecated

    lbMemberV2Id String
    The unique ID for the member.
    name String
    Human-readable name for the member.
    poolId String
    The id of the pool that this member will be assigned to. Changing this creates a new member.
    protocolPort Double
    The port on which to listen for client traffic. Changing this creates a new member.
    region String
    The region in which to obtain the V2 Networking client. A Networking client is needed to be created. If omitted, the region argument of the provider is used. Changing this creates a new member.
    subnetId String
    The ipv4_subnet_id or ipv6_subnet_id of the VPC Subnet in which to access the member. Changing this creates a new member.
    tenantId String

    Deprecated: Deprecated

    timeouts LbMemberV2Timeouts
    weight Double
    A positive integer value that indicates the relative portion of traffic that this member should receive from the pool. For example, a member with a weight of 10 receives five times as much traffic as a member with a weight of 2.
    address string
    The IP address of the member to receive traffic from the load balancer. Changing this creates a new member.
    adminStateUp boolean

    Deprecated: Deprecated

    lbMemberV2Id string
    The unique ID for the member.
    name string
    Human-readable name for the member.
    poolId string
    The id of the pool that this member will be assigned to. Changing this creates a new member.
    protocolPort number
    The port on which to listen for client traffic. Changing this creates a new member.
    region string
    The region in which to obtain the V2 Networking client. A Networking client is needed to be created. If omitted, the region argument of the provider is used. Changing this creates a new member.
    subnetId string
    The ipv4_subnet_id or ipv6_subnet_id of the VPC Subnet in which to access the member. Changing this creates a new member.
    tenantId string

    Deprecated: Deprecated

    timeouts LbMemberV2Timeouts
    weight number
    A positive integer value that indicates the relative portion of traffic that this member should receive from the pool. For example, a member with a weight of 10 receives five times as much traffic as a member with a weight of 2.
    address str
    The IP address of the member to receive traffic from the load balancer. Changing this creates a new member.
    admin_state_up bool

    Deprecated: Deprecated

    lb_member_v2_id str
    The unique ID for the member.
    name str
    Human-readable name for the member.
    pool_id str
    The id of the pool that this member will be assigned to. Changing this creates a new member.
    protocol_port float
    The port on which to listen for client traffic. Changing this creates a new member.
    region str
    The region in which to obtain the V2 Networking client. A Networking client is needed to be created. If omitted, the region argument of the provider is used. Changing this creates a new member.
    subnet_id str
    The ipv4_subnet_id or ipv6_subnet_id of the VPC Subnet in which to access the member. Changing this creates a new member.
    tenant_id str

    Deprecated: Deprecated

    timeouts LbMemberV2TimeoutsArgs
    weight float
    A positive integer value that indicates the relative portion of traffic that this member should receive from the pool. For example, a member with a weight of 10 receives five times as much traffic as a member with a weight of 2.
    address String
    The IP address of the member to receive traffic from the load balancer. Changing this creates a new member.
    adminStateUp Boolean

    Deprecated: Deprecated

    lbMemberV2Id String
    The unique ID for the member.
    name String
    Human-readable name for the member.
    poolId String
    The id of the pool that this member will be assigned to. Changing this creates a new member.
    protocolPort Number
    The port on which to listen for client traffic. Changing this creates a new member.
    region String
    The region in which to obtain the V2 Networking client. A Networking client is needed to be created. If omitted, the region argument of the provider is used. Changing this creates a new member.
    subnetId String
    The ipv4_subnet_id or ipv6_subnet_id of the VPC Subnet in which to access the member. Changing this creates a new member.
    tenantId String

    Deprecated: Deprecated

    timeouts Property Map
    weight Number
    A positive integer value that indicates the relative portion of traffic that this member should receive from the pool. For example, a member with a weight of 10 receives five times as much traffic as a member with a weight of 2.

    Supporting Types

    LbMemberV2Timeouts, LbMemberV2TimeoutsArgs

    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

    Package Details

    Repository
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud