1. Packages
  2. Glesys Provider
  3. API Docs
  4. Loadbalancer
glesys 0.14.2 published on Tuesday, Apr 15, 2025 by glesys

glesys.Loadbalancer

Explore with Pulumi AI

Create a LoadBalancer

Create Loadbalancer Resource

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

Constructor syntax

new Loadbalancer(name: string, args: LoadbalancerArgs, opts?: CustomResourceOptions);
@overload
def Loadbalancer(resource_name: str,
                 args: LoadbalancerArgs,
                 opts: Optional[ResourceOptions] = None)

@overload
def Loadbalancer(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 datacenter: Optional[str] = None,
                 blacklists: Optional[Sequence[str]] = None,
                 blocklists: Optional[Sequence[str]] = None,
                 loadbalancer_id: Optional[str] = None,
                 name: Optional[str] = None)
func NewLoadbalancer(ctx *Context, name string, args LoadbalancerArgs, opts ...ResourceOption) (*Loadbalancer, error)
public Loadbalancer(string name, LoadbalancerArgs args, CustomResourceOptions? opts = null)
public Loadbalancer(String name, LoadbalancerArgs args)
public Loadbalancer(String name, LoadbalancerArgs args, CustomResourceOptions options)
type: glesys:Loadbalancer
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. LoadbalancerArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. LoadbalancerArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. LoadbalancerArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. LoadbalancerArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. LoadbalancerArgs
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 loadbalancerResource = new Glesys.Loadbalancer("loadbalancerResource", new()
{
    Datacenter = "string",
    Blocklists = new[]
    {
        "string",
    },
    LoadbalancerId = "string",
    Name = "string",
});
Copy
example, err := glesys.NewLoadbalancer(ctx, "loadbalancerResource", &glesys.LoadbalancerArgs{
Datacenter: pulumi.String("string"),
Blocklists: pulumi.StringArray{
pulumi.String("string"),
},
LoadbalancerId: pulumi.String("string"),
Name: pulumi.String("string"),
})
Copy
var loadbalancerResource = new Loadbalancer("loadbalancerResource", LoadbalancerArgs.builder()
    .datacenter("string")
    .blocklists("string")
    .loadbalancerId("string")
    .name("string")
    .build());
Copy
loadbalancer_resource = glesys.Loadbalancer("loadbalancerResource",
    datacenter="string",
    blocklists=["string"],
    loadbalancer_id="string",
    name="string")
Copy
const loadbalancerResource = new glesys.Loadbalancer("loadbalancerResource", {
    datacenter: "string",
    blocklists: ["string"],
    loadbalancerId: "string",
    name: "string",
});
Copy
type: glesys:Loadbalancer
properties:
    blocklists:
        - string
    datacenter: string
    loadbalancerId: string
    name: string
Copy

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

Datacenter This property is required. string
LoadBalancer datacenter. Falkenberg, Stockholm
Blacklists List<string>
DEPRECATED Use blocklist instead.

Deprecated: Deprecated

Blocklists List<string>
LoadBalancer blocklist. List of IPs: ["a.b.c.d","x.y.z.w"]
LoadbalancerId string
The ID of this resource.
Name string
LoadBalancer name.
Datacenter This property is required. string
LoadBalancer datacenter. Falkenberg, Stockholm
Blacklists []string
DEPRECATED Use blocklist instead.

Deprecated: Deprecated

Blocklists []string
LoadBalancer blocklist. List of IPs: ["a.b.c.d","x.y.z.w"]
LoadbalancerId string
The ID of this resource.
Name string
LoadBalancer name.
datacenter This property is required. String
LoadBalancer datacenter. Falkenberg, Stockholm
blacklists List<String>
DEPRECATED Use blocklist instead.

Deprecated: Deprecated

blocklists List<String>
LoadBalancer blocklist. List of IPs: ["a.b.c.d","x.y.z.w"]
loadbalancerId String
The ID of this resource.
name String
LoadBalancer name.
datacenter This property is required. string
LoadBalancer datacenter. Falkenberg, Stockholm
blacklists string[]
DEPRECATED Use blocklist instead.

Deprecated: Deprecated

blocklists string[]
LoadBalancer blocklist. List of IPs: ["a.b.c.d","x.y.z.w"]
loadbalancerId string
The ID of this resource.
name string
LoadBalancer name.
datacenter This property is required. str
LoadBalancer datacenter. Falkenberg, Stockholm
blacklists Sequence[str]
DEPRECATED Use blocklist instead.

Deprecated: Deprecated

blocklists Sequence[str]
LoadBalancer blocklist. List of IPs: ["a.b.c.d","x.y.z.w"]
loadbalancer_id str
The ID of this resource.
name str
LoadBalancer name.
datacenter This property is required. String
LoadBalancer datacenter. Falkenberg, Stockholm
blacklists List<String>
DEPRECATED Use blocklist instead.

Deprecated: Deprecated

blocklists List<String>
LoadBalancer blocklist. List of IPs: ["a.b.c.d","x.y.z.w"]
loadbalancerId String
The ID of this resource.
name String
LoadBalancer name.

Outputs

All input properties are implicitly available as output properties. Additionally, the Loadbalancer resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Iplists List<string>
IPs set on the LoadBalancer.
Id string
The provider-assigned unique ID for this managed resource.
Iplists []string
IPs set on the LoadBalancer.
id String
The provider-assigned unique ID for this managed resource.
iplists List<String>
IPs set on the LoadBalancer.
id string
The provider-assigned unique ID for this managed resource.
iplists string[]
IPs set on the LoadBalancer.
id str
The provider-assigned unique ID for this managed resource.
iplists Sequence[str]
IPs set on the LoadBalancer.
id String
The provider-assigned unique ID for this managed resource.
iplists List<String>
IPs set on the LoadBalancer.

Look up Existing Loadbalancer Resource

Get an existing Loadbalancer 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?: LoadbalancerState, opts?: CustomResourceOptions): Loadbalancer
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        blacklists: Optional[Sequence[str]] = None,
        blocklists: Optional[Sequence[str]] = None,
        datacenter: Optional[str] = None,
        iplists: Optional[Sequence[str]] = None,
        loadbalancer_id: Optional[str] = None,
        name: Optional[str] = None) -> Loadbalancer
func GetLoadbalancer(ctx *Context, name string, id IDInput, state *LoadbalancerState, opts ...ResourceOption) (*Loadbalancer, error)
public static Loadbalancer Get(string name, Input<string> id, LoadbalancerState? state, CustomResourceOptions? opts = null)
public static Loadbalancer get(String name, Output<String> id, LoadbalancerState state, CustomResourceOptions options)
resources:  _:    type: glesys:Loadbalancer    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Blacklists List<string>
DEPRECATED Use blocklist instead.

Deprecated: Deprecated

Blocklists List<string>
LoadBalancer blocklist. List of IPs: ["a.b.c.d","x.y.z.w"]
Datacenter string
LoadBalancer datacenter. Falkenberg, Stockholm
Iplists List<string>
IPs set on the LoadBalancer.
LoadbalancerId string
The ID of this resource.
Name string
LoadBalancer name.
Blacklists []string
DEPRECATED Use blocklist instead.

Deprecated: Deprecated

Blocklists []string
LoadBalancer blocklist. List of IPs: ["a.b.c.d","x.y.z.w"]
Datacenter string
LoadBalancer datacenter. Falkenberg, Stockholm
Iplists []string
IPs set on the LoadBalancer.
LoadbalancerId string
The ID of this resource.
Name string
LoadBalancer name.
blacklists List<String>
DEPRECATED Use blocklist instead.

Deprecated: Deprecated

blocklists List<String>
LoadBalancer blocklist. List of IPs: ["a.b.c.d","x.y.z.w"]
datacenter String
LoadBalancer datacenter. Falkenberg, Stockholm
iplists List<String>
IPs set on the LoadBalancer.
loadbalancerId String
The ID of this resource.
name String
LoadBalancer name.
blacklists string[]
DEPRECATED Use blocklist instead.

Deprecated: Deprecated

blocklists string[]
LoadBalancer blocklist. List of IPs: ["a.b.c.d","x.y.z.w"]
datacenter string
LoadBalancer datacenter. Falkenberg, Stockholm
iplists string[]
IPs set on the LoadBalancer.
loadbalancerId string
The ID of this resource.
name string
LoadBalancer name.
blacklists Sequence[str]
DEPRECATED Use blocklist instead.

Deprecated: Deprecated

blocklists Sequence[str]
LoadBalancer blocklist. List of IPs: ["a.b.c.d","x.y.z.w"]
datacenter str
LoadBalancer datacenter. Falkenberg, Stockholm
iplists Sequence[str]
IPs set on the LoadBalancer.
loadbalancer_id str
The ID of this resource.
name str
LoadBalancer name.
blacklists List<String>
DEPRECATED Use blocklist instead.

Deprecated: Deprecated

blocklists List<String>
LoadBalancer blocklist. List of IPs: ["a.b.c.d","x.y.z.w"]
datacenter String
LoadBalancer datacenter. Falkenberg, Stockholm
iplists List<String>
IPs set on the LoadBalancer.
loadbalancerId String
The ID of this resource.
name String
LoadBalancer name.

Package Details

Repository
glesys glesys/terraform-provider-glesys
License
Notes
This Pulumi package is based on the glesys Terraform Provider.