1. Packages
  2. Edgecenter Provider
  3. API Docs
  4. Lbpool
edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center

edgecenter.Lbpool

Explore with Pulumi AI

edgecenter logo
edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center

    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:

    LbAlgorithm 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.
    HealthMonitor LbpoolHealthMonitor
    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.
    LastUpdated string
    The timestamp of the last update (use with update context).
    LbpoolId string
    The ID of this resource.
    ListenerId string
    The uuid for the load balancer listener.
    LoadbalancerId string
    The uuid for the load balancer.
    Name string
    The name of the load balancer listener pool.
    ProjectId double
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    ProjectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    RegionId double
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    SessionPersistence LbpoolSessionPersistence
    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 LbpoolTimeouts
    LbAlgorithm 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.
    HealthMonitor LbpoolHealthMonitorArgs
    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.
    LastUpdated string
    The timestamp of the last update (use with update context).
    LbpoolId string
    The ID of this resource.
    ListenerId string
    The uuid for the load balancer listener.
    LoadbalancerId string
    The uuid for the load balancer.
    Name string
    The name of the load balancer listener pool.
    ProjectId float64
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    ProjectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    RegionId float64
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    SessionPersistence LbpoolSessionPersistenceArgs
    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 LbpoolTimeoutsArgs
    lbAlgorithm 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.
    healthMonitor LbpoolHealthMonitor
    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.
    lastUpdated String
    The timestamp of the last update (use with update context).
    lbpoolId String
    The ID of this resource.
    listenerId String
    The uuid for the load balancer listener.
    loadbalancerId String
    The uuid for the load balancer.
    name String
    The name of the load balancer listener pool.
    projectId Double
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName String
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId Double
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    sessionPersistence LbpoolSessionPersistence
    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 LbpoolTimeouts
    lbAlgorithm 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.
    healthMonitor LbpoolHealthMonitor
    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.
    lastUpdated string
    The timestamp of the last update (use with update context).
    lbpoolId string
    The ID of this resource.
    listenerId string
    The uuid for the load balancer listener.
    loadbalancerId string
    The uuid for the load balancer.
    name string
    The name of the load balancer listener pool.
    projectId number
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId number
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    sessionPersistence LbpoolSessionPersistence
    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 LbpoolTimeouts
    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 LbpoolHealthMonitorArgs
    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 LbpoolSessionPersistenceArgs
    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 LbpoolTimeoutsArgs
    lbAlgorithm 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.
    healthMonitor 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.
    lastUpdated String
    The timestamp of the last update (use with update context).
    lbpoolId String
    The ID of this resource.
    listenerId String
    The uuid for the load balancer listener.
    loadbalancerId String
    The uuid for the load balancer.
    name String
    The name of the load balancer listener pool.
    projectId Number
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName String
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId Number
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    sessionPersistence 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.
    The following state arguments are supported:
    HealthMonitor LbpoolHealthMonitor
    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.
    LastUpdated string
    The timestamp of the last update (use with update context).
    LbAlgorithm string
    The algorithm of the load balancer. Available values are ROUND_ROBIN, LEAST_CONNECTIONS, SOURCE_IP.
    LbpoolId string
    The ID of this resource.
    ListenerId string
    The uuid for the load balancer listener.
    LoadbalancerId string
    The uuid for the load balancer.
    Name string
    The name of the load balancer listener pool.
    ProjectId double
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    ProjectName 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.
    RegionId double
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    SessionPersistence LbpoolSessionPersistence
    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 LbpoolTimeouts
    HealthMonitor LbpoolHealthMonitorArgs
    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.
    LastUpdated string
    The timestamp of the last update (use with update context).
    LbAlgorithm string
    The algorithm of the load balancer. Available values are ROUND_ROBIN, LEAST_CONNECTIONS, SOURCE_IP.
    LbpoolId string
    The ID of this resource.
    ListenerId string
    The uuid for the load balancer listener.
    LoadbalancerId string
    The uuid for the load balancer.
    Name string
    The name of the load balancer listener pool.
    ProjectId float64
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    ProjectName 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.
    RegionId float64
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    SessionPersistence LbpoolSessionPersistenceArgs
    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 LbpoolTimeoutsArgs
    healthMonitor LbpoolHealthMonitor
    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.
    lastUpdated String
    The timestamp of the last update (use with update context).
    lbAlgorithm String
    The algorithm of the load balancer. Available values are ROUND_ROBIN, LEAST_CONNECTIONS, SOURCE_IP.
    lbpoolId String
    The ID of this resource.
    listenerId String
    The uuid for the load balancer listener.
    loadbalancerId String
    The uuid for the load balancer.
    name String
    The name of the load balancer listener pool.
    projectId Double
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName 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.
    regionId Double
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    sessionPersistence LbpoolSessionPersistence
    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 LbpoolTimeouts
    healthMonitor LbpoolHealthMonitor
    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.
    lastUpdated string
    The timestamp of the last update (use with update context).
    lbAlgorithm string
    The algorithm of the load balancer. Available values are ROUND_ROBIN, LEAST_CONNECTIONS, SOURCE_IP.
    lbpoolId string
    The ID of this resource.
    listenerId string
    The uuid for the load balancer listener.
    loadbalancerId string
    The uuid for the load balancer.
    name string
    The name of the load balancer listener pool.
    projectId number
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName 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.
    regionId number
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    sessionPersistence LbpoolSessionPersistence
    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 LbpoolTimeouts
    health_monitor LbpoolHealthMonitorArgs
    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 LbpoolSessionPersistenceArgs
    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 LbpoolTimeoutsArgs
    healthMonitor 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.
    lastUpdated String
    The timestamp of the last update (use with update context).
    lbAlgorithm String
    The algorithm of the load balancer. Available values are ROUND_ROBIN, LEAST_CONNECTIONS, SOURCE_IP.
    lbpoolId String
    The ID of this resource.
    listenerId String
    The uuid for the load balancer listener.
    loadbalancerId String
    The uuid for the load balancer.
    name String
    The name of the load balancer listener pool.
    projectId Number
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName 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.
    regionId Number
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    sessionPersistence 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).
    MaxRetries 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.
    ExpectedCodes string
    The expected HTTP status codes. Multiple codes can be specified as a comma-separated string.
    HttpMethod string
    The HTTP method. Available values are CONNECT, DELETE, GET, HEAD, OPTIONS, PATCH,POST, PUT, TRACE.
    Id string
    The ID of the health monitor.
    MaxRetriesDown double
    The number of failures before the member is switched to the ERROR state.
    UrlPath string
    The URL path. Defaults to /.
    Delay float64
    The time between sending probes to members (in seconds).
    MaxRetries 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.
    ExpectedCodes string
    The expected HTTP status codes. Multiple codes can be specified as a comma-separated string.
    HttpMethod string
    The HTTP method. Available values are CONNECT, DELETE, GET, HEAD, OPTIONS, PATCH,POST, PUT, TRACE.
    Id string
    The ID of the health monitor.
    MaxRetriesDown float64
    The number of failures before the member is switched to the ERROR state.
    UrlPath string
    The URL path. Defaults to /.
    delay Double
    The time between sending probes to members (in seconds).
    maxRetries 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.
    expectedCodes String
    The expected HTTP status codes. Multiple codes can be specified as a comma-separated string.
    httpMethod String
    The HTTP method. Available values are CONNECT, DELETE, GET, HEAD, OPTIONS, PATCH,POST, PUT, TRACE.
    id String
    The ID of the health monitor.
    maxRetriesDown Double
    The number of failures before the member is switched to the ERROR state.
    urlPath String
    The URL path. Defaults to /.
    delay number
    The time between sending probes to members (in seconds).
    maxRetries 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.
    expectedCodes string
    The expected HTTP status codes. Multiple codes can be specified as a comma-separated string.
    httpMethod string
    The HTTP method. Available values are CONNECT, DELETE, GET, HEAD, OPTIONS, PATCH,POST, PUT, TRACE.
    id string
    The ID of the health monitor.
    maxRetriesDown number
    The number of failures before the member is switched to the ERROR state.
    urlPath 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_down float
    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).
    maxRetries 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.
    expectedCodes String
    The expected HTTP status codes. Multiple codes can be specified as a comma-separated string.
    httpMethod String
    The HTTP method. Available values are CONNECT, DELETE, GET, HEAD, OPTIONS, PATCH,POST, PUT, TRACE.
    id String
    The ID of the health monitor.
    maxRetriesDown Number
    The number of failures before the member is switched to the ERROR state.
    urlPath String
    The URL path. Defaults to /.

    LbpoolSessionPersistence, LbpoolSessionPersistenceArgs

    CookieName string
    The name of the cookie. Should be set if app cookie or http cookie is used.
    PersistenceGranularity string
    The subnet mask if source_ip is used. For UDP ports only.
    PersistenceTimeout double
    The timeout for the session persistence. For UDP ports only.
    Type string
    The type of the session persistence. Available values are APP_COOKIE
    CookieName string
    The name of the cookie. Should be set if app cookie or http cookie is used.
    PersistenceGranularity string
    The subnet mask if source_ip is used. For UDP ports only.
    PersistenceTimeout float64
    The timeout for the session persistence. For UDP ports only.
    Type string
    The type of the session persistence. Available values are APP_COOKIE
    cookieName String
    The name of the cookie. Should be set if app cookie or http cookie is used.
    persistenceGranularity String
    The subnet mask if source_ip is used. For UDP ports only.
    persistenceTimeout Double
    The timeout for the session persistence. For UDP ports only.
    type String
    The type of the session persistence. Available values are APP_COOKIE
    cookieName string
    The name of the cookie. Should be set if app cookie or http cookie is used.
    persistenceGranularity string
    The subnet mask if source_ip is used. For UDP ports only.
    persistenceTimeout number
    The timeout for the session persistence. For UDP ports only.
    type string
    The type of the session persistence. Available values are APP_COOKIE
    cookie_name 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
    cookieName String
    The name of the cookie. Should be set if app cookie or http cookie is used.
    persistenceGranularity String
    The subnet mask if source_ip is used. For UDP ports only.
    persistenceTimeout 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

    Create string
    Delete string
    Create string
    Delete string
    create String
    delete String
    create string
    delete string
    create str
    delete str
    create String
    delete String

    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.
    edgecenter logo
    edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center