opentelekomcloud.LbPoolV3
Explore with Pulumi AI
Up-to-date reference of API arguments for DLB pool you can get at documentation portal
Manages a Dedicated LB pool resource within OpenTelekomCloud.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const lb = new opentelekomcloud.LbLoadbalancerV3("lb", {
routerId: _var.router_id,
networkIds: [_var.network_id],
availabilityZones: [_var.availability_zone],
});
const pool = new opentelekomcloud.LbPoolV3("pool", {
loadbalancerId: lb.lbLoadbalancerV3Id,
lbAlgorithm: "ROUND_ROBIN",
protocol: "TCP",
sessionPersistence: {
type: "SOURCE_IP",
persistenceTimeout: 30,
},
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
lb = opentelekomcloud.LbLoadbalancerV3("lb",
router_id=var["router_id"],
network_ids=[var["network_id"]],
availability_zones=[var["availability_zone"]])
pool = opentelekomcloud.LbPoolV3("pool",
loadbalancer_id=lb.lb_loadbalancer_v3_id,
lb_algorithm="ROUND_ROBIN",
protocol="TCP",
session_persistence={
"type": "SOURCE_IP",
"persistence_timeout": 30,
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
lb, err := opentelekomcloud.NewLbLoadbalancerV3(ctx, "lb", &opentelekomcloud.LbLoadbalancerV3Args{
RouterId: pulumi.Any(_var.Router_id),
NetworkIds: pulumi.StringArray{
_var.Network_id,
},
AvailabilityZones: pulumi.StringArray{
_var.Availability_zone,
},
})
if err != nil {
return err
}
_, err = opentelekomcloud.NewLbPoolV3(ctx, "pool", &opentelekomcloud.LbPoolV3Args{
LoadbalancerId: lb.LbLoadbalancerV3Id,
LbAlgorithm: pulumi.String("ROUND_ROBIN"),
Protocol: pulumi.String("TCP"),
SessionPersistence: &opentelekomcloud.LbPoolV3SessionPersistenceArgs{
Type: pulumi.String("SOURCE_IP"),
PersistenceTimeout: pulumi.Float64(30),
},
})
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 lb = new Opentelekomcloud.LbLoadbalancerV3("lb", new()
{
RouterId = @var.Router_id,
NetworkIds = new[]
{
@var.Network_id,
},
AvailabilityZones = new[]
{
@var.Availability_zone,
},
});
var pool = new Opentelekomcloud.LbPoolV3("pool", new()
{
LoadbalancerId = lb.LbLoadbalancerV3Id,
LbAlgorithm = "ROUND_ROBIN",
Protocol = "TCP",
SessionPersistence = new Opentelekomcloud.Inputs.LbPoolV3SessionPersistenceArgs
{
Type = "SOURCE_IP",
PersistenceTimeout = 30,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.LbLoadbalancerV3;
import com.pulumi.opentelekomcloud.LbLoadbalancerV3Args;
import com.pulumi.opentelekomcloud.LbPoolV3;
import com.pulumi.opentelekomcloud.LbPoolV3Args;
import com.pulumi.opentelekomcloud.inputs.LbPoolV3SessionPersistenceArgs;
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 LbLoadbalancerV3("lb", LbLoadbalancerV3Args.builder()
.routerId(var_.router_id())
.networkIds(var_.network_id())
.availabilityZones(var_.availability_zone())
.build());
var pool = new LbPoolV3("pool", LbPoolV3Args.builder()
.loadbalancerId(lb.lbLoadbalancerV3Id())
.lbAlgorithm("ROUND_ROBIN")
.protocol("TCP")
.sessionPersistence(LbPoolV3SessionPersistenceArgs.builder()
.type("SOURCE_IP")
.persistenceTimeout("30")
.build())
.build());
}
}
resources:
lb:
type: opentelekomcloud:LbLoadbalancerV3
properties:
routerId: ${var.router_id}
networkIds:
- ${var.network_id}
availabilityZones:
- ${var.availability_zone}
pool:
type: opentelekomcloud:LbPoolV3
properties:
loadbalancerId: ${lb.lbLoadbalancerV3Id}
lbAlgorithm: ROUND_ROBIN
protocol: TCP
sessionPersistence:
type: SOURCE_IP
persistenceTimeout: '30'
Create LbPoolV3 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LbPoolV3(name: string, args: LbPoolV3Args, opts?: CustomResourceOptions);
@overload
def LbPoolV3(resource_name: str,
args: LbPoolV3Args,
opts: Optional[ResourceOptions] = None)
@overload
def LbPoolV3(resource_name: str,
opts: Optional[ResourceOptions] = None,
lb_algorithm: Optional[str] = None,
protocol: Optional[str] = None,
description: Optional[str] = None,
lb_pool_v3_id: Optional[str] = None,
listener_id: Optional[str] = None,
loadbalancer_id: Optional[str] = None,
member_deletion_protection: Optional[bool] = None,
name: Optional[str] = None,
project_id: Optional[str] = None,
session_persistence: Optional[LbPoolV3SessionPersistenceArgs] = None,
type: Optional[str] = None,
vpc_id: Optional[str] = None)
func NewLbPoolV3(ctx *Context, name string, args LbPoolV3Args, opts ...ResourceOption) (*LbPoolV3, error)
public LbPoolV3(string name, LbPoolV3Args args, CustomResourceOptions? opts = null)
public LbPoolV3(String name, LbPoolV3Args args)
public LbPoolV3(String name, LbPoolV3Args args, CustomResourceOptions options)
type: opentelekomcloud:LbPoolV3
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 LbPoolV3Args
- 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 LbPoolV3Args
- 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 LbPoolV3Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LbPoolV3Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LbPoolV3Args
- 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 lbPoolV3Resource = new Opentelekomcloud.LbPoolV3("lbPoolV3Resource", new()
{
LbAlgorithm = "string",
Protocol = "string",
Description = "string",
LbPoolV3Id = "string",
ListenerId = "string",
LoadbalancerId = "string",
MemberDeletionProtection = false,
Name = "string",
ProjectId = "string",
SessionPersistence = new Opentelekomcloud.Inputs.LbPoolV3SessionPersistenceArgs
{
Type = "string",
CookieName = "string",
PersistenceTimeout = 0,
},
Type = "string",
VpcId = "string",
});
example, err := opentelekomcloud.NewLbPoolV3(ctx, "lbPoolV3Resource", &opentelekomcloud.LbPoolV3Args{
LbAlgorithm: pulumi.String("string"),
Protocol: pulumi.String("string"),
Description: pulumi.String("string"),
LbPoolV3Id: pulumi.String("string"),
ListenerId: pulumi.String("string"),
LoadbalancerId: pulumi.String("string"),
MemberDeletionProtection: pulumi.Bool(false),
Name: pulumi.String("string"),
ProjectId: pulumi.String("string"),
SessionPersistence: &opentelekomcloud.LbPoolV3SessionPersistenceArgs{
Type: pulumi.String("string"),
CookieName: pulumi.String("string"),
PersistenceTimeout: pulumi.Float64(0),
},
Type: pulumi.String("string"),
VpcId: pulumi.String("string"),
})
var lbPoolV3Resource = new LbPoolV3("lbPoolV3Resource", LbPoolV3Args.builder()
.lbAlgorithm("string")
.protocol("string")
.description("string")
.lbPoolV3Id("string")
.listenerId("string")
.loadbalancerId("string")
.memberDeletionProtection(false)
.name("string")
.projectId("string")
.sessionPersistence(LbPoolV3SessionPersistenceArgs.builder()
.type("string")
.cookieName("string")
.persistenceTimeout(0)
.build())
.type("string")
.vpcId("string")
.build());
lb_pool_v3_resource = opentelekomcloud.LbPoolV3("lbPoolV3Resource",
lb_algorithm="string",
protocol="string",
description="string",
lb_pool_v3_id="string",
listener_id="string",
loadbalancer_id="string",
member_deletion_protection=False,
name="string",
project_id="string",
session_persistence={
"type": "string",
"cookie_name": "string",
"persistence_timeout": 0,
},
type="string",
vpc_id="string")
const lbPoolV3Resource = new opentelekomcloud.LbPoolV3("lbPoolV3Resource", {
lbAlgorithm: "string",
protocol: "string",
description: "string",
lbPoolV3Id: "string",
listenerId: "string",
loadbalancerId: "string",
memberDeletionProtection: false,
name: "string",
projectId: "string",
sessionPersistence: {
type: "string",
cookieName: "string",
persistenceTimeout: 0,
},
type: "string",
vpcId: "string",
});
type: opentelekomcloud:LbPoolV3
properties:
description: string
lbAlgorithm: string
lbPoolV3Id: string
listenerId: string
loadbalancerId: string
memberDeletionProtection: false
name: string
projectId: string
protocol: string
sessionPersistence:
cookieName: string
persistenceTimeout: 0
type: string
type: string
vpcId: string
LbPoolV3 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 LbPoolV3 resource accepts the following input properties:
- Lb
Algorithm string Specifies the load balancing algorithm used by the load balancer to route requests to backend servers.
The value can be one of the following:
ROUND_ROBIN
: weighted round-robinLEAST_CONNECTIONS
: weighted least connectionsSOURCE_IP
: source IP hash
When the value is
SOURCE_IP
, the weights of backend servers are invalid.- Protocol string
- Specifies the protocol used by the backend server group to receive requests.
TCP
,UDP
,HTTP
,HTTPS
, andQUIC
are supported.- For
UDP
listeners, the protocol of the backend server group must beUDP
. - For
TCP
listeners, the protocol of the backend server group must beTCP
. - For
HTTP
listeners, the protocol of the backend server group must beHTTP
. - For
HTTPS
listeners, the protocol of the backend server group must beHTTPS
.
- For
- Description string
- Provides supplementary information about the backend server group.
- Lb
Pool stringV3Id - Specifies the backend server group ID.
- Listener
Id string - Specifies the ID of the listener associated with the backend server group.
- Loadbalancer
Id string Specifies the ID of the associated load balancer.
Specify either
listener_id
orloadbalancer_id
, or both of them.- Member
Deletion boolProtection - Name string
- Specifies the backend server group name.
- Project
Id string - Specifies the project ID.
- Session
Persistence LbPool V3Session Persistence - Specifies whether to enable sticky sessions.
- Type string
- Vpc
Id string
- Lb
Algorithm string Specifies the load balancing algorithm used by the load balancer to route requests to backend servers.
The value can be one of the following:
ROUND_ROBIN
: weighted round-robinLEAST_CONNECTIONS
: weighted least connectionsSOURCE_IP
: source IP hash
When the value is
SOURCE_IP
, the weights of backend servers are invalid.- Protocol string
- Specifies the protocol used by the backend server group to receive requests.
TCP
,UDP
,HTTP
,HTTPS
, andQUIC
are supported.- For
UDP
listeners, the protocol of the backend server group must beUDP
. - For
TCP
listeners, the protocol of the backend server group must beTCP
. - For
HTTP
listeners, the protocol of the backend server group must beHTTP
. - For
HTTPS
listeners, the protocol of the backend server group must beHTTPS
.
- For
- Description string
- Provides supplementary information about the backend server group.
- Lb
Pool stringV3Id - Specifies the backend server group ID.
- Listener
Id string - Specifies the ID of the listener associated with the backend server group.
- Loadbalancer
Id string Specifies the ID of the associated load balancer.
Specify either
listener_id
orloadbalancer_id
, or both of them.- Member
Deletion boolProtection - Name string
- Specifies the backend server group name.
- Project
Id string - Specifies the project ID.
- Session
Persistence LbPool V3Session Persistence Args - Specifies whether to enable sticky sessions.
- Type string
- Vpc
Id string
- lb
Algorithm String Specifies the load balancing algorithm used by the load balancer to route requests to backend servers.
The value can be one of the following:
ROUND_ROBIN
: weighted round-robinLEAST_CONNECTIONS
: weighted least connectionsSOURCE_IP
: source IP hash
When the value is
SOURCE_IP
, the weights of backend servers are invalid.- protocol String
- Specifies the protocol used by the backend server group to receive requests.
TCP
,UDP
,HTTP
,HTTPS
, andQUIC
are supported.- For
UDP
listeners, the protocol of the backend server group must beUDP
. - For
TCP
listeners, the protocol of the backend server group must beTCP
. - For
HTTP
listeners, the protocol of the backend server group must beHTTP
. - For
HTTPS
listeners, the protocol of the backend server group must beHTTPS
.
- For
- description String
- Provides supplementary information about the backend server group.
- lb
Pool StringV3Id - Specifies the backend server group ID.
- listener
Id String - Specifies the ID of the listener associated with the backend server group.
- loadbalancer
Id String Specifies the ID of the associated load balancer.
Specify either
listener_id
orloadbalancer_id
, or both of them.- member
Deletion BooleanProtection - name String
- Specifies the backend server group name.
- project
Id String - Specifies the project ID.
- session
Persistence LbPool V3Session Persistence - Specifies whether to enable sticky sessions.
- type String
- vpc
Id String
- lb
Algorithm string Specifies the load balancing algorithm used by the load balancer to route requests to backend servers.
The value can be one of the following:
ROUND_ROBIN
: weighted round-robinLEAST_CONNECTIONS
: weighted least connectionsSOURCE_IP
: source IP hash
When the value is
SOURCE_IP
, the weights of backend servers are invalid.- protocol string
- Specifies the protocol used by the backend server group to receive requests.
TCP
,UDP
,HTTP
,HTTPS
, andQUIC
are supported.- For
UDP
listeners, the protocol of the backend server group must beUDP
. - For
TCP
listeners, the protocol of the backend server group must beTCP
. - For
HTTP
listeners, the protocol of the backend server group must beHTTP
. - For
HTTPS
listeners, the protocol of the backend server group must beHTTPS
.
- For
- description string
- Provides supplementary information about the backend server group.
- lb
Pool stringV3Id - Specifies the backend server group ID.
- listener
Id string - Specifies the ID of the listener associated with the backend server group.
- loadbalancer
Id string Specifies the ID of the associated load balancer.
Specify either
listener_id
orloadbalancer_id
, or both of them.- member
Deletion booleanProtection - name string
- Specifies the backend server group name.
- project
Id string - Specifies the project ID.
- session
Persistence LbPool V3Session Persistence - Specifies whether to enable sticky sessions.
- type string
- vpc
Id string
- lb_
algorithm str Specifies the load balancing algorithm used by the load balancer to route requests to backend servers.
The value can be one of the following:
ROUND_ROBIN
: weighted round-robinLEAST_CONNECTIONS
: weighted least connectionsSOURCE_IP
: source IP hash
When the value is
SOURCE_IP
, the weights of backend servers are invalid.- protocol str
- Specifies the protocol used by the backend server group to receive requests.
TCP
,UDP
,HTTP
,HTTPS
, andQUIC
are supported.- For
UDP
listeners, the protocol of the backend server group must beUDP
. - For
TCP
listeners, the protocol of the backend server group must beTCP
. - For
HTTP
listeners, the protocol of the backend server group must beHTTP
. - For
HTTPS
listeners, the protocol of the backend server group must beHTTPS
.
- For
- description str
- Provides supplementary information about the backend server group.
- lb_
pool_ strv3_ id - Specifies the backend server group ID.
- listener_
id str - Specifies the ID of the listener associated with the backend server group.
- loadbalancer_
id str Specifies the ID of the associated load balancer.
Specify either
listener_id
orloadbalancer_id
, or both of them.- member_
deletion_ boolprotection - name str
- Specifies the backend server group name.
- project_
id str - Specifies the project ID.
- session_
persistence LbPool V3Session Persistence Args - Specifies whether to enable sticky sessions.
- type str
- vpc_
id str
- lb
Algorithm String Specifies the load balancing algorithm used by the load balancer to route requests to backend servers.
The value can be one of the following:
ROUND_ROBIN
: weighted round-robinLEAST_CONNECTIONS
: weighted least connectionsSOURCE_IP
: source IP hash
When the value is
SOURCE_IP
, the weights of backend servers are invalid.- protocol String
- Specifies the protocol used by the backend server group to receive requests.
TCP
,UDP
,HTTP
,HTTPS
, andQUIC
are supported.- For
UDP
listeners, the protocol of the backend server group must beUDP
. - For
TCP
listeners, the protocol of the backend server group must beTCP
. - For
HTTP
listeners, the protocol of the backend server group must beHTTP
. - For
HTTPS
listeners, the protocol of the backend server group must beHTTPS
.
- For
- description String
- Provides supplementary information about the backend server group.
- lb
Pool StringV3Id - Specifies the backend server group ID.
- listener
Id String - Specifies the ID of the listener associated with the backend server group.
- loadbalancer
Id String Specifies the ID of the associated load balancer.
Specify either
listener_id
orloadbalancer_id
, or both of them.- member
Deletion BooleanProtection - name String
- Specifies the backend server group name.
- project
Id String - Specifies the project ID.
- session
Persistence Property Map - Specifies whether to enable sticky sessions.
- type String
- vpc
Id String
Outputs
All input properties are implicitly available as output properties. Additionally, the LbPoolV3 resource produces the following output properties:
- id str
- The provider-assigned unique ID for this managed resource.
- ip_
version str - Specifies the IP version supported by the backend server group.
Look up Existing LbPoolV3 Resource
Get an existing LbPoolV3 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?: LbPoolV3State, opts?: CustomResourceOptions): LbPoolV3
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
ip_version: Optional[str] = None,
lb_algorithm: Optional[str] = None,
lb_pool_v3_id: Optional[str] = None,
listener_id: Optional[str] = None,
loadbalancer_id: Optional[str] = None,
member_deletion_protection: Optional[bool] = None,
name: Optional[str] = None,
project_id: Optional[str] = None,
protocol: Optional[str] = None,
session_persistence: Optional[LbPoolV3SessionPersistenceArgs] = None,
type: Optional[str] = None,
vpc_id: Optional[str] = None) -> LbPoolV3
func GetLbPoolV3(ctx *Context, name string, id IDInput, state *LbPoolV3State, opts ...ResourceOption) (*LbPoolV3, error)
public static LbPoolV3 Get(string name, Input<string> id, LbPoolV3State? state, CustomResourceOptions? opts = null)
public static LbPoolV3 get(String name, Output<String> id, LbPoolV3State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:LbPoolV3 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.
- Description string
- Provides supplementary information about the backend server group.
- Ip
Version string - Specifies the IP version supported by the backend server group.
- Lb
Algorithm string Specifies the load balancing algorithm used by the load balancer to route requests to backend servers.
The value can be one of the following:
ROUND_ROBIN
: weighted round-robinLEAST_CONNECTIONS
: weighted least connectionsSOURCE_IP
: source IP hash
When the value is
SOURCE_IP
, the weights of backend servers are invalid.- Lb
Pool stringV3Id - Specifies the backend server group ID.
- Listener
Id string - Specifies the ID of the listener associated with the backend server group.
- Loadbalancer
Id string Specifies the ID of the associated load balancer.
Specify either
listener_id
orloadbalancer_id
, or both of them.- Member
Deletion boolProtection - Name string
- Specifies the backend server group name.
- Project
Id string - Specifies the project ID.
- Protocol string
- Specifies the protocol used by the backend server group to receive requests.
TCP
,UDP
,HTTP
,HTTPS
, andQUIC
are supported.- For
UDP
listeners, the protocol of the backend server group must beUDP
. - For
TCP
listeners, the protocol of the backend server group must beTCP
. - For
HTTP
listeners, the protocol of the backend server group must beHTTP
. - For
HTTPS
listeners, the protocol of the backend server group must beHTTPS
.
- For
- Session
Persistence LbPool V3Session Persistence - Specifies whether to enable sticky sessions.
- Type string
- Vpc
Id string
- Description string
- Provides supplementary information about the backend server group.
- Ip
Version string - Specifies the IP version supported by the backend server group.
- Lb
Algorithm string Specifies the load balancing algorithm used by the load balancer to route requests to backend servers.
The value can be one of the following:
ROUND_ROBIN
: weighted round-robinLEAST_CONNECTIONS
: weighted least connectionsSOURCE_IP
: source IP hash
When the value is
SOURCE_IP
, the weights of backend servers are invalid.- Lb
Pool stringV3Id - Specifies the backend server group ID.
- Listener
Id string - Specifies the ID of the listener associated with the backend server group.
- Loadbalancer
Id string Specifies the ID of the associated load balancer.
Specify either
listener_id
orloadbalancer_id
, or both of them.- Member
Deletion boolProtection - Name string
- Specifies the backend server group name.
- Project
Id string - Specifies the project ID.
- Protocol string
- Specifies the protocol used by the backend server group to receive requests.
TCP
,UDP
,HTTP
,HTTPS
, andQUIC
are supported.- For
UDP
listeners, the protocol of the backend server group must beUDP
. - For
TCP
listeners, the protocol of the backend server group must beTCP
. - For
HTTP
listeners, the protocol of the backend server group must beHTTP
. - For
HTTPS
listeners, the protocol of the backend server group must beHTTPS
.
- For
- Session
Persistence LbPool V3Session Persistence Args - Specifies whether to enable sticky sessions.
- Type string
- Vpc
Id string
- description String
- Provides supplementary information about the backend server group.
- ip
Version String - Specifies the IP version supported by the backend server group.
- lb
Algorithm String Specifies the load balancing algorithm used by the load balancer to route requests to backend servers.
The value can be one of the following:
ROUND_ROBIN
: weighted round-robinLEAST_CONNECTIONS
: weighted least connectionsSOURCE_IP
: source IP hash
When the value is
SOURCE_IP
, the weights of backend servers are invalid.- lb
Pool StringV3Id - Specifies the backend server group ID.
- listener
Id String - Specifies the ID of the listener associated with the backend server group.
- loadbalancer
Id String Specifies the ID of the associated load balancer.
Specify either
listener_id
orloadbalancer_id
, or both of them.- member
Deletion BooleanProtection - name String
- Specifies the backend server group name.
- project
Id String - Specifies the project ID.
- protocol String
- Specifies the protocol used by the backend server group to receive requests.
TCP
,UDP
,HTTP
,HTTPS
, andQUIC
are supported.- For
UDP
listeners, the protocol of the backend server group must beUDP
. - For
TCP
listeners, the protocol of the backend server group must beTCP
. - For
HTTP
listeners, the protocol of the backend server group must beHTTP
. - For
HTTPS
listeners, the protocol of the backend server group must beHTTPS
.
- For
- session
Persistence LbPool V3Session Persistence - Specifies whether to enable sticky sessions.
- type String
- vpc
Id String
- description string
- Provides supplementary information about the backend server group.
- ip
Version string - Specifies the IP version supported by the backend server group.
- lb
Algorithm string Specifies the load balancing algorithm used by the load balancer to route requests to backend servers.
The value can be one of the following:
ROUND_ROBIN
: weighted round-robinLEAST_CONNECTIONS
: weighted least connectionsSOURCE_IP
: source IP hash
When the value is
SOURCE_IP
, the weights of backend servers are invalid.- lb
Pool stringV3Id - Specifies the backend server group ID.
- listener
Id string - Specifies the ID of the listener associated with the backend server group.
- loadbalancer
Id string Specifies the ID of the associated load balancer.
Specify either
listener_id
orloadbalancer_id
, or both of them.- member
Deletion booleanProtection - name string
- Specifies the backend server group name.
- project
Id string - Specifies the project ID.
- protocol string
- Specifies the protocol used by the backend server group to receive requests.
TCP
,UDP
,HTTP
,HTTPS
, andQUIC
are supported.- For
UDP
listeners, the protocol of the backend server group must beUDP
. - For
TCP
listeners, the protocol of the backend server group must beTCP
. - For
HTTP
listeners, the protocol of the backend server group must beHTTP
. - For
HTTPS
listeners, the protocol of the backend server group must beHTTPS
.
- For
- session
Persistence LbPool V3Session Persistence - Specifies whether to enable sticky sessions.
- type string
- vpc
Id string
- description str
- Provides supplementary information about the backend server group.
- ip_
version str - Specifies the IP version supported by the backend server group.
- lb_
algorithm str Specifies the load balancing algorithm used by the load balancer to route requests to backend servers.
The value can be one of the following:
ROUND_ROBIN
: weighted round-robinLEAST_CONNECTIONS
: weighted least connectionsSOURCE_IP
: source IP hash
When the value is
SOURCE_IP
, the weights of backend servers are invalid.- lb_
pool_ strv3_ id - Specifies the backend server group ID.
- listener_
id str - Specifies the ID of the listener associated with the backend server group.
- loadbalancer_
id str Specifies the ID of the associated load balancer.
Specify either
listener_id
orloadbalancer_id
, or both of them.- member_
deletion_ boolprotection - name str
- Specifies the backend server group name.
- project_
id str - Specifies the project ID.
- protocol str
- Specifies the protocol used by the backend server group to receive requests.
TCP
,UDP
,HTTP
,HTTPS
, andQUIC
are supported.- For
UDP
listeners, the protocol of the backend server group must beUDP
. - For
TCP
listeners, the protocol of the backend server group must beTCP
. - For
HTTP
listeners, the protocol of the backend server group must beHTTP
. - For
HTTPS
listeners, the protocol of the backend server group must beHTTPS
.
- For
- session_
persistence LbPool V3Session Persistence Args - Specifies whether to enable sticky sessions.
- type str
- vpc_
id str
- description String
- Provides supplementary information about the backend server group.
- ip
Version String - Specifies the IP version supported by the backend server group.
- lb
Algorithm String Specifies the load balancing algorithm used by the load balancer to route requests to backend servers.
The value can be one of the following:
ROUND_ROBIN
: weighted round-robinLEAST_CONNECTIONS
: weighted least connectionsSOURCE_IP
: source IP hash
When the value is
SOURCE_IP
, the weights of backend servers are invalid.- lb
Pool StringV3Id - Specifies the backend server group ID.
- listener
Id String - Specifies the ID of the listener associated with the backend server group.
- loadbalancer
Id String Specifies the ID of the associated load balancer.
Specify either
listener_id
orloadbalancer_id
, or both of them.- member
Deletion BooleanProtection - name String
- Specifies the backend server group name.
- project
Id String - Specifies the project ID.
- protocol String
- Specifies the protocol used by the backend server group to receive requests.
TCP
,UDP
,HTTP
,HTTPS
, andQUIC
are supported.- For
UDP
listeners, the protocol of the backend server group must beUDP
. - For
TCP
listeners, the protocol of the backend server group must beTCP
. - For
HTTP
listeners, the protocol of the backend server group must beHTTP
. - For
HTTPS
listeners, the protocol of the backend server group must beHTTPS
.
- For
- session
Persistence Property Map - Specifies whether to enable sticky sessions.
- type String
- vpc
Id String
Supporting Types
LbPoolV3SessionPersistence, LbPoolV3SessionPersistenceArgs
- Type string
- Specifies the type of the backend server group.
- string
- Specifies the cookie name. This parameter will take effect only when type is set to
APP_COOKIE
. The value can contain only letters, digits, hyphens (-), underscores (_), and periods (.). - Persistence
Timeout double - Specifies the stickiness duration, in minutes.
This parameter will not take effect when type is set to
APP_COOKIE
.- If the protocol of the backend server group is TCP or UDP,
the value ranges from
1
to60
, and the default value is1
. - If the protocol of the backend server group is HTTP or HTTPS, the value ranges from
1
to1440
, and the default value is1440
.
- If the protocol of the backend server group is TCP or UDP,
the value ranges from
- Type string
- Specifies the type of the backend server group.
- string
- Specifies the cookie name. This parameter will take effect only when type is set to
APP_COOKIE
. The value can contain only letters, digits, hyphens (-), underscores (_), and periods (.). - Persistence
Timeout float64 - Specifies the stickiness duration, in minutes.
This parameter will not take effect when type is set to
APP_COOKIE
.- If the protocol of the backend server group is TCP or UDP,
the value ranges from
1
to60
, and the default value is1
. - If the protocol of the backend server group is HTTP or HTTPS, the value ranges from
1
to1440
, and the default value is1440
.
- If the protocol of the backend server group is TCP or UDP,
the value ranges from
- type String
- Specifies the type of the backend server group.
- String
- Specifies the cookie name. This parameter will take effect only when type is set to
APP_COOKIE
. The value can contain only letters, digits, hyphens (-), underscores (_), and periods (.). - persistence
Timeout Double - Specifies the stickiness duration, in minutes.
This parameter will not take effect when type is set to
APP_COOKIE
.- If the protocol of the backend server group is TCP or UDP,
the value ranges from
1
to60
, and the default value is1
. - If the protocol of the backend server group is HTTP or HTTPS, the value ranges from
1
to1440
, and the default value is1440
.
- If the protocol of the backend server group is TCP or UDP,
the value ranges from
- type string
- Specifies the type of the backend server group.
- string
- Specifies the cookie name. This parameter will take effect only when type is set to
APP_COOKIE
. The value can contain only letters, digits, hyphens (-), underscores (_), and periods (.). - persistence
Timeout number - Specifies the stickiness duration, in minutes.
This parameter will not take effect when type is set to
APP_COOKIE
.- If the protocol of the backend server group is TCP or UDP,
the value ranges from
1
to60
, and the default value is1
. - If the protocol of the backend server group is HTTP or HTTPS, the value ranges from
1
to1440
, and the default value is1440
.
- If the protocol of the backend server group is TCP or UDP,
the value ranges from
- type str
- Specifies the type of the backend server group.
- str
- Specifies the cookie name. This parameter will take effect only when type is set to
APP_COOKIE
. The value can contain only letters, digits, hyphens (-), underscores (_), and periods (.). - persistence_
timeout float - Specifies the stickiness duration, in minutes.
This parameter will not take effect when type is set to
APP_COOKIE
.- If the protocol of the backend server group is TCP or UDP,
the value ranges from
1
to60
, and the default value is1
. - If the protocol of the backend server group is HTTP or HTTPS, the value ranges from
1
to1440
, and the default value is1440
.
- If the protocol of the backend server group is TCP or UDP,
the value ranges from
- type String
- Specifies the type of the backend server group.
- String
- Specifies the cookie name. This parameter will take effect only when type is set to
APP_COOKIE
. The value can contain only letters, digits, hyphens (-), underscores (_), and periods (.). - persistence
Timeout Number - Specifies the stickiness duration, in minutes.
This parameter will not take effect when type is set to
APP_COOKIE
.- If the protocol of the backend server group is TCP or UDP,
the value ranges from
1
to60
, and the default value is1
. - If the protocol of the backend server group is HTTP or HTTPS, the value ranges from
1
to1440
, and the default value is1440
.
- If the protocol of the backend server group is TCP or UDP,
the value ranges from
Import
Pools can be imported using the id
, e.g.
$ pulumi import opentelekomcloud:index/lbPoolV3:LbPoolV3 pool 7b80e108-1636-44e5-aece-986b0052b7dd
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.