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

flexibleengine.LbPoolV2

Explore with Pulumi AI

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

    Manages an enhanced load balancer pool resource within FlexibleEngine.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const pool1 = new flexibleengine.LbPoolV2("pool1", {
        lbMethod: "ROUND_ROBIN",
        listenerId: "d9415786-5f1a-428b-b35f-2f1523e146d2",
        persistences: [{
            cookieName: "testCookie",
            type: "HTTP_COOKIE",
        }],
        protocol: "HTTP",
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    pool1 = flexibleengine.LbPoolV2("pool1",
        lb_method="ROUND_ROBIN",
        listener_id="d9415786-5f1a-428b-b35f-2f1523e146d2",
        persistences=[{
            "cookie_name": "testCookie",
            "type": "HTTP_COOKIE",
        }],
        protocol="HTTP")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := flexibleengine.NewLbPoolV2(ctx, "pool1", &flexibleengine.LbPoolV2Args{
    			LbMethod:   pulumi.String("ROUND_ROBIN"),
    			ListenerId: pulumi.String("d9415786-5f1a-428b-b35f-2f1523e146d2"),
    			Persistences: flexibleengine.LbPoolV2PersistenceArray{
    				&flexibleengine.LbPoolV2PersistenceArgs{
    					CookieName: pulumi.String("testCookie"),
    					Type:       pulumi.String("HTTP_COOKIE"),
    				},
    			},
    			Protocol: pulumi.String("HTTP"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var pool1 = new Flexibleengine.LbPoolV2("pool1", new()
        {
            LbMethod = "ROUND_ROBIN",
            ListenerId = "d9415786-5f1a-428b-b35f-2f1523e146d2",
            Persistences = new[]
            {
                new Flexibleengine.Inputs.LbPoolV2PersistenceArgs
                {
                    CookieName = "testCookie",
                    Type = "HTTP_COOKIE",
                },
            },
            Protocol = "HTTP",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.LbPoolV2;
    import com.pulumi.flexibleengine.LbPoolV2Args;
    import com.pulumi.flexibleengine.inputs.LbPoolV2PersistenceArgs;
    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 pool1 = new LbPoolV2("pool1", LbPoolV2Args.builder()
                .lbMethod("ROUND_ROBIN")
                .listenerId("d9415786-5f1a-428b-b35f-2f1523e146d2")
                .persistences(LbPoolV2PersistenceArgs.builder()
                    .cookieName("testCookie")
                    .type("HTTP_COOKIE")
                    .build())
                .protocol("HTTP")
                .build());
    
        }
    }
    
    resources:
      pool1:
        type: flexibleengine:LbPoolV2
        properties:
          lbMethod: ROUND_ROBIN
          listenerId: d9415786-5f1a-428b-b35f-2f1523e146d2
          persistences:
            - cookieName: testCookie
              type: HTTP_COOKIE
          protocol: HTTP
    

    Create LbPoolV2 Resource

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

    Constructor syntax

    new LbPoolV2(name: string, args: LbPoolV2Args, opts?: CustomResourceOptions);
    @overload
    def LbPoolV2(resource_name: str,
                 args: LbPoolV2Args,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def LbPoolV2(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 lb_method: Optional[str] = None,
                 protocol: Optional[str] = None,
                 admin_state_up: Optional[bool] = None,
                 description: Optional[str] = None,
                 lb_pool_v2_id: Optional[str] = None,
                 listener_id: Optional[str] = None,
                 loadbalancer_id: Optional[str] = None,
                 name: Optional[str] = None,
                 persistences: Optional[Sequence[LbPoolV2PersistenceArgs]] = None,
                 region: Optional[str] = None,
                 tenant_id: Optional[str] = None,
                 timeouts: Optional[LbPoolV2TimeoutsArgs] = None)
    func NewLbPoolV2(ctx *Context, name string, args LbPoolV2Args, opts ...ResourceOption) (*LbPoolV2, error)
    public LbPoolV2(string name, LbPoolV2Args args, CustomResourceOptions? opts = null)
    public LbPoolV2(String name, LbPoolV2Args args)
    public LbPoolV2(String name, LbPoolV2Args args, CustomResourceOptions options)
    
    type: flexibleengine:LbPoolV2
    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 LbPoolV2Args
    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 LbPoolV2Args
    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 LbPoolV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LbPoolV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LbPoolV2Args
    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 lbPoolV2Resource = new Flexibleengine.LbPoolV2("lbPoolV2Resource", new()
    {
        LbMethod = "string",
        Protocol = "string",
        AdminStateUp = false,
        Description = "string",
        LbPoolV2Id = "string",
        ListenerId = "string",
        LoadbalancerId = "string",
        Name = "string",
        Persistences = new[]
        {
            new Flexibleengine.Inputs.LbPoolV2PersistenceArgs
            {
                Type = "string",
                CookieName = "string",
                Timeout = 0,
            },
        },
        Region = "string",
        Timeouts = new Flexibleengine.Inputs.LbPoolV2TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
    });
    
    example, err := flexibleengine.NewLbPoolV2(ctx, "lbPoolV2Resource", &flexibleengine.LbPoolV2Args{
    	LbMethod:       pulumi.String("string"),
    	Protocol:       pulumi.String("string"),
    	AdminStateUp:   pulumi.Bool(false),
    	Description:    pulumi.String("string"),
    	LbPoolV2Id:     pulumi.String("string"),
    	ListenerId:     pulumi.String("string"),
    	LoadbalancerId: pulumi.String("string"),
    	Name:           pulumi.String("string"),
    	Persistences: flexibleengine.LbPoolV2PersistenceArray{
    		&flexibleengine.LbPoolV2PersistenceArgs{
    			Type:       pulumi.String("string"),
    			CookieName: pulumi.String("string"),
    			Timeout:    pulumi.Float64(0),
    		},
    	},
    	Region: pulumi.String("string"),
    	Timeouts: &flexibleengine.LbPoolV2TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var lbPoolV2Resource = new LbPoolV2("lbPoolV2Resource", LbPoolV2Args.builder()
        .lbMethod("string")
        .protocol("string")
        .adminStateUp(false)
        .description("string")
        .lbPoolV2Id("string")
        .listenerId("string")
        .loadbalancerId("string")
        .name("string")
        .persistences(LbPoolV2PersistenceArgs.builder()
            .type("string")
            .cookieName("string")
            .timeout(0)
            .build())
        .region("string")
        .timeouts(LbPoolV2TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .build());
    
    lb_pool_v2_resource = flexibleengine.LbPoolV2("lbPoolV2Resource",
        lb_method="string",
        protocol="string",
        admin_state_up=False,
        description="string",
        lb_pool_v2_id="string",
        listener_id="string",
        loadbalancer_id="string",
        name="string",
        persistences=[{
            "type": "string",
            "cookie_name": "string",
            "timeout": 0,
        }],
        region="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        })
    
    const lbPoolV2Resource = new flexibleengine.LbPoolV2("lbPoolV2Resource", {
        lbMethod: "string",
        protocol: "string",
        adminStateUp: false,
        description: "string",
        lbPoolV2Id: "string",
        listenerId: "string",
        loadbalancerId: "string",
        name: "string",
        persistences: [{
            type: "string",
            cookieName: "string",
            timeout: 0,
        }],
        region: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
    });
    
    type: flexibleengine:LbPoolV2
    properties:
        adminStateUp: false
        description: string
        lbMethod: string
        lbPoolV2Id: string
        listenerId: string
        loadbalancerId: string
        name: string
        persistences:
            - cookieName: string
              timeout: 0
              type: string
        protocol: string
        region: string
        timeouts:
            create: string
            delete: string
            update: string
    

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

    LbMethod string
    The load balancing algorithm to distribute traffic to the pool's members. Must be one of ROUND_ROBIN, LEAST_CONNECTIONS, or SOURCE_IP.
    Protocol string

    The protocol - can either be TCP, UDP or HTTP.

    • When the protocol used by the listener is UDP, the protocol of the backend pool must be UDP.
    • When the protocol used by the listener is TCP, the protocol of the backend pool must be TCP.
    • When the protocol used by the listener is HTTP or TERMINATED_HTTPS, the protocol of the backend pool must be HTTP.

    Changing this creates a new pool.

    AdminStateUp bool
    Description string
    Human-readable description for the pool.
    LbPoolV2Id string
    The unique ID for the pool.
    ListenerId string
    The Listener on which the members of the pool will be associated with. Changing this creates a new pool. Note: One of LoadbalancerID or ListenerID must be provided.
    LoadbalancerId string
    The load balancer on which to provision this pool. Changing this creates a new pool. Note: One of LoadbalancerID or ListenerID must be provided.
    Name string
    Human-readable name for the pool.
    Persistences List<LbPoolV2Persistence>

    Omit this field to prevent session persistence. Indicates whether connections in the same session will be processed by the same Pool member or not. The persistence object structure is documented below. Changing this creates a new pool.

    The persistence block supports:

    Region string
    Specifies the region in which to create the resource. If omitted, the region argument of the provider is used. Changing this creates a new pool.
    TenantId string

    Deprecated: Deprecated

    Timeouts LbPoolV2Timeouts
    LbMethod string
    The load balancing algorithm to distribute traffic to the pool's members. Must be one of ROUND_ROBIN, LEAST_CONNECTIONS, or SOURCE_IP.
    Protocol string

    The protocol - can either be TCP, UDP or HTTP.

    • When the protocol used by the listener is UDP, the protocol of the backend pool must be UDP.
    • When the protocol used by the listener is TCP, the protocol of the backend pool must be TCP.
    • When the protocol used by the listener is HTTP or TERMINATED_HTTPS, the protocol of the backend pool must be HTTP.

    Changing this creates a new pool.

    AdminStateUp bool
    Description string
    Human-readable description for the pool.
    LbPoolV2Id string
    The unique ID for the pool.
    ListenerId string
    The Listener on which the members of the pool will be associated with. Changing this creates a new pool. Note: One of LoadbalancerID or ListenerID must be provided.
    LoadbalancerId string
    The load balancer on which to provision this pool. Changing this creates a new pool. Note: One of LoadbalancerID or ListenerID must be provided.
    Name string
    Human-readable name for the pool.
    Persistences []LbPoolV2PersistenceArgs

    Omit this field to prevent session persistence. Indicates whether connections in the same session will be processed by the same Pool member or not. The persistence object structure is documented below. Changing this creates a new pool.

    The persistence block supports:

    Region string
    Specifies the region in which to create the resource. If omitted, the region argument of the provider is used. Changing this creates a new pool.
    TenantId string

    Deprecated: Deprecated

    Timeouts LbPoolV2TimeoutsArgs
    lbMethod String
    The load balancing algorithm to distribute traffic to the pool's members. Must be one of ROUND_ROBIN, LEAST_CONNECTIONS, or SOURCE_IP.
    protocol String

    The protocol - can either be TCP, UDP or HTTP.

    • When the protocol used by the listener is UDP, the protocol of the backend pool must be UDP.
    • When the protocol used by the listener is TCP, the protocol of the backend pool must be TCP.
    • When the protocol used by the listener is HTTP or TERMINATED_HTTPS, the protocol of the backend pool must be HTTP.

    Changing this creates a new pool.

    adminStateUp Boolean
    description String
    Human-readable description for the pool.
    lbPoolV2Id String
    The unique ID for the pool.
    listenerId String
    The Listener on which the members of the pool will be associated with. Changing this creates a new pool. Note: One of LoadbalancerID or ListenerID must be provided.
    loadbalancerId String
    The load balancer on which to provision this pool. Changing this creates a new pool. Note: One of LoadbalancerID or ListenerID must be provided.
    name String
    Human-readable name for the pool.
    persistences List<LbPoolV2Persistence>

    Omit this field to prevent session persistence. Indicates whether connections in the same session will be processed by the same Pool member or not. The persistence object structure is documented below. Changing this creates a new pool.

    The persistence block supports:

    region String
    Specifies the region in which to create the resource. If omitted, the region argument of the provider is used. Changing this creates a new pool.
    tenantId String

    Deprecated: Deprecated

    timeouts LbPoolV2Timeouts
    lbMethod string
    The load balancing algorithm to distribute traffic to the pool's members. Must be one of ROUND_ROBIN, LEAST_CONNECTIONS, or SOURCE_IP.
    protocol string

    The protocol - can either be TCP, UDP or HTTP.

    • When the protocol used by the listener is UDP, the protocol of the backend pool must be UDP.
    • When the protocol used by the listener is TCP, the protocol of the backend pool must be TCP.
    • When the protocol used by the listener is HTTP or TERMINATED_HTTPS, the protocol of the backend pool must be HTTP.

    Changing this creates a new pool.

    adminStateUp boolean
    description string
    Human-readable description for the pool.
    lbPoolV2Id string
    The unique ID for the pool.
    listenerId string
    The Listener on which the members of the pool will be associated with. Changing this creates a new pool. Note: One of LoadbalancerID or ListenerID must be provided.
    loadbalancerId string
    The load balancer on which to provision this pool. Changing this creates a new pool. Note: One of LoadbalancerID or ListenerID must be provided.
    name string
    Human-readable name for the pool.
    persistences LbPoolV2Persistence[]

    Omit this field to prevent session persistence. Indicates whether connections in the same session will be processed by the same Pool member or not. The persistence object structure is documented below. Changing this creates a new pool.

    The persistence block supports:

    region string
    Specifies the region in which to create the resource. If omitted, the region argument of the provider is used. Changing this creates a new pool.
    tenantId string

    Deprecated: Deprecated

    timeouts LbPoolV2Timeouts
    lb_method str
    The load balancing algorithm to distribute traffic to the pool's members. Must be one of ROUND_ROBIN, LEAST_CONNECTIONS, or SOURCE_IP.
    protocol str

    The protocol - can either be TCP, UDP or HTTP.

    • When the protocol used by the listener is UDP, the protocol of the backend pool must be UDP.
    • When the protocol used by the listener is TCP, the protocol of the backend pool must be TCP.
    • When the protocol used by the listener is HTTP or TERMINATED_HTTPS, the protocol of the backend pool must be HTTP.

    Changing this creates a new pool.

    admin_state_up bool
    description str
    Human-readable description for the pool.
    lb_pool_v2_id str
    The unique ID for the pool.
    listener_id str
    The Listener on which the members of the pool will be associated with. Changing this creates a new pool. Note: One of LoadbalancerID or ListenerID must be provided.
    loadbalancer_id str
    The load balancer on which to provision this pool. Changing this creates a new pool. Note: One of LoadbalancerID or ListenerID must be provided.
    name str
    Human-readable name for the pool.
    persistences Sequence[LbPoolV2PersistenceArgs]

    Omit this field to prevent session persistence. Indicates whether connections in the same session will be processed by the same Pool member or not. The persistence object structure is documented below. Changing this creates a new pool.

    The persistence block supports:

    region str
    Specifies the region in which to create the resource. If omitted, the region argument of the provider is used. Changing this creates a new pool.
    tenant_id str

    Deprecated: Deprecated

    timeouts LbPoolV2TimeoutsArgs
    lbMethod String
    The load balancing algorithm to distribute traffic to the pool's members. Must be one of ROUND_ROBIN, LEAST_CONNECTIONS, or SOURCE_IP.
    protocol String

    The protocol - can either be TCP, UDP or HTTP.

    • When the protocol used by the listener is UDP, the protocol of the backend pool must be UDP.
    • When the protocol used by the listener is TCP, the protocol of the backend pool must be TCP.
    • When the protocol used by the listener is HTTP or TERMINATED_HTTPS, the protocol of the backend pool must be HTTP.

    Changing this creates a new pool.

    adminStateUp Boolean
    description String
    Human-readable description for the pool.
    lbPoolV2Id String
    The unique ID for the pool.
    listenerId String
    The Listener on which the members of the pool will be associated with. Changing this creates a new pool. Note: One of LoadbalancerID or ListenerID must be provided.
    loadbalancerId String
    The load balancer on which to provision this pool. Changing this creates a new pool. Note: One of LoadbalancerID or ListenerID must be provided.
    name String
    Human-readable name for the pool.
    persistences List<Property Map>

    Omit this field to prevent session persistence. Indicates whether connections in the same session will be processed by the same Pool member or not. The persistence object structure is documented below. Changing this creates a new pool.

    The persistence block supports:

    region String
    Specifies the region in which to create the resource. If omitted, the region argument of the provider is used. Changing this creates a new pool.
    tenantId String

    Deprecated: Deprecated

    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the LbPoolV2 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 LbPoolV2 Resource

    Get an existing LbPoolV2 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?: LbPoolV2State, opts?: CustomResourceOptions): LbPoolV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            admin_state_up: Optional[bool] = None,
            description: Optional[str] = None,
            lb_method: Optional[str] = None,
            lb_pool_v2_id: Optional[str] = None,
            listener_id: Optional[str] = None,
            loadbalancer_id: Optional[str] = None,
            name: Optional[str] = None,
            persistences: Optional[Sequence[LbPoolV2PersistenceArgs]] = None,
            protocol: Optional[str] = None,
            region: Optional[str] = None,
            tenant_id: Optional[str] = None,
            timeouts: Optional[LbPoolV2TimeoutsArgs] = None) -> LbPoolV2
    func GetLbPoolV2(ctx *Context, name string, id IDInput, state *LbPoolV2State, opts ...ResourceOption) (*LbPoolV2, error)
    public static LbPoolV2 Get(string name, Input<string> id, LbPoolV2State? state, CustomResourceOptions? opts = null)
    public static LbPoolV2 get(String name, Output<String> id, LbPoolV2State state, CustomResourceOptions options)
    resources:  _:    type: flexibleengine:LbPoolV2    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AdminStateUp bool
    Description string
    Human-readable description for the pool.
    LbMethod string
    The load balancing algorithm to distribute traffic to the pool's members. Must be one of ROUND_ROBIN, LEAST_CONNECTIONS, or SOURCE_IP.
    LbPoolV2Id string
    The unique ID for the pool.
    ListenerId string
    The Listener on which the members of the pool will be associated with. Changing this creates a new pool. Note: One of LoadbalancerID or ListenerID must be provided.
    LoadbalancerId string
    The load balancer on which to provision this pool. Changing this creates a new pool. Note: One of LoadbalancerID or ListenerID must be provided.
    Name string
    Human-readable name for the pool.
    Persistences List<LbPoolV2Persistence>

    Omit this field to prevent session persistence. Indicates whether connections in the same session will be processed by the same Pool member or not. The persistence object structure is documented below. Changing this creates a new pool.

    The persistence block supports:

    Protocol string

    The protocol - can either be TCP, UDP or HTTP.

    • When the protocol used by the listener is UDP, the protocol of the backend pool must be UDP.
    • When the protocol used by the listener is TCP, the protocol of the backend pool must be TCP.
    • When the protocol used by the listener is HTTP or TERMINATED_HTTPS, the protocol of the backend pool must be HTTP.

    Changing this creates a new pool.

    Region string
    Specifies the region in which to create the resource. If omitted, the region argument of the provider is used. Changing this creates a new pool.
    TenantId string

    Deprecated: Deprecated

    Timeouts LbPoolV2Timeouts
    AdminStateUp bool
    Description string
    Human-readable description for the pool.
    LbMethod string
    The load balancing algorithm to distribute traffic to the pool's members. Must be one of ROUND_ROBIN, LEAST_CONNECTIONS, or SOURCE_IP.
    LbPoolV2Id string
    The unique ID for the pool.
    ListenerId string
    The Listener on which the members of the pool will be associated with. Changing this creates a new pool. Note: One of LoadbalancerID or ListenerID must be provided.
    LoadbalancerId string
    The load balancer on which to provision this pool. Changing this creates a new pool. Note: One of LoadbalancerID or ListenerID must be provided.
    Name string
    Human-readable name for the pool.
    Persistences []LbPoolV2PersistenceArgs

    Omit this field to prevent session persistence. Indicates whether connections in the same session will be processed by the same Pool member or not. The persistence object structure is documented below. Changing this creates a new pool.

    The persistence block supports:

    Protocol string

    The protocol - can either be TCP, UDP or HTTP.

    • When the protocol used by the listener is UDP, the protocol of the backend pool must be UDP.
    • When the protocol used by the listener is TCP, the protocol of the backend pool must be TCP.
    • When the protocol used by the listener is HTTP or TERMINATED_HTTPS, the protocol of the backend pool must be HTTP.

    Changing this creates a new pool.

    Region string
    Specifies the region in which to create the resource. If omitted, the region argument of the provider is used. Changing this creates a new pool.
    TenantId string

    Deprecated: Deprecated

    Timeouts LbPoolV2TimeoutsArgs
    adminStateUp Boolean
    description String
    Human-readable description for the pool.
    lbMethod String
    The load balancing algorithm to distribute traffic to the pool's members. Must be one of ROUND_ROBIN, LEAST_CONNECTIONS, or SOURCE_IP.
    lbPoolV2Id String
    The unique ID for the pool.
    listenerId String
    The Listener on which the members of the pool will be associated with. Changing this creates a new pool. Note: One of LoadbalancerID or ListenerID must be provided.
    loadbalancerId String
    The load balancer on which to provision this pool. Changing this creates a new pool. Note: One of LoadbalancerID or ListenerID must be provided.
    name String
    Human-readable name for the pool.
    persistences List<LbPoolV2Persistence>

    Omit this field to prevent session persistence. Indicates whether connections in the same session will be processed by the same Pool member or not. The persistence object structure is documented below. Changing this creates a new pool.

    The persistence block supports:

    protocol String

    The protocol - can either be TCP, UDP or HTTP.

    • When the protocol used by the listener is UDP, the protocol of the backend pool must be UDP.
    • When the protocol used by the listener is TCP, the protocol of the backend pool must be TCP.
    • When the protocol used by the listener is HTTP or TERMINATED_HTTPS, the protocol of the backend pool must be HTTP.

    Changing this creates a new pool.

    region String
    Specifies the region in which to create the resource. If omitted, the region argument of the provider is used. Changing this creates a new pool.
    tenantId String

    Deprecated: Deprecated

    timeouts LbPoolV2Timeouts
    adminStateUp boolean
    description string
    Human-readable description for the pool.
    lbMethod string
    The load balancing algorithm to distribute traffic to the pool's members. Must be one of ROUND_ROBIN, LEAST_CONNECTIONS, or SOURCE_IP.
    lbPoolV2Id string
    The unique ID for the pool.
    listenerId string
    The Listener on which the members of the pool will be associated with. Changing this creates a new pool. Note: One of LoadbalancerID or ListenerID must be provided.
    loadbalancerId string
    The load balancer on which to provision this pool. Changing this creates a new pool. Note: One of LoadbalancerID or ListenerID must be provided.
    name string
    Human-readable name for the pool.
    persistences LbPoolV2Persistence[]

    Omit this field to prevent session persistence. Indicates whether connections in the same session will be processed by the same Pool member or not. The persistence object structure is documented below. Changing this creates a new pool.

    The persistence block supports:

    protocol string

    The protocol - can either be TCP, UDP or HTTP.

    • When the protocol used by the listener is UDP, the protocol of the backend pool must be UDP.
    • When the protocol used by the listener is TCP, the protocol of the backend pool must be TCP.
    • When the protocol used by the listener is HTTP or TERMINATED_HTTPS, the protocol of the backend pool must be HTTP.

    Changing this creates a new pool.

    region string
    Specifies the region in which to create the resource. If omitted, the region argument of the provider is used. Changing this creates a new pool.
    tenantId string

    Deprecated: Deprecated

    timeouts LbPoolV2Timeouts
    admin_state_up bool
    description str
    Human-readable description for the pool.
    lb_method str
    The load balancing algorithm to distribute traffic to the pool's members. Must be one of ROUND_ROBIN, LEAST_CONNECTIONS, or SOURCE_IP.
    lb_pool_v2_id str
    The unique ID for the pool.
    listener_id str
    The Listener on which the members of the pool will be associated with. Changing this creates a new pool. Note: One of LoadbalancerID or ListenerID must be provided.
    loadbalancer_id str
    The load balancer on which to provision this pool. Changing this creates a new pool. Note: One of LoadbalancerID or ListenerID must be provided.
    name str
    Human-readable name for the pool.
    persistences Sequence[LbPoolV2PersistenceArgs]

    Omit this field to prevent session persistence. Indicates whether connections in the same session will be processed by the same Pool member or not. The persistence object structure is documented below. Changing this creates a new pool.

    The persistence block supports:

    protocol str

    The protocol - can either be TCP, UDP or HTTP.

    • When the protocol used by the listener is UDP, the protocol of the backend pool must be UDP.
    • When the protocol used by the listener is TCP, the protocol of the backend pool must be TCP.
    • When the protocol used by the listener is HTTP or TERMINATED_HTTPS, the protocol of the backend pool must be HTTP.

    Changing this creates a new pool.

    region str
    Specifies the region in which to create the resource. If omitted, the region argument of the provider is used. Changing this creates a new pool.
    tenant_id str

    Deprecated: Deprecated

    timeouts LbPoolV2TimeoutsArgs
    adminStateUp Boolean
    description String
    Human-readable description for the pool.
    lbMethod String
    The load balancing algorithm to distribute traffic to the pool's members. Must be one of ROUND_ROBIN, LEAST_CONNECTIONS, or SOURCE_IP.
    lbPoolV2Id String
    The unique ID for the pool.
    listenerId String
    The Listener on which the members of the pool will be associated with. Changing this creates a new pool. Note: One of LoadbalancerID or ListenerID must be provided.
    loadbalancerId String
    The load balancer on which to provision this pool. Changing this creates a new pool. Note: One of LoadbalancerID or ListenerID must be provided.
    name String
    Human-readable name for the pool.
    persistences List<Property Map>

    Omit this field to prevent session persistence. Indicates whether connections in the same session will be processed by the same Pool member or not. The persistence object structure is documented below. Changing this creates a new pool.

    The persistence block supports:

    protocol String

    The protocol - can either be TCP, UDP or HTTP.

    • When the protocol used by the listener is UDP, the protocol of the backend pool must be UDP.
    • When the protocol used by the listener is TCP, the protocol of the backend pool must be TCP.
    • When the protocol used by the listener is HTTP or TERMINATED_HTTPS, the protocol of the backend pool must be HTTP.

    Changing this creates a new pool.

    region String
    Specifies the region in which to create the resource. If omitted, the region argument of the provider is used. Changing this creates a new pool.
    tenantId String

    Deprecated: Deprecated

    timeouts Property Map

    Supporting Types

    LbPoolV2Persistence, LbPoolV2PersistenceArgs

    Type string
    The type of persistence mode. The current specification supports SOURCE_IP, HTTP_COOKIE, and APP_COOKIE. Changing this will create a new resource.
    CookieName string
    The name of the cookie if persistence mode is set appropriately. It is Required if type = APP_COOKIE. Changing this will create a new resource.
    Timeout double
    Specifies the sticky session timeout duration in minutes. This parameter is invalid when type is set to APP_COOKIE. Changing this will create a new resource. The value range varies depending on the protocol of the backend server group:

    • When the protocol of the backend server group is TCP or UDP, the value ranges from 1 to 60.
    • When the protocol of the backend server group is HTTP or HTTPS, the value ranges from 1 to 1440.
    Type string
    The type of persistence mode. The current specification supports SOURCE_IP, HTTP_COOKIE, and APP_COOKIE. Changing this will create a new resource.
    CookieName string
    The name of the cookie if persistence mode is set appropriately. It is Required if type = APP_COOKIE. Changing this will create a new resource.
    Timeout float64
    Specifies the sticky session timeout duration in minutes. This parameter is invalid when type is set to APP_COOKIE. Changing this will create a new resource. The value range varies depending on the protocol of the backend server group:

    • When the protocol of the backend server group is TCP or UDP, the value ranges from 1 to 60.
    • When the protocol of the backend server group is HTTP or HTTPS, the value ranges from 1 to 1440.
    type String
    The type of persistence mode. The current specification supports SOURCE_IP, HTTP_COOKIE, and APP_COOKIE. Changing this will create a new resource.
    cookieName String
    The name of the cookie if persistence mode is set appropriately. It is Required if type = APP_COOKIE. Changing this will create a new resource.
    timeout Double
    Specifies the sticky session timeout duration in minutes. This parameter is invalid when type is set to APP_COOKIE. Changing this will create a new resource. The value range varies depending on the protocol of the backend server group:

    • When the protocol of the backend server group is TCP or UDP, the value ranges from 1 to 60.
    • When the protocol of the backend server group is HTTP or HTTPS, the value ranges from 1 to 1440.
    type string
    The type of persistence mode. The current specification supports SOURCE_IP, HTTP_COOKIE, and APP_COOKIE. Changing this will create a new resource.
    cookieName string
    The name of the cookie if persistence mode is set appropriately. It is Required if type = APP_COOKIE. Changing this will create a new resource.
    timeout number
    Specifies the sticky session timeout duration in minutes. This parameter is invalid when type is set to APP_COOKIE. Changing this will create a new resource. The value range varies depending on the protocol of the backend server group:

    • When the protocol of the backend server group is TCP or UDP, the value ranges from 1 to 60.
    • When the protocol of the backend server group is HTTP or HTTPS, the value ranges from 1 to 1440.
    type str
    The type of persistence mode. The current specification supports SOURCE_IP, HTTP_COOKIE, and APP_COOKIE. Changing this will create a new resource.
    cookie_name str
    The name of the cookie if persistence mode is set appropriately. It is Required if type = APP_COOKIE. Changing this will create a new resource.
    timeout float
    Specifies the sticky session timeout duration in minutes. This parameter is invalid when type is set to APP_COOKIE. Changing this will create a new resource. The value range varies depending on the protocol of the backend server group:

    • When the protocol of the backend server group is TCP or UDP, the value ranges from 1 to 60.
    • When the protocol of the backend server group is HTTP or HTTPS, the value ranges from 1 to 1440.
    type String
    The type of persistence mode. The current specification supports SOURCE_IP, HTTP_COOKIE, and APP_COOKIE. Changing this will create a new resource.
    cookieName String
    The name of the cookie if persistence mode is set appropriately. It is Required if type = APP_COOKIE. Changing this will create a new resource.
    timeout Number
    Specifies the sticky session timeout duration in minutes. This parameter is invalid when type is set to APP_COOKIE. Changing this will create a new resource. The value range varies depending on the protocol of the backend server group:

    • When the protocol of the backend server group is TCP or UDP, the value ranges from 1 to 60.
    • When the protocol of the backend server group is HTTP or HTTPS, the value ranges from 1 to 1440.

    LbPoolV2Timeouts, LbPoolV2TimeoutsArgs

    Create string
    Delete string
    Update string
    Create string
    Delete string
    Update string
    create String
    delete String
    update String
    create string
    delete string
    update string
    create str
    delete str
    update str
    create String
    delete String
    update String

    Import

    ELB pool can be imported using the ELB pool ID, e.g.

    $ pulumi import flexibleengine:index/lbPoolV2:LbPoolV2 pool_1 3e3632db-36c6-4b28-a92e-e72e6562daa6
    

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

    Package Details

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