1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. LbMemberV2
opentelekomcloud 1.36.35 published on Monday, Apr 14, 2025 by opentelekomcloud

opentelekomcloud.LbMemberV2

Explore with Pulumi AI

Up-to-date reference of API arguments for ELB member you can get at documentation portal

Manages an Enhanced Load Balancer member resource within OpenTelekomCloud.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";

const config = new pulumi.Config();
const poolId = config.requireObject("poolId");
const subnetId = config.requireObject("subnetId");
const member1 = new opentelekomcloud.LbMemberV2("member1", {
    address: "192.168.199.23",
    protocolPort: 8080,
    poolId: poolId,
    subnetId: subnetId,
});
Copy
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud

config = pulumi.Config()
pool_id = config.require_object("poolId")
subnet_id = config.require_object("subnetId")
member1 = opentelekomcloud.LbMemberV2("member1",
    address="192.168.199.23",
    protocol_port=8080,
    pool_id=pool_id,
    subnet_id=subnet_id)
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		poolId := cfg.RequireObject("poolId")
		subnetId := cfg.RequireObject("subnetId")
		_, err := opentelekomcloud.NewLbMemberV2(ctx, "member1", &opentelekomcloud.LbMemberV2Args{
			Address:      pulumi.String("192.168.199.23"),
			ProtocolPort: pulumi.Float64(8080),
			PoolId:       pulumi.Any(poolId),
			SubnetId:     pulumi.Any(subnetId),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;

return await Deployment.RunAsync(() => 
{
    var config = new Config();
    var poolId = config.RequireObject<dynamic>("poolId");
    var subnetId = config.RequireObject<dynamic>("subnetId");
    var member1 = new Opentelekomcloud.LbMemberV2("member1", new()
    {
        Address = "192.168.199.23",
        ProtocolPort = 8080,
        PoolId = poolId,
        SubnetId = subnetId,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.LbMemberV2;
import com.pulumi.opentelekomcloud.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) {
        final var config = ctx.config();
        final var poolId = config.get("poolId");
        final var subnetId = config.get("subnetId");
        var member1 = new LbMemberV2("member1", LbMemberV2Args.builder()
            .address("192.168.199.23")
            .protocolPort(8080)
            .poolId(poolId)
            .subnetId(subnetId)
            .build());

    }
}
Copy
configuration:
  poolId:
    type: dynamic
  subnetId:
    type: dynamic
resources:
  member1:
    type: opentelekomcloud:LbMemberV2
    properties:
      address: 192.168.199.23
      protocolPort: 8080
      poolId: ${poolId}
      subnetId: ${subnetId}
Copy

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: opentelekomcloud:LbMemberV2
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. LbMemberV2Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. LbMemberV2Args
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. LbMemberV2Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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 Opentelekomcloud.LbMemberV2("lbMemberV2Resource", new()
{
    Address = "string",
    PoolId = "string",
    ProtocolPort = 0,
    SubnetId = "string",
    AdminStateUp = false,
    LbMemberV2Id = "string",
    Name = "string",
    Region = "string",
    TenantId = "string",
    Timeouts = new Opentelekomcloud.Inputs.LbMemberV2TimeoutsArgs
    {
        Create = "string",
        Delete = "string",
        Update = "string",
    },
    Weight = 0,
});
Copy
example, err := opentelekomcloud.NewLbMemberV2(ctx, "lbMemberV2Resource", &opentelekomcloud.LbMemberV2Args{
Address: pulumi.String("string"),
PoolId: pulumi.String("string"),
ProtocolPort: pulumi.Float64(0),
SubnetId: pulumi.String("string"),
AdminStateUp: pulumi.Bool(false),
LbMemberV2Id: pulumi.String("string"),
Name: pulumi.String("string"),
Region: pulumi.String("string"),
TenantId: pulumi.String("string"),
Timeouts: &.LbMemberV2TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
Weight: pulumi.Float64(0),
})
Copy
var lbMemberV2Resource = new LbMemberV2("lbMemberV2Resource", LbMemberV2Args.builder()
    .address("string")
    .poolId("string")
    .protocolPort(0)
    .subnetId("string")
    .adminStateUp(false)
    .lbMemberV2Id("string")
    .name("string")
    .region("string")
    .tenantId("string")
    .timeouts(LbMemberV2TimeoutsArgs.builder()
        .create("string")
        .delete("string")
        .update("string")
        .build())
    .weight(0)
    .build());
Copy
lb_member_v2_resource = opentelekomcloud.LbMemberV2("lbMemberV2Resource",
    address="string",
    pool_id="string",
    protocol_port=0,
    subnet_id="string",
    admin_state_up=False,
    lb_member_v2_id="string",
    name="string",
    region="string",
    tenant_id="string",
    timeouts={
        "create": "string",
        "delete": "string",
        "update": "string",
    },
    weight=0)
Copy
const lbMemberV2Resource = new opentelekomcloud.LbMemberV2("lbMemberV2Resource", {
    address: "string",
    poolId: "string",
    protocolPort: 0,
    subnetId: "string",
    adminStateUp: false,
    lbMemberV2Id: "string",
    name: "string",
    region: "string",
    tenantId: "string",
    timeouts: {
        create: "string",
        "delete": "string",
        update: "string",
    },
    weight: 0,
});
Copy
type: opentelekomcloud:LbMemberV2
properties:
    address: string
    adminStateUp: false
    lbMemberV2Id: string
    name: string
    poolId: string
    protocolPort: 0
    region: string
    subnetId: string
    tenantId: string
    timeouts:
        create: string
        delete: string
        update: string
    weight: 0
Copy

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 This property is required. string
The IP address of the member to receive traffic from the load balancer. Changing this creates a new member.
PoolId This property is required. string
The id of the pool that this member will be assigned to.
ProtocolPort This property is required. double
The port on which to listen for client traffic. Changing this creates a new member.
SubnetId This property is required. string
The subnet in which to access the member
AdminStateUp bool
The administrative state of the member. A valid value is true (UP) or false (DOWN).
LbMemberV2Id string
The unique ID for the member.
Name string
Human-readable name for the member.
Region string
TenantId string
Required for admins. The UUID of the tenant who owns the member. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new member.
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. If the value is 0, the backend server will not accept new requests
Address This property is required. string
The IP address of the member to receive traffic from the load balancer. Changing this creates a new member.
PoolId This property is required. string
The id of the pool that this member will be assigned to.
ProtocolPort This property is required. float64
The port on which to listen for client traffic. Changing this creates a new member.
SubnetId This property is required. string
The subnet in which to access the member
AdminStateUp bool
The administrative state of the member. A valid value is true (UP) or false (DOWN).
LbMemberV2Id string
The unique ID for the member.
Name string
Human-readable name for the member.
Region string
TenantId string
Required for admins. The UUID of the tenant who owns the member. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new member.
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. If the value is 0, the backend server will not accept new requests
address This property is required. String
The IP address of the member to receive traffic from the load balancer. Changing this creates a new member.
poolId This property is required. String
The id of the pool that this member will be assigned to.
protocolPort This property is required. Double
The port on which to listen for client traffic. Changing this creates a new member.
subnetId This property is required. String
The subnet in which to access the member
adminStateUp Boolean
The administrative state of the member. A valid value is true (UP) or false (DOWN).
lbMemberV2Id String
The unique ID for the member.
name String
Human-readable name for the member.
region String
tenantId String
Required for admins. The UUID of the tenant who owns the member. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new member.
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. If the value is 0, the backend server will not accept new requests
address This property is required. string
The IP address of the member to receive traffic from the load balancer. Changing this creates a new member.
poolId This property is required. string
The id of the pool that this member will be assigned to.
protocolPort This property is required. number
The port on which to listen for client traffic. Changing this creates a new member.
subnetId This property is required. string
The subnet in which to access the member
adminStateUp boolean
The administrative state of the member. A valid value is true (UP) or false (DOWN).
lbMemberV2Id string
The unique ID for the member.
name string
Human-readable name for the member.
region string
tenantId string
Required for admins. The UUID of the tenant who owns the member. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new member.
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. If the value is 0, the backend server will not accept new requests
address This property is required. str
The IP address of the member to receive traffic from the load balancer. Changing this creates a new member.
pool_id This property is required. str
The id of the pool that this member will be assigned to.
protocol_port This property is required. float
The port on which to listen for client traffic. Changing this creates a new member.
subnet_id This property is required. str
The subnet in which to access the member
admin_state_up bool
The administrative state of the member. A valid value is true (UP) or false (DOWN).
lb_member_v2_id str
The unique ID for the member.
name str
Human-readable name for the member.
region str
tenant_id str
Required for admins. The UUID of the tenant who owns the member. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new member.
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. If the value is 0, the backend server will not accept new requests
address This property is required. String
The IP address of the member to receive traffic from the load balancer. Changing this creates a new member.
poolId This property is required. String
The id of the pool that this member will be assigned to.
protocolPort This property is required. Number
The port on which to listen for client traffic. Changing this creates a new member.
subnetId This property is required. String
The subnet in which to access the member
adminStateUp Boolean
The administrative state of the member. A valid value is true (UP) or false (DOWN).
lbMemberV2Id String
The unique ID for the member.
name String
Human-readable name for the member.
region String
tenantId String
Required for admins. The UUID of the tenant who owns the member. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new member.
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. If the value is 0, the backend server will not accept new requests

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: opentelekomcloud:LbMemberV2    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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
The administrative state of the member. A valid value is true (UP) or false (DOWN).
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.
ProtocolPort double
The port on which to listen for client traffic. Changing this creates a new member.
Region string
SubnetId string
The subnet in which to access the member
TenantId string
Required for admins. The UUID of the tenant who owns the member. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new member.
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. If the value is 0, the backend server will not accept new requests
Address string
The IP address of the member to receive traffic from the load balancer. Changing this creates a new member.
AdminStateUp bool
The administrative state of the member. A valid value is true (UP) or false (DOWN).
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.
ProtocolPort float64
The port on which to listen for client traffic. Changing this creates a new member.
Region string
SubnetId string
The subnet in which to access the member
TenantId string
Required for admins. The UUID of the tenant who owns the member. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new member.
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. If the value is 0, the backend server will not accept new requests
address String
The IP address of the member to receive traffic from the load balancer. Changing this creates a new member.
adminStateUp Boolean
The administrative state of the member. A valid value is true (UP) or false (DOWN).
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.
protocolPort Double
The port on which to listen for client traffic. Changing this creates a new member.
region String
subnetId String
The subnet in which to access the member
tenantId String
Required for admins. The UUID of the tenant who owns the member. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new member.
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. If the value is 0, the backend server will not accept new requests
address string
The IP address of the member to receive traffic from the load balancer. Changing this creates a new member.
adminStateUp boolean
The administrative state of the member. A valid value is true (UP) or false (DOWN).
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.
protocolPort number
The port on which to listen for client traffic. Changing this creates a new member.
region string
subnetId string
The subnet in which to access the member
tenantId string
Required for admins. The UUID of the tenant who owns the member. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new member.
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. If the value is 0, the backend server will not accept new requests
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
The administrative state of the member. A valid value is true (UP) or false (DOWN).
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.
protocol_port float
The port on which to listen for client traffic. Changing this creates a new member.
region str
subnet_id str
The subnet in which to access the member
tenant_id str
Required for admins. The UUID of the tenant who owns the member. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new member.
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. If the value is 0, the backend server will not accept new requests
address String
The IP address of the member to receive traffic from the load balancer. Changing this creates a new member.
adminStateUp Boolean
The administrative state of the member. A valid value is true (UP) or false (DOWN).
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.
protocolPort Number
The port on which to listen for client traffic. Changing this creates a new member.
region String
subnetId String
The subnet in which to access the member
tenantId String
Required for admins. The UUID of the tenant who owns the member. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new member.
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. If the value is 0, the backend server will not accept new requests

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

Import

Members can be imported using the pool_id/member_id, e.g.

$ pulumi import opentelekomcloud:index/lbMemberV2:LbMemberV2 member 7b80e108-1636-44e5-aece-986b0052b7dd/1bb93b8b-37a4-4b50-92cc-daa4c89d4e4c
Copy

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

Package Details

Repository
opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
License
Notes
This Pulumi package is based on the opentelekomcloud Terraform Provider.