edgecenter.Lbpool
Explore with Pulumi AI
Represent load balancer listener pool. A pool is a list of virtual machines to which the listener will redirect incoming traffic
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as edgecenter from "@pulumi/edgecenter";
const lb = new edgecenter.Loadbalancerv2("lb", {
projectId: 1,
regionId: 1,
flavor: "lb1-1-2",
metadataMap: {
tag1: "tag1_value",
},
});
const listener = new edgecenter.Lblistener("listener", {
projectId: 1,
regionId: 1,
protocol: "TCP",
protocolPort: 36621,
allowedCidrs: [
"127.0.0.0/24",
"192.168.0.0/24",
],
loadbalancerId: lb.loadbalancerv2Id,
});
const pl = new edgecenter.Lbpool("pl", {
projectId: 1,
regionId: 1,
protocol: "HTTP",
lbAlgorithm: "LEAST_CONNECTIONS",
loadbalancerId: lb.loadbalancerv2Id,
listenerId: listener.lblistenerId,
healthMonitor: {
type: "PING",
delay: 60,
maxRetries: 5,
timeout: 10,
},
sessionPersistence: {
type: "APP_COOKIE",
cookieName: "test_new_cookie",
},
});
import pulumi
import pulumi_edgecenter as edgecenter
lb = edgecenter.Loadbalancerv2("lb",
project_id=1,
region_id=1,
flavor="lb1-1-2",
metadata_map={
"tag1": "tag1_value",
})
listener = edgecenter.Lblistener("listener",
project_id=1,
region_id=1,
protocol="TCP",
protocol_port=36621,
allowed_cidrs=[
"127.0.0.0/24",
"192.168.0.0/24",
],
loadbalancer_id=lb.loadbalancerv2_id)
pl = edgecenter.Lbpool("pl",
project_id=1,
region_id=1,
protocol="HTTP",
lb_algorithm="LEAST_CONNECTIONS",
loadbalancer_id=lb.loadbalancerv2_id,
listener_id=listener.lblistener_id,
health_monitor={
"type": "PING",
"delay": 60,
"max_retries": 5,
"timeout": 10,
},
session_persistence={
"type": "APP_COOKIE",
"cookie_name": "test_new_cookie",
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/edgecenter/edgecenter"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
lb, err := edgecenter.NewLoadbalancerv2(ctx, "lb", &edgecenter.Loadbalancerv2Args{
ProjectId: pulumi.Float64(1),
RegionId: pulumi.Float64(1),
Flavor: pulumi.String("lb1-1-2"),
MetadataMap: pulumi.StringMap{
"tag1": pulumi.String("tag1_value"),
},
})
if err != nil {
return err
}
listener, err := edgecenter.NewLblistener(ctx, "listener", &edgecenter.LblistenerArgs{
ProjectId: pulumi.Float64(1),
RegionId: pulumi.Float64(1),
Protocol: pulumi.String("TCP"),
ProtocolPort: pulumi.Float64(36621),
AllowedCidrs: pulumi.StringArray{
pulumi.String("127.0.0.0/24"),
pulumi.String("192.168.0.0/24"),
},
LoadbalancerId: lb.Loadbalancerv2Id,
})
if err != nil {
return err
}
_, err = edgecenter.NewLbpool(ctx, "pl", &edgecenter.LbpoolArgs{
ProjectId: pulumi.Float64(1),
RegionId: pulumi.Float64(1),
Protocol: pulumi.String("HTTP"),
LbAlgorithm: pulumi.String("LEAST_CONNECTIONS"),
LoadbalancerId: lb.Loadbalancerv2Id,
ListenerId: listener.LblistenerId,
HealthMonitor: &edgecenter.LbpoolHealthMonitorArgs{
Type: pulumi.String("PING"),
Delay: pulumi.Float64(60),
MaxRetries: pulumi.Float64(5),
Timeout: pulumi.Float64(10),
},
SessionPersistence: &edgecenter.LbpoolSessionPersistenceArgs{
Type: pulumi.String("APP_COOKIE"),
CookieName: pulumi.String("test_new_cookie"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Edgecenter = Pulumi.Edgecenter;
return await Deployment.RunAsync(() =>
{
var lb = new Edgecenter.Loadbalancerv2("lb", new()
{
ProjectId = 1,
RegionId = 1,
Flavor = "lb1-1-2",
MetadataMap =
{
{ "tag1", "tag1_value" },
},
});
var listener = new Edgecenter.Lblistener("listener", new()
{
ProjectId = 1,
RegionId = 1,
Protocol = "TCP",
ProtocolPort = 36621,
AllowedCidrs = new[]
{
"127.0.0.0/24",
"192.168.0.0/24",
},
LoadbalancerId = lb.Loadbalancerv2Id,
});
var pl = new Edgecenter.Lbpool("pl", new()
{
ProjectId = 1,
RegionId = 1,
Protocol = "HTTP",
LbAlgorithm = "LEAST_CONNECTIONS",
LoadbalancerId = lb.Loadbalancerv2Id,
ListenerId = listener.LblistenerId,
HealthMonitor = new Edgecenter.Inputs.LbpoolHealthMonitorArgs
{
Type = "PING",
Delay = 60,
MaxRetries = 5,
Timeout = 10,
},
SessionPersistence = new Edgecenter.Inputs.LbpoolSessionPersistenceArgs
{
Type = "APP_COOKIE",
CookieName = "test_new_cookie",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.edgecenter.Loadbalancerv2;
import com.pulumi.edgecenter.Loadbalancerv2Args;
import com.pulumi.edgecenter.Lblistener;
import com.pulumi.edgecenter.LblistenerArgs;
import com.pulumi.edgecenter.Lbpool;
import com.pulumi.edgecenter.LbpoolArgs;
import com.pulumi.edgecenter.inputs.LbpoolHealthMonitorArgs;
import com.pulumi.edgecenter.inputs.LbpoolSessionPersistenceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var lb = new Loadbalancerv2("lb", Loadbalancerv2Args.builder()
.projectId(1)
.regionId(1)
.flavor("lb1-1-2")
.metadataMap(Map.of("tag1", "tag1_value"))
.build());
var listener = new Lblistener("listener", LblistenerArgs.builder()
.projectId(1)
.regionId(1)
.protocol("TCP")
.protocolPort(36621)
.allowedCidrs(
"127.0.0.0/24",
"192.168.0.0/24")
.loadbalancerId(lb.loadbalancerv2Id())
.build());
var pl = new Lbpool("pl", LbpoolArgs.builder()
.projectId(1)
.regionId(1)
.protocol("HTTP")
.lbAlgorithm("LEAST_CONNECTIONS")
.loadbalancerId(lb.loadbalancerv2Id())
.listenerId(listener.lblistenerId())
.healthMonitor(LbpoolHealthMonitorArgs.builder()
.type("PING")
.delay(60)
.maxRetries(5)
.timeout(10)
.build())
.sessionPersistence(LbpoolSessionPersistenceArgs.builder()
.type("APP_COOKIE")
.cookieName("test_new_cookie")
.build())
.build());
}
}
resources:
lb:
type: edgecenter:Loadbalancerv2
properties:
projectId: 1
regionId: 1
flavor: lb1-1-2
metadataMap:
tag1: tag1_value
listener:
type: edgecenter:Lblistener
properties:
projectId: 1
regionId: 1
protocol: TCP
protocolPort: 36621
allowedCidrs:
- 127.0.0.0/24
- 192.168.0.0/24
loadbalancerId: ${lb.loadbalancerv2Id}
pl:
type: edgecenter:Lbpool
properties:
projectId: 1
regionId: 1
protocol: HTTP
lbAlgorithm: LEAST_CONNECTIONS
loadbalancerId: ${lb.loadbalancerv2Id}
listenerId: ${listener.lblistenerId}
healthMonitor:
type: PING
delay: 60
maxRetries: 5
timeout: 10
sessionPersistence:
type: APP_COOKIE
cookieName: test_new_cookie
Create Lbpool Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Lbpool(name: string, args: LbpoolArgs, opts?: CustomResourceOptions);
@overload
def Lbpool(resource_name: str,
args: LbpoolArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Lbpool(resource_name: str,
opts: Optional[ResourceOptions] = None,
lb_algorithm: Optional[str] = None,
protocol: Optional[str] = None,
lbpool_id: Optional[str] = None,
health_monitor: Optional[LbpoolHealthMonitorArgs] = None,
listener_id: Optional[str] = None,
loadbalancer_id: Optional[str] = None,
name: Optional[str] = None,
project_id: Optional[float] = None,
project_name: Optional[str] = None,
last_updated: Optional[str] = None,
region_id: Optional[float] = None,
region_name: Optional[str] = None,
session_persistence: Optional[LbpoolSessionPersistenceArgs] = None,
timeouts: Optional[LbpoolTimeoutsArgs] = None)
func NewLbpool(ctx *Context, name string, args LbpoolArgs, opts ...ResourceOption) (*Lbpool, error)
public Lbpool(string name, LbpoolArgs args, CustomResourceOptions? opts = null)
public Lbpool(String name, LbpoolArgs args)
public Lbpool(String name, LbpoolArgs args, CustomResourceOptions options)
type: edgecenter:Lbpool
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 LbpoolArgs
- 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 LbpoolArgs
- 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 LbpoolArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LbpoolArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LbpoolArgs
- 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 lbpoolResource = new Edgecenter.Lbpool("lbpoolResource", new()
{
LbAlgorithm = "string",
Protocol = "string",
LbpoolId = "string",
HealthMonitor = new Edgecenter.Inputs.LbpoolHealthMonitorArgs
{
Delay = 0,
MaxRetries = 0,
Timeout = 0,
Type = "string",
ExpectedCodes = "string",
HttpMethod = "string",
Id = "string",
MaxRetriesDown = 0,
UrlPath = "string",
},
ListenerId = "string",
LoadbalancerId = "string",
Name = "string",
ProjectId = 0,
ProjectName = "string",
LastUpdated = "string",
RegionId = 0,
RegionName = "string",
SessionPersistence = new Edgecenter.Inputs.LbpoolSessionPersistenceArgs
{
CookieName = "string",
PersistenceGranularity = "string",
PersistenceTimeout = 0,
Type = "string",
},
Timeouts = new Edgecenter.Inputs.LbpoolTimeoutsArgs
{
Create = "string",
Delete = "string",
},
});
example, err := edgecenter.NewLbpool(ctx, "lbpoolResource", &edgecenter.LbpoolArgs{
LbAlgorithm: pulumi.String("string"),
Protocol: pulumi.String("string"),
LbpoolId: pulumi.String("string"),
HealthMonitor: &edgecenter.LbpoolHealthMonitorArgs{
Delay: pulumi.Float64(0),
MaxRetries: pulumi.Float64(0),
Timeout: pulumi.Float64(0),
Type: pulumi.String("string"),
ExpectedCodes: pulumi.String("string"),
HttpMethod: pulumi.String("string"),
Id: pulumi.String("string"),
MaxRetriesDown: pulumi.Float64(0),
UrlPath: pulumi.String("string"),
},
ListenerId: pulumi.String("string"),
LoadbalancerId: pulumi.String("string"),
Name: pulumi.String("string"),
ProjectId: pulumi.Float64(0),
ProjectName: pulumi.String("string"),
LastUpdated: pulumi.String("string"),
RegionId: pulumi.Float64(0),
RegionName: pulumi.String("string"),
SessionPersistence: &edgecenter.LbpoolSessionPersistenceArgs{
CookieName: pulumi.String("string"),
PersistenceGranularity: pulumi.String("string"),
PersistenceTimeout: pulumi.Float64(0),
Type: pulumi.String("string"),
},
Timeouts: &edgecenter.LbpoolTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
})
var lbpoolResource = new Lbpool("lbpoolResource", LbpoolArgs.builder()
.lbAlgorithm("string")
.protocol("string")
.lbpoolId("string")
.healthMonitor(LbpoolHealthMonitorArgs.builder()
.delay(0)
.maxRetries(0)
.timeout(0)
.type("string")
.expectedCodes("string")
.httpMethod("string")
.id("string")
.maxRetriesDown(0)
.urlPath("string")
.build())
.listenerId("string")
.loadbalancerId("string")
.name("string")
.projectId(0)
.projectName("string")
.lastUpdated("string")
.regionId(0)
.regionName("string")
.sessionPersistence(LbpoolSessionPersistenceArgs.builder()
.cookieName("string")
.persistenceGranularity("string")
.persistenceTimeout(0)
.type("string")
.build())
.timeouts(LbpoolTimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.build());
lbpool_resource = edgecenter.Lbpool("lbpoolResource",
lb_algorithm="string",
protocol="string",
lbpool_id="string",
health_monitor={
"delay": 0,
"max_retries": 0,
"timeout": 0,
"type": "string",
"expected_codes": "string",
"http_method": "string",
"id": "string",
"max_retries_down": 0,
"url_path": "string",
},
listener_id="string",
loadbalancer_id="string",
name="string",
project_id=0,
project_name="string",
last_updated="string",
region_id=0,
region_name="string",
session_persistence={
"cookie_name": "string",
"persistence_granularity": "string",
"persistence_timeout": 0,
"type": "string",
},
timeouts={
"create": "string",
"delete": "string",
})
const lbpoolResource = new edgecenter.Lbpool("lbpoolResource", {
lbAlgorithm: "string",
protocol: "string",
lbpoolId: "string",
healthMonitor: {
delay: 0,
maxRetries: 0,
timeout: 0,
type: "string",
expectedCodes: "string",
httpMethod: "string",
id: "string",
maxRetriesDown: 0,
urlPath: "string",
},
listenerId: "string",
loadbalancerId: "string",
name: "string",
projectId: 0,
projectName: "string",
lastUpdated: "string",
regionId: 0,
regionName: "string",
sessionPersistence: {
cookieName: "string",
persistenceGranularity: "string",
persistenceTimeout: 0,
type: "string",
},
timeouts: {
create: "string",
"delete": "string",
},
});
type: edgecenter:Lbpool
properties:
healthMonitor:
delay: 0
expectedCodes: string
httpMethod: string
id: string
maxRetries: 0
maxRetriesDown: 0
timeout: 0
type: string
urlPath: string
lastUpdated: string
lbAlgorithm: string
lbpoolId: string
listenerId: string
loadbalancerId: string
name: string
projectId: 0
projectName: string
protocol: string
regionId: 0
regionName: string
sessionPersistence:
cookieName: string
persistenceGranularity: string
persistenceTimeout: 0
type: string
timeouts:
create: string
delete: string
Lbpool 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 Lbpool resource accepts the following input properties:
- Lb
Algorithm string - The algorithm of the load balancer. Available values are
ROUND_ROBIN
,LEAST_CONNECTIONS
,SOURCE_IP
. - Protocol string
- The protocol. Available values are
HTTP
(currently work, other do not work on ed-8),HTTPS
,TCP
,UDP
,PROXY
. - Health
Monitor LbpoolHealth Monitor - Configuration for health checks to test the health and state of the backend members. It determines how the load balancer identifies whether the backend members are healthy or unhealthy.
- Last
Updated string - The timestamp of the last update (use with update context).
- Lbpool
Id string - The ID of this resource.
- Listener
Id string - The uuid for the load balancer listener.
- Loadbalancer
Id string - The uuid for the load balancer.
- Name string
- The name of the load balancer listener pool.
- Project
Id double - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- Project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- Region
Id double - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- Region
Name string - The name of the region. Either 'regionid' or 'regionname' must be specified.
- Session
Persistence LbpoolSession Persistence - Configuration that enables the load balancer to bind a user's session to a specific backend member. This ensures that all requests from the user during the session are sent to the same member.
- Timeouts
Lbpool
Timeouts
- Lb
Algorithm string - The algorithm of the load balancer. Available values are
ROUND_ROBIN
,LEAST_CONNECTIONS
,SOURCE_IP
. - Protocol string
- The protocol. Available values are
HTTP
(currently work, other do not work on ed-8),HTTPS
,TCP
,UDP
,PROXY
. - Health
Monitor LbpoolHealth Monitor Args - Configuration for health checks to test the health and state of the backend members. It determines how the load balancer identifies whether the backend members are healthy or unhealthy.
- Last
Updated string - The timestamp of the last update (use with update context).
- Lbpool
Id string - The ID of this resource.
- Listener
Id string - The uuid for the load balancer listener.
- Loadbalancer
Id string - The uuid for the load balancer.
- Name string
- The name of the load balancer listener pool.
- Project
Id float64 - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- Project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- Region
Id float64 - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- Region
Name string - The name of the region. Either 'regionid' or 'regionname' must be specified.
- Session
Persistence LbpoolSession Persistence Args - Configuration that enables the load balancer to bind a user's session to a specific backend member. This ensures that all requests from the user during the session are sent to the same member.
- Timeouts
Lbpool
Timeouts Args
- lb
Algorithm String - The algorithm of the load balancer. Available values are
ROUND_ROBIN
,LEAST_CONNECTIONS
,SOURCE_IP
. - protocol String
- The protocol. Available values are
HTTP
(currently work, other do not work on ed-8),HTTPS
,TCP
,UDP
,PROXY
. - health
Monitor LbpoolHealth Monitor - Configuration for health checks to test the health and state of the backend members. It determines how the load balancer identifies whether the backend members are healthy or unhealthy.
- last
Updated String - The timestamp of the last update (use with update context).
- lbpool
Id String - The ID of this resource.
- listener
Id String - The uuid for the load balancer listener.
- loadbalancer
Id String - The uuid for the load balancer.
- name String
- The name of the load balancer listener pool.
- project
Id Double - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name String - The name of the project. Either 'projectid' or 'projectname' must be specified.
- region
Id Double - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name String - The name of the region. Either 'regionid' or 'regionname' must be specified.
- session
Persistence LbpoolSession Persistence - Configuration that enables the load balancer to bind a user's session to a specific backend member. This ensures that all requests from the user during the session are sent to the same member.
- timeouts
Lbpool
Timeouts
- lb
Algorithm string - The algorithm of the load balancer. Available values are
ROUND_ROBIN
,LEAST_CONNECTIONS
,SOURCE_IP
. - protocol string
- The protocol. Available values are
HTTP
(currently work, other do not work on ed-8),HTTPS
,TCP
,UDP
,PROXY
. - health
Monitor LbpoolHealth Monitor - Configuration for health checks to test the health and state of the backend members. It determines how the load balancer identifies whether the backend members are healthy or unhealthy.
- last
Updated string - The timestamp of the last update (use with update context).
- lbpool
Id string - The ID of this resource.
- listener
Id string - The uuid for the load balancer listener.
- loadbalancer
Id string - The uuid for the load balancer.
- name string
- The name of the load balancer listener pool.
- project
Id number - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- region
Id number - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name string - The name of the region. Either 'regionid' or 'regionname' must be specified.
- session
Persistence LbpoolSession Persistence - Configuration that enables the load balancer to bind a user's session to a specific backend member. This ensures that all requests from the user during the session are sent to the same member.
- timeouts
Lbpool
Timeouts
- lb_
algorithm str - The algorithm of the load balancer. Available values are
ROUND_ROBIN
,LEAST_CONNECTIONS
,SOURCE_IP
. - protocol str
- The protocol. Available values are
HTTP
(currently work, other do not work on ed-8),HTTPS
,TCP
,UDP
,PROXY
. - health_
monitor LbpoolHealth Monitor Args - Configuration for health checks to test the health and state of the backend members. It determines how the load balancer identifies whether the backend members are healthy or unhealthy.
- last_
updated str - The timestamp of the last update (use with update context).
- lbpool_
id str - The ID of this resource.
- listener_
id str - The uuid for the load balancer listener.
- loadbalancer_
id str - The uuid for the load balancer.
- name str
- The name of the load balancer listener pool.
- project_
id float - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project_
name str - The name of the project. Either 'projectid' or 'projectname' must be specified.
- region_
id float - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region_
name str - The name of the region. Either 'regionid' or 'regionname' must be specified.
- session_
persistence LbpoolSession Persistence Args - Configuration that enables the load balancer to bind a user's session to a specific backend member. This ensures that all requests from the user during the session are sent to the same member.
- timeouts
Lbpool
Timeouts Args
- lb
Algorithm String - The algorithm of the load balancer. Available values are
ROUND_ROBIN
,LEAST_CONNECTIONS
,SOURCE_IP
. - protocol String
- The protocol. Available values are
HTTP
(currently work, other do not work on ed-8),HTTPS
,TCP
,UDP
,PROXY
. - health
Monitor Property Map - Configuration for health checks to test the health and state of the backend members. It determines how the load balancer identifies whether the backend members are healthy or unhealthy.
- last
Updated String - The timestamp of the last update (use with update context).
- lbpool
Id String - The ID of this resource.
- listener
Id String - The uuid for the load balancer listener.
- loadbalancer
Id String - The uuid for the load balancer.
- name String
- The name of the load balancer listener pool.
- project
Id Number - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name String - The name of the project. Either 'projectid' or 'projectname' must be specified.
- region
Id Number - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name String - The name of the region. Either 'regionid' or 'regionname' must be specified.
- session
Persistence Property Map - Configuration that enables the load balancer to bind a user's session to a specific backend member. This ensures that all requests from the user during the session are sent to the same member.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the Lbpool 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 Lbpool Resource
Get an existing Lbpool 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?: LbpoolState, opts?: CustomResourceOptions): Lbpool
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
health_monitor: Optional[LbpoolHealthMonitorArgs] = None,
last_updated: Optional[str] = None,
lb_algorithm: Optional[str] = None,
lbpool_id: Optional[str] = None,
listener_id: Optional[str] = None,
loadbalancer_id: Optional[str] = None,
name: Optional[str] = None,
project_id: Optional[float] = None,
project_name: Optional[str] = None,
protocol: Optional[str] = None,
region_id: Optional[float] = None,
region_name: Optional[str] = None,
session_persistence: Optional[LbpoolSessionPersistenceArgs] = None,
timeouts: Optional[LbpoolTimeoutsArgs] = None) -> Lbpool
func GetLbpool(ctx *Context, name string, id IDInput, state *LbpoolState, opts ...ResourceOption) (*Lbpool, error)
public static Lbpool Get(string name, Input<string> id, LbpoolState? state, CustomResourceOptions? opts = null)
public static Lbpool get(String name, Output<String> id, LbpoolState state, CustomResourceOptions options)
resources: _: type: edgecenter:Lbpool 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.
- Health
Monitor LbpoolHealth Monitor - Configuration for health checks to test the health and state of the backend members. It determines how the load balancer identifies whether the backend members are healthy or unhealthy.
- Last
Updated string - The timestamp of the last update (use with update context).
- Lb
Algorithm string - The algorithm of the load balancer. Available values are
ROUND_ROBIN
,LEAST_CONNECTIONS
,SOURCE_IP
. - Lbpool
Id string - The ID of this resource.
- Listener
Id string - The uuid for the load balancer listener.
- Loadbalancer
Id string - The uuid for the load balancer.
- Name string
- The name of the load balancer listener pool.
- Project
Id double - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- Project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- Protocol string
- The protocol. Available values are
HTTP
(currently work, other do not work on ed-8),HTTPS
,TCP
,UDP
,PROXY
. - Region
Id double - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- Region
Name string - The name of the region. Either 'regionid' or 'regionname' must be specified.
- Session
Persistence LbpoolSession Persistence - Configuration that enables the load balancer to bind a user's session to a specific backend member. This ensures that all requests from the user during the session are sent to the same member.
- Timeouts
Lbpool
Timeouts
- Health
Monitor LbpoolHealth Monitor Args - Configuration for health checks to test the health and state of the backend members. It determines how the load balancer identifies whether the backend members are healthy or unhealthy.
- Last
Updated string - The timestamp of the last update (use with update context).
- Lb
Algorithm string - The algorithm of the load balancer. Available values are
ROUND_ROBIN
,LEAST_CONNECTIONS
,SOURCE_IP
. - Lbpool
Id string - The ID of this resource.
- Listener
Id string - The uuid for the load balancer listener.
- Loadbalancer
Id string - The uuid for the load balancer.
- Name string
- The name of the load balancer listener pool.
- Project
Id float64 - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- Project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- Protocol string
- The protocol. Available values are
HTTP
(currently work, other do not work on ed-8),HTTPS
,TCP
,UDP
,PROXY
. - Region
Id float64 - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- Region
Name string - The name of the region. Either 'regionid' or 'regionname' must be specified.
- Session
Persistence LbpoolSession Persistence Args - Configuration that enables the load balancer to bind a user's session to a specific backend member. This ensures that all requests from the user during the session are sent to the same member.
- Timeouts
Lbpool
Timeouts Args
- health
Monitor LbpoolHealth Monitor - Configuration for health checks to test the health and state of the backend members. It determines how the load balancer identifies whether the backend members are healthy or unhealthy.
- last
Updated String - The timestamp of the last update (use with update context).
- lb
Algorithm String - The algorithm of the load balancer. Available values are
ROUND_ROBIN
,LEAST_CONNECTIONS
,SOURCE_IP
. - lbpool
Id String - The ID of this resource.
- listener
Id String - The uuid for the load balancer listener.
- loadbalancer
Id String - The uuid for the load balancer.
- name String
- The name of the load balancer listener pool.
- project
Id Double - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name String - The name of the project. Either 'projectid' or 'projectname' must be specified.
- protocol String
- The protocol. Available values are
HTTP
(currently work, other do not work on ed-8),HTTPS
,TCP
,UDP
,PROXY
. - region
Id Double - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name String - The name of the region. Either 'regionid' or 'regionname' must be specified.
- session
Persistence LbpoolSession Persistence - Configuration that enables the load balancer to bind a user's session to a specific backend member. This ensures that all requests from the user during the session are sent to the same member.
- timeouts
Lbpool
Timeouts
- health
Monitor LbpoolHealth Monitor - Configuration for health checks to test the health and state of the backend members. It determines how the load balancer identifies whether the backend members are healthy or unhealthy.
- last
Updated string - The timestamp of the last update (use with update context).
- lb
Algorithm string - The algorithm of the load balancer. Available values are
ROUND_ROBIN
,LEAST_CONNECTIONS
,SOURCE_IP
. - lbpool
Id string - The ID of this resource.
- listener
Id string - The uuid for the load balancer listener.
- loadbalancer
Id string - The uuid for the load balancer.
- name string
- The name of the load balancer listener pool.
- project
Id number - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- protocol string
- The protocol. Available values are
HTTP
(currently work, other do not work on ed-8),HTTPS
,TCP
,UDP
,PROXY
. - region
Id number - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name string - The name of the region. Either 'regionid' or 'regionname' must be specified.
- session
Persistence LbpoolSession Persistence - Configuration that enables the load balancer to bind a user's session to a specific backend member. This ensures that all requests from the user during the session are sent to the same member.
- timeouts
Lbpool
Timeouts
- health_
monitor LbpoolHealth Monitor Args - Configuration for health checks to test the health and state of the backend members. It determines how the load balancer identifies whether the backend members are healthy or unhealthy.
- last_
updated str - The timestamp of the last update (use with update context).
- lb_
algorithm str - The algorithm of the load balancer. Available values are
ROUND_ROBIN
,LEAST_CONNECTIONS
,SOURCE_IP
. - lbpool_
id str - The ID of this resource.
- listener_
id str - The uuid for the load balancer listener.
- loadbalancer_
id str - The uuid for the load balancer.
- name str
- The name of the load balancer listener pool.
- project_
id float - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project_
name str - The name of the project. Either 'projectid' or 'projectname' must be specified.
- protocol str
- The protocol. Available values are
HTTP
(currently work, other do not work on ed-8),HTTPS
,TCP
,UDP
,PROXY
. - region_
id float - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region_
name str - The name of the region. Either 'regionid' or 'regionname' must be specified.
- session_
persistence LbpoolSession Persistence Args - Configuration that enables the load balancer to bind a user's session to a specific backend member. This ensures that all requests from the user during the session are sent to the same member.
- timeouts
Lbpool
Timeouts Args
- health
Monitor Property Map - Configuration for health checks to test the health and state of the backend members. It determines how the load balancer identifies whether the backend members are healthy or unhealthy.
- last
Updated String - The timestamp of the last update (use with update context).
- lb
Algorithm String - The algorithm of the load balancer. Available values are
ROUND_ROBIN
,LEAST_CONNECTIONS
,SOURCE_IP
. - lbpool
Id String - The ID of this resource.
- listener
Id String - The uuid for the load balancer listener.
- loadbalancer
Id String - The uuid for the load balancer.
- name String
- The name of the load balancer listener pool.
- project
Id Number - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name String - The name of the project. Either 'projectid' or 'projectname' must be specified.
- protocol String
- The protocol. Available values are
HTTP
(currently work, other do not work on ed-8),HTTPS
,TCP
,UDP
,PROXY
. - region
Id Number - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name String - The name of the region. Either 'regionid' or 'regionname' must be specified.
- session
Persistence Property Map - Configuration that enables the load balancer to bind a user's session to a specific backend member. This ensures that all requests from the user during the session are sent to the same member.
- timeouts Property Map
Supporting Types
LbpoolHealthMonitor, LbpoolHealthMonitorArgs
- Delay double
- The time between sending probes to members (in seconds).
- Max
Retries double - The number of successes before the member is switched to the ONLINE state.
- Timeout double
- The maximum time to connect. Must be less than the delay value.
- Type string
- The type of the health monitor. Available values are
HTTP
,HTTPS
,PING
,TCP
,TLS-HELLO
,UDP-CONNECT
. - Expected
Codes string - The expected HTTP status codes. Multiple codes can be specified as a comma-separated string.
- Http
Method string - The HTTP method. Available values are
CONNECT
,DELETE
,GET
,HEAD
,OPTIONS
,PATCH
,POST
,PUT
,TRACE
. - Id string
- The ID of the health monitor.
- Max
Retries doubleDown - The number of failures before the member is switched to the ERROR state.
- Url
Path string - The URL path. Defaults to
/
.
- Delay float64
- The time between sending probes to members (in seconds).
- Max
Retries float64 - The number of successes before the member is switched to the ONLINE state.
- Timeout float64
- The maximum time to connect. Must be less than the delay value.
- Type string
- The type of the health monitor. Available values are
HTTP
,HTTPS
,PING
,TCP
,TLS-HELLO
,UDP-CONNECT
. - Expected
Codes string - The expected HTTP status codes. Multiple codes can be specified as a comma-separated string.
- Http
Method string - The HTTP method. Available values are
CONNECT
,DELETE
,GET
,HEAD
,OPTIONS
,PATCH
,POST
,PUT
,TRACE
. - Id string
- The ID of the health monitor.
- Max
Retries float64Down - The number of failures before the member is switched to the ERROR state.
- Url
Path string - The URL path. Defaults to
/
.
- delay Double
- The time between sending probes to members (in seconds).
- max
Retries Double - The number of successes before the member is switched to the ONLINE state.
- timeout Double
- The maximum time to connect. Must be less than the delay value.
- type String
- The type of the health monitor. Available values are
HTTP
,HTTPS
,PING
,TCP
,TLS-HELLO
,UDP-CONNECT
. - expected
Codes String - The expected HTTP status codes. Multiple codes can be specified as a comma-separated string.
- http
Method String - The HTTP method. Available values are
CONNECT
,DELETE
,GET
,HEAD
,OPTIONS
,PATCH
,POST
,PUT
,TRACE
. - id String
- The ID of the health monitor.
- max
Retries DoubleDown - The number of failures before the member is switched to the ERROR state.
- url
Path String - The URL path. Defaults to
/
.
- delay number
- The time between sending probes to members (in seconds).
- max
Retries number - The number of successes before the member is switched to the ONLINE state.
- timeout number
- The maximum time to connect. Must be less than the delay value.
- type string
- The type of the health monitor. Available values are
HTTP
,HTTPS
,PING
,TCP
,TLS-HELLO
,UDP-CONNECT
. - expected
Codes string - The expected HTTP status codes. Multiple codes can be specified as a comma-separated string.
- http
Method string - The HTTP method. Available values are
CONNECT
,DELETE
,GET
,HEAD
,OPTIONS
,PATCH
,POST
,PUT
,TRACE
. - id string
- The ID of the health monitor.
- max
Retries numberDown - The number of failures before the member is switched to the ERROR state.
- url
Path string - The URL path. Defaults to
/
.
- delay float
- The time between sending probes to members (in seconds).
- max_
retries float - The number of successes before the member is switched to the ONLINE state.
- timeout float
- The maximum time to connect. Must be less than the delay value.
- type str
- The type of the health monitor. Available values are
HTTP
,HTTPS
,PING
,TCP
,TLS-HELLO
,UDP-CONNECT
. - expected_
codes str - The expected HTTP status codes. Multiple codes can be specified as a comma-separated string.
- http_
method str - The HTTP method. Available values are
CONNECT
,DELETE
,GET
,HEAD
,OPTIONS
,PATCH
,POST
,PUT
,TRACE
. - id str
- The ID of the health monitor.
- max_
retries_ floatdown - The number of failures before the member is switched to the ERROR state.
- url_
path str - The URL path. Defaults to
/
.
- delay Number
- The time between sending probes to members (in seconds).
- max
Retries Number - The number of successes before the member is switched to the ONLINE state.
- timeout Number
- The maximum time to connect. Must be less than the delay value.
- type String
- The type of the health monitor. Available values are
HTTP
,HTTPS
,PING
,TCP
,TLS-HELLO
,UDP-CONNECT
. - expected
Codes String - The expected HTTP status codes. Multiple codes can be specified as a comma-separated string.
- http
Method String - The HTTP method. Available values are
CONNECT
,DELETE
,GET
,HEAD
,OPTIONS
,PATCH
,POST
,PUT
,TRACE
. - id String
- The ID of the health monitor.
- max
Retries NumberDown - The number of failures before the member is switched to the ERROR state.
- url
Path String - The URL path. Defaults to
/
.
LbpoolSessionPersistence, LbpoolSessionPersistenceArgs
- string
- The name of the cookie. Should be set if app cookie or http cookie is used.
- Persistence
Granularity string - The subnet mask if source_ip is used. For UDP ports only.
- Persistence
Timeout double - The timeout for the session persistence. For UDP ports only.
- Type string
- The type of the session persistence. Available values are
APP_COOKIE
- string
- The name of the cookie. Should be set if app cookie or http cookie is used.
- Persistence
Granularity string - The subnet mask if source_ip is used. For UDP ports only.
- Persistence
Timeout float64 - The timeout for the session persistence. For UDP ports only.
- Type string
- The type of the session persistence. Available values are
APP_COOKIE
- String
- The name of the cookie. Should be set if app cookie or http cookie is used.
- persistence
Granularity String - The subnet mask if source_ip is used. For UDP ports only.
- persistence
Timeout Double - The timeout for the session persistence. For UDP ports only.
- type String
- The type of the session persistence. Available values are
APP_COOKIE
- string
- The name of the cookie. Should be set if app cookie or http cookie is used.
- persistence
Granularity string - The subnet mask if source_ip is used. For UDP ports only.
- persistence
Timeout number - The timeout for the session persistence. For UDP ports only.
- type string
- The type of the session persistence. Available values are
APP_COOKIE
- str
- The name of the cookie. Should be set if app cookie or http cookie is used.
- persistence_
granularity str - The subnet mask if source_ip is used. For UDP ports only.
- persistence_
timeout float - The timeout for the session persistence. For UDP ports only.
- type str
- The type of the session persistence. Available values are
APP_COOKIE
- String
- The name of the cookie. Should be set if app cookie or http cookie is used.
- persistence
Granularity String - The subnet mask if source_ip is used. For UDP ports only.
- persistence
Timeout Number - The timeout for the session persistence. For UDP ports only.
- type String
- The type of the session persistence. Available values are
APP_COOKIE
LbpoolTimeouts, LbpoolTimeoutsArgs
Import
import using <project_id>:<region_id>:<lbpool_id> format
$ pulumi import edgecenter:index/lbpool:Lbpool lbpool1 1:6:447d2959-8ae0-4ca0-8d47-9f050a3637d7
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- edgecenter edge-center/terraform-provider-edgecenter
- License
- Notes
- This Pulumi package is based on the
edgecenter
Terraform Provider.