1. Packages
  2. Gcorelabs Provider
  3. API Docs
  4. Lbpool
gcorelabs 0.3.63 published on Monday, Apr 14, 2025 by g-core

gcorelabs.Lbpool

Explore with Pulumi AI

gcorelabs logo
gcorelabs 0.3.63 published on Monday, Apr 14, 2025 by g-core

    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 gcore from "@pulumi/gcore";
    
    const lb = new gcore.index.Gcore_loadbalancer("lb", {
        projectId: 1,
        regionId: 1,
        name: "test1",
        flavor: "lb1-1-2",
        listener: [{
            name: "test",
            protocol: "HTTP",
            protocolPort: 80,
        }],
    });
    const pl = new gcore.index.Gcore_lbpool("pl", {
        projectId: 1,
        regionId: 1,
        name: "test_pool1",
        protocol: "HTTP",
        lbAlgorithm: "LEAST_CONNECTIONS",
        loadbalancerId: lb.id,
        listenerId: lb.listener[0].id,
        healthMonitor: [{
            type: "PING",
            delay: 60,
            maxRetries: 5,
            timeout: 10,
        }],
        sessionPersistence: [{
            type: "APP_COOKIE",
            cookieName: "test_new_cookie",
        }],
    });
    
    import pulumi
    import pulumi_gcore as gcore
    
    lb = gcore.index.Gcore_loadbalancer("lb",
        project_id=1,
        region_id=1,
        name=test1,
        flavor=lb1-1-2,
        listener=[{
            name: test,
            protocol: HTTP,
            protocolPort: 80,
        }])
    pl = gcore.index.Gcore_lbpool("pl",
        project_id=1,
        region_id=1,
        name=test_pool1,
        protocol=HTTP,
        lb_algorithm=LEAST_CONNECTIONS,
        loadbalancer_id=lb.id,
        listener_id=lb.listener[0].id,
        health_monitor=[{
            type: PING,
            delay: 60,
            maxRetries: 5,
            timeout: 10,
        }],
        session_persistence=[{
            type: APP_COOKIE,
            cookieName: test_new_cookie,
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcore/sdk/go/gcore"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		lb, err := gcore.NewGcore_loadbalancer(ctx, "lb", &gcore.Gcore_loadbalancerArgs{
    			ProjectId: 1,
    			RegionId:  1,
    			Name:      "test1",
    			Flavor:    "lb1-1-2",
    			Listener: []map[string]interface{}{
    				map[string]interface{}{
    					"name":         "test",
    					"protocol":     "HTTP",
    					"protocolPort": 80,
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = gcore.NewGcore_lbpool(ctx, "pl", &gcore.Gcore_lbpoolArgs{
    			ProjectId:      1,
    			RegionId:       1,
    			Name:           "test_pool1",
    			Protocol:       "HTTP",
    			LbAlgorithm:    "LEAST_CONNECTIONS",
    			LoadbalancerId: lb.Id,
    			ListenerId:     lb.Listener[0].Id,
    			HealthMonitor: []map[string]interface{}{
    				map[string]interface{}{
    					"type":       "PING",
    					"delay":      60,
    					"maxRetries": 5,
    					"timeout":    10,
    				},
    			},
    			SessionPersistence: []map[string]interface{}{
    				map[string]interface{}{
    					"type":       "APP_COOKIE",
    					"cookieName": "test_new_cookie",
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcore = Pulumi.Gcore;
    
    return await Deployment.RunAsync(() => 
    {
        var lb = new Gcore.Index.Gcore_loadbalancer("lb", new()
        {
            ProjectId = 1,
            RegionId = 1,
            Name = "test1",
            Flavor = "lb1-1-2",
            Listener = new[]
            {
                
                {
                    { "name", "test" },
                    { "protocol", "HTTP" },
                    { "protocolPort", 80 },
                },
            },
        });
    
        var pl = new Gcore.Index.Gcore_lbpool("pl", new()
        {
            ProjectId = 1,
            RegionId = 1,
            Name = "test_pool1",
            Protocol = "HTTP",
            LbAlgorithm = "LEAST_CONNECTIONS",
            LoadbalancerId = lb.Id,
            ListenerId = lb.Listener[0].Id,
            HealthMonitor = new[]
            {
                
                {
                    { "type", "PING" },
                    { "delay", 60 },
                    { "maxRetries", 5 },
                    { "timeout", 10 },
                },
            },
            SessionPersistence = new[]
            {
                
                {
                    { "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.gcore.gcore_loadbalancer;
    import com.pulumi.gcore.Gcore_loadbalancerArgs;
    import com.pulumi.gcore.gcore_lbpool;
    import com.pulumi.gcore.Gcore_lbpoolArgs;
    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 Gcore_loadbalancer("lb", Gcore_loadbalancerArgs.builder()
                .projectId(1)
                .regionId(1)
                .name("test1")
                .flavor("lb1-1-2")
                .listener(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
                .build());
    
            var pl = new Gcore_lbpool("pl", Gcore_lbpoolArgs.builder()
                .projectId(1)
                .regionId(1)
                .name("test_pool1")
                .protocol("HTTP")
                .lbAlgorithm("LEAST_CONNECTIONS")
                .loadbalancerId(lb.id())
                .listenerId(lb.listener()[0].id())
                .healthMonitor(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
                .sessionPersistence(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
                .build());
    
        }
    }
    
    resources:
      lb:
        type: gcore:gcore_loadbalancer
        properties:
          projectId: 1
          regionId: 1
          name: test1
          flavor: lb1-1-2
          listener:
            - name: test
              protocol: HTTP
              protocolPort: 80
      pl:
        type: gcore:gcore_lbpool
        properties:
          projectId: 1
          regionId: 1
          name: test_pool1
          protocol: HTTP
          lbAlgorithm: LEAST_CONNECTIONS
          loadbalancerId: ${lb.id}
          listenerId: ${lb.listener[0].id}
          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: gcorelabs: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 Gcorelabs.Lbpool("lbpoolResource", new()
    {
        LbAlgorithm = "string",
        Protocol = "string",
        LbpoolId = "string",
        HealthMonitor = new Gcorelabs.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 Gcorelabs.Inputs.LbpoolSessionPersistenceArgs
        {
            Type = "string",
            CookieName = "string",
            PersistenceGranularity = "string",
            PersistenceTimeout = 0,
        },
        Timeouts = new Gcorelabs.Inputs.LbpoolTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
        },
    });
    
    example, err := gcorelabs.NewLbpool(ctx, "lbpoolResource", &gcorelabs.LbpoolArgs{
    	LbAlgorithm: pulumi.String("string"),
    	Protocol:    pulumi.String("string"),
    	LbpoolId:    pulumi.String("string"),
    	HealthMonitor: &gcorelabs.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: &gcorelabs.LbpoolSessionPersistenceArgs{
    		Type:                   pulumi.String("string"),
    		CookieName:             pulumi.String("string"),
    		PersistenceGranularity: pulumi.String("string"),
    		PersistenceTimeout:     pulumi.Float64(0),
    	},
    	Timeouts: &gcorelabs.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()
            .type("string")
            .cookieName("string")
            .persistenceGranularity("string")
            .persistenceTimeout(0)
            .build())
        .timeouts(LbpoolTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .build())
        .build());
    
    lbpool_resource = gcorelabs.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={
            "type": "string",
            "cookie_name": "string",
            "persistence_granularity": "string",
            "persistence_timeout": 0,
        },
        timeouts={
            "create": "string",
            "delete": "string",
        })
    
    const lbpoolResource = new gcorelabs.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: {
            type: "string",
            cookieName: "string",
            persistenceGranularity: "string",
            persistenceTimeout: 0,
        },
        timeouts: {
            create: "string",
            "delete": "string",
        },
    });
    
    type: gcorelabs: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
    Available values is 'ROUNDROBIN', 'LEASTCONNECTIONS', 'SOURCEIP', 'SOURCEIP_PORT'
    Protocol string
    Available values is 'HTTP' (currently work, other do not work on ed-8), 'HTTPS', 'TCP', 'UDP'
    HealthMonitor LbpoolHealthMonitor
    LastUpdated string
    LbpoolId string
    The ID of this resource.
    ListenerId string
    LoadbalancerId string
    Name string
    ProjectId double
    ProjectName string
    RegionId double
    RegionName string
    SessionPersistence LbpoolSessionPersistence
    Timeouts LbpoolTimeouts
    LbAlgorithm string
    Available values is 'ROUNDROBIN', 'LEASTCONNECTIONS', 'SOURCEIP', 'SOURCEIP_PORT'
    Protocol string
    Available values is 'HTTP' (currently work, other do not work on ed-8), 'HTTPS', 'TCP', 'UDP'
    HealthMonitor LbpoolHealthMonitorArgs
    LastUpdated string
    LbpoolId string
    The ID of this resource.
    ListenerId string
    LoadbalancerId string
    Name string
    ProjectId float64
    ProjectName string
    RegionId float64
    RegionName string
    SessionPersistence LbpoolSessionPersistenceArgs
    Timeouts LbpoolTimeoutsArgs
    lbAlgorithm String
    Available values is 'ROUNDROBIN', 'LEASTCONNECTIONS', 'SOURCEIP', 'SOURCEIP_PORT'
    protocol String
    Available values is 'HTTP' (currently work, other do not work on ed-8), 'HTTPS', 'TCP', 'UDP'
    healthMonitor LbpoolHealthMonitor
    lastUpdated String
    lbpoolId String
    The ID of this resource.
    listenerId String
    loadbalancerId String
    name String
    projectId Double
    projectName String
    regionId Double
    regionName String
    sessionPersistence LbpoolSessionPersistence
    timeouts LbpoolTimeouts
    lbAlgorithm string
    Available values is 'ROUNDROBIN', 'LEASTCONNECTIONS', 'SOURCEIP', 'SOURCEIP_PORT'
    protocol string
    Available values is 'HTTP' (currently work, other do not work on ed-8), 'HTTPS', 'TCP', 'UDP'
    healthMonitor LbpoolHealthMonitor
    lastUpdated string
    lbpoolId string
    The ID of this resource.
    listenerId string
    loadbalancerId string
    name string
    projectId number
    projectName string
    regionId number
    regionName string
    sessionPersistence LbpoolSessionPersistence
    timeouts LbpoolTimeouts
    lb_algorithm str
    Available values is 'ROUNDROBIN', 'LEASTCONNECTIONS', 'SOURCEIP', 'SOURCEIP_PORT'
    protocol str
    Available values is 'HTTP' (currently work, other do not work on ed-8), 'HTTPS', 'TCP', 'UDP'
    health_monitor LbpoolHealthMonitorArgs
    last_updated str
    lbpool_id str
    The ID of this resource.
    listener_id str
    loadbalancer_id str
    name str
    project_id float
    project_name str
    region_id float
    region_name str
    session_persistence LbpoolSessionPersistenceArgs
    timeouts LbpoolTimeoutsArgs
    lbAlgorithm String
    Available values is 'ROUNDROBIN', 'LEASTCONNECTIONS', 'SOURCEIP', 'SOURCEIP_PORT'
    protocol String
    Available values is 'HTTP' (currently work, other do not work on ed-8), 'HTTPS', 'TCP', 'UDP'
    healthMonitor Property Map
    lastUpdated String
    lbpoolId String
    The ID of this resource.
    listenerId String
    loadbalancerId String
    name String
    projectId Number
    projectName String
    regionId Number
    regionName String
    sessionPersistence Property Map
    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: gcorelabs: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
    LastUpdated string
    LbAlgorithm string
    Available values is 'ROUNDROBIN', 'LEASTCONNECTIONS', 'SOURCEIP', 'SOURCEIP_PORT'
    LbpoolId string
    The ID of this resource.
    ListenerId string
    LoadbalancerId string
    Name string
    ProjectId double
    ProjectName string
    Protocol string
    Available values is 'HTTP' (currently work, other do not work on ed-8), 'HTTPS', 'TCP', 'UDP'
    RegionId double
    RegionName string
    SessionPersistence LbpoolSessionPersistence
    Timeouts LbpoolTimeouts
    HealthMonitor LbpoolHealthMonitorArgs
    LastUpdated string
    LbAlgorithm string
    Available values is 'ROUNDROBIN', 'LEASTCONNECTIONS', 'SOURCEIP', 'SOURCEIP_PORT'
    LbpoolId string
    The ID of this resource.
    ListenerId string
    LoadbalancerId string
    Name string
    ProjectId float64
    ProjectName string
    Protocol string
    Available values is 'HTTP' (currently work, other do not work on ed-8), 'HTTPS', 'TCP', 'UDP'
    RegionId float64
    RegionName string
    SessionPersistence LbpoolSessionPersistenceArgs
    Timeouts LbpoolTimeoutsArgs
    healthMonitor LbpoolHealthMonitor
    lastUpdated String
    lbAlgorithm String
    Available values is 'ROUNDROBIN', 'LEASTCONNECTIONS', 'SOURCEIP', 'SOURCEIP_PORT'
    lbpoolId String
    The ID of this resource.
    listenerId String
    loadbalancerId String
    name String
    projectId Double
    projectName String
    protocol String
    Available values is 'HTTP' (currently work, other do not work on ed-8), 'HTTPS', 'TCP', 'UDP'
    regionId Double
    regionName String
    sessionPersistence LbpoolSessionPersistence
    timeouts LbpoolTimeouts
    healthMonitor LbpoolHealthMonitor
    lastUpdated string
    lbAlgorithm string
    Available values is 'ROUNDROBIN', 'LEASTCONNECTIONS', 'SOURCEIP', 'SOURCEIP_PORT'
    lbpoolId string
    The ID of this resource.
    listenerId string
    loadbalancerId string
    name string
    projectId number
    projectName string
    protocol string
    Available values is 'HTTP' (currently work, other do not work on ed-8), 'HTTPS', 'TCP', 'UDP'
    regionId number
    regionName string
    sessionPersistence LbpoolSessionPersistence
    timeouts LbpoolTimeouts
    health_monitor LbpoolHealthMonitorArgs
    last_updated str
    lb_algorithm str
    Available values is 'ROUNDROBIN', 'LEASTCONNECTIONS', 'SOURCEIP', 'SOURCEIP_PORT'
    lbpool_id str
    The ID of this resource.
    listener_id str
    loadbalancer_id str
    name str
    project_id float
    project_name str
    protocol str
    Available values is 'HTTP' (currently work, other do not work on ed-8), 'HTTPS', 'TCP', 'UDP'
    region_id float
    region_name str
    session_persistence LbpoolSessionPersistenceArgs
    timeouts LbpoolTimeoutsArgs
    healthMonitor Property Map
    lastUpdated String
    lbAlgorithm String
    Available values is 'ROUNDROBIN', 'LEASTCONNECTIONS', 'SOURCEIP', 'SOURCEIP_PORT'
    lbpoolId String
    The ID of this resource.
    listenerId String
    loadbalancerId String
    name String
    projectId Number
    projectName String
    protocol String
    Available values is 'HTTP' (currently work, other do not work on ed-8), 'HTTPS', 'TCP', 'UDP'
    regionId Number
    regionName String
    sessionPersistence Property Map
    timeouts Property Map

    Supporting Types

    LbpoolHealthMonitor, LbpoolHealthMonitorArgs

    Delay double
    MaxRetries double
    Timeout double
    Type string
    Available values is 'HTTP', 'HTTPS', 'PING', 'TCP', 'TLS-HELLO', 'UDP-CONNECT
    ExpectedCodes string
    HttpMethod string
    Id string
    The ID of this resource.
    MaxRetriesDown double
    UrlPath string
    Delay float64
    MaxRetries float64
    Timeout float64
    Type string
    Available values is 'HTTP', 'HTTPS', 'PING', 'TCP', 'TLS-HELLO', 'UDP-CONNECT
    ExpectedCodes string
    HttpMethod string
    Id string
    The ID of this resource.
    MaxRetriesDown float64
    UrlPath string
    delay Double
    maxRetries Double
    timeout Double
    type String
    Available values is 'HTTP', 'HTTPS', 'PING', 'TCP', 'TLS-HELLO', 'UDP-CONNECT
    expectedCodes String
    httpMethod String
    id String
    The ID of this resource.
    maxRetriesDown Double
    urlPath String
    delay number
    maxRetries number
    timeout number
    type string
    Available values is 'HTTP', 'HTTPS', 'PING', 'TCP', 'TLS-HELLO', 'UDP-CONNECT
    expectedCodes string
    httpMethod string
    id string
    The ID of this resource.
    maxRetriesDown number
    urlPath string
    delay float
    max_retries float
    timeout float
    type str
    Available values is 'HTTP', 'HTTPS', 'PING', 'TCP', 'TLS-HELLO', 'UDP-CONNECT
    expected_codes str
    http_method str
    id str
    The ID of this resource.
    max_retries_down float
    url_path str
    delay Number
    maxRetries Number
    timeout Number
    type String
    Available values is 'HTTP', 'HTTPS', 'PING', 'TCP', 'TLS-HELLO', 'UDP-CONNECT
    expectedCodes String
    httpMethod String
    id String
    The ID of this resource.
    maxRetriesDown Number
    urlPath String

    LbpoolSessionPersistence, LbpoolSessionPersistenceArgs

    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 gcorelabs: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
    gcorelabs g-core/terraform-provider-gcorelabs
    License
    Notes
    This Pulumi package is based on the gcorelabs Terraform Provider.
    gcorelabs logo
    gcorelabs 0.3.63 published on Monday, Apr 14, 2025 by g-core