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,
});
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)
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
})
}
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,
});
});
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());
}
}
configuration:
poolId:
type: dynamic
subnetId:
type: dynamic
resources:
member1:
type: opentelekomcloud:LbMemberV2
properties:
address: 192.168.199.23
protocolPort: 8080
poolId: ${poolId}
subnetId: ${subnetId}
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 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 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,
});
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: &opentelekomcloud.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")
.adminStateUp(false)
.lbMemberV2Id("string")
.name("string")
.region("string")
.tenantId("string")
.timeouts(LbMemberV2TimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.weight(0)
.build());
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)
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,
});
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
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.
- Pool
Id string - The id of the pool that this member will be assigned to.
- Protocol
Port double - The port on which to listen for client traffic. Changing this creates a new member.
- Subnet
Id string - The subnet in which to access the member
- Admin
State boolUp - The administrative state of the member.
A valid value is
true
(UP) orfalse
(DOWN). - Lb
Member stringV2Id - The unique ID for the member.
- Name string
- Human-readable name for the member.
- Region string
- Tenant
Id 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
Lb
Member V2Timeouts - 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
of10
receives five times as much traffic as a member with aweight
of2
. If the value is0
, 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.
- Pool
Id string - The id of the pool that this member will be assigned to.
- Protocol
Port float64 - The port on which to listen for client traffic. Changing this creates a new member.
- Subnet
Id string - The subnet in which to access the member
- Admin
State boolUp - The administrative state of the member.
A valid value is
true
(UP) orfalse
(DOWN). - Lb
Member stringV2Id - The unique ID for the member.
- Name string
- Human-readable name for the member.
- Region string
- Tenant
Id 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
Lb
Member V2Timeouts Args - 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
of10
receives five times as much traffic as a member with aweight
of2
. If the value is0
, 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.
- pool
Id String - The id of the pool that this member will be assigned to.
- protocol
Port Double - The port on which to listen for client traffic. Changing this creates a new member.
- subnet
Id String - The subnet in which to access the member
- admin
State BooleanUp - The administrative state of the member.
A valid value is
true
(UP) orfalse
(DOWN). - lb
Member StringV2Id - The unique ID for the member.
- name String
- Human-readable name for the member.
- region String
- tenant
Id 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
Lb
Member V2Timeouts - 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
of10
receives five times as much traffic as a member with aweight
of2
. If the value is0
, 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.
- pool
Id string - The id of the pool that this member will be assigned to.
- protocol
Port number - The port on which to listen for client traffic. Changing this creates a new member.
- subnet
Id string - The subnet in which to access the member
- admin
State booleanUp - The administrative state of the member.
A valid value is
true
(UP) orfalse
(DOWN). - lb
Member stringV2Id - The unique ID for the member.
- name string
- Human-readable name for the member.
- region string
- tenant
Id 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
Lb
Member V2Timeouts - 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
of10
receives five times as much traffic as a member with aweight
of2
. If the value is0
, 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.
- 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.
- subnet_
id str - The subnet in which to access the member
- admin_
state_ boolup - The administrative state of the member.
A valid value is
true
(UP) orfalse
(DOWN). - lb_
member_ strv2_ id - 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
Lb
Member V2Timeouts Args - 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
of10
receives five times as much traffic as a member with aweight
of2
. If the value is0
, 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.
- pool
Id String - The id of the pool that this member will be assigned to.
- protocol
Port Number - The port on which to listen for client traffic. Changing this creates a new member.
- subnet
Id String - The subnet in which to access the member
- admin
State BooleanUp - The administrative state of the member.
A valid value is
true
(UP) orfalse
(DOWN). - lb
Member StringV2Id - The unique ID for the member.
- name String
- Human-readable name for the member.
- region String
- tenant
Id 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
of10
receives five times as much traffic as a member with aweight
of2
. If the value is0
, 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
- 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.
- Address string
- The IP address of the member to receive traffic from the load balancer. Changing this creates a new member.
- Admin
State boolUp - The administrative state of the member.
A valid value is
true
(UP) orfalse
(DOWN). - Lb
Member stringV2Id - The unique ID for the member.
- Name string
- Human-readable name for the member.
- Pool
Id string - The id of the pool that this member will be assigned to.
- Protocol
Port double - The port on which to listen for client traffic. Changing this creates a new member.
- Region string
- Subnet
Id string - The subnet in which to access the member
- Tenant
Id 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
Lb
Member V2Timeouts - 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
of10
receives five times as much traffic as a member with aweight
of2
. If the value is0
, 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.
- Admin
State boolUp - The administrative state of the member.
A valid value is
true
(UP) orfalse
(DOWN). - Lb
Member stringV2Id - The unique ID for the member.
- Name string
- Human-readable name for the member.
- Pool
Id string - The id of the pool that this member will be assigned to.
- Protocol
Port float64 - The port on which to listen for client traffic. Changing this creates a new member.
- Region string
- Subnet
Id string - The subnet in which to access the member
- Tenant
Id 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
Lb
Member V2Timeouts Args - 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
of10
receives five times as much traffic as a member with aweight
of2
. If the value is0
, 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.
- admin
State BooleanUp - The administrative state of the member.
A valid value is
true
(UP) orfalse
(DOWN). - lb
Member StringV2Id - The unique ID for the member.
- name String
- Human-readable name for the member.
- pool
Id String - The id of the pool that this member will be assigned to.
- protocol
Port Double - The port on which to listen for client traffic. Changing this creates a new member.
- region String
- subnet
Id String - The subnet in which to access the member
- tenant
Id 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
Lb
Member V2Timeouts - 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
of10
receives five times as much traffic as a member with aweight
of2
. If the value is0
, 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.
- admin
State booleanUp - The administrative state of the member.
A valid value is
true
(UP) orfalse
(DOWN). - lb
Member stringV2Id - The unique ID for the member.
- name string
- Human-readable name for the member.
- pool
Id string - The id of the pool that this member will be assigned to.
- protocol
Port number - The port on which to listen for client traffic. Changing this creates a new member.
- region string
- subnet
Id string - The subnet in which to access the member
- tenant
Id 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
Lb
Member V2Timeouts - 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
of10
receives five times as much traffic as a member with aweight
of2
. If the value is0
, 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_ boolup - The administrative state of the member.
A valid value is
true
(UP) orfalse
(DOWN). - lb_
member_ strv2_ id - 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
Lb
Member V2Timeouts Args - 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
of10
receives five times as much traffic as a member with aweight
of2
. If the value is0
, 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.
- admin
State BooleanUp - The administrative state of the member.
A valid value is
true
(UP) orfalse
(DOWN). - lb
Member StringV2Id - The unique ID for the member.
- name String
- Human-readable name for the member.
- pool
Id String - The id of the pool that this member will be assigned to.
- protocol
Port Number - The port on which to listen for client traffic. Changing this creates a new member.
- region String
- subnet
Id String - The subnet in which to access the member
- tenant
Id 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
of10
receives five times as much traffic as a member with aweight
of2
. If the value is0
, the backend server will not accept new requests
Supporting Types
LbMemberV2Timeouts, LbMemberV2TimeoutsArgs
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
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.