Scaleway

Community
Package contributed by a community member
v0.2.1 published on Friday, Feb 25, 2022 by Lee Briggs

getLoadbalancer

Gets information about a Load Balancer.

Example Usage

using Pulumi;
using Scaleway = Pulumi.Scaleway;

class MyStack : Stack
{
    public MyStack()
    {
        var byName = Output.Create(Scaleway.GetLoadbalancer.InvokeAsync(new Scaleway.GetLoadbalancerArgs
        {
            Name = "foobar",
        }));
        var byId = Output.Create(Scaleway.GetLoadbalancer.InvokeAsync(new Scaleway.GetLoadbalancerArgs
        {
            LbId = "11111111-1111-1111-1111-111111111111",
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-scaleway/sdk/go/scaleway"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := scaleway.LookupLoadbalancer(ctx, &GetLoadbalancerArgs{
			Name: pulumi.StringRef("foobar"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = scaleway.LookupLoadbalancer(ctx, &GetLoadbalancerArgs{
			LbId: pulumi.StringRef("11111111-1111-1111-1111-111111111111"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_scaleway as scaleway

by_name = scaleway.get_loadbalancer(name="foobar")
by_id = scaleway.get_loadbalancer(lb_id="11111111-1111-1111-1111-111111111111")
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumi/scaleway";

// Get info by name
const byName = pulumi.output(scaleway.getLoadbalancer({
    name: "foobar",
}));
// Get info by ID
const byId = pulumi.output(scaleway.getLoadbalancer({
    lbId: "11111111-1111-1111-1111-111111111111",
}));

Coming soon!

Using getLoadbalancer

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getLoadbalancer(args: GetLoadbalancerArgs, opts?: InvokeOptions): Promise<GetLoadbalancerResult>
function getLoadbalancerOutput(args: GetLoadbalancerOutputArgs, opts?: InvokeOptions): Output<GetLoadbalancerResult>
def get_loadbalancer(lb_id: Optional[str] = None,
                     name: Optional[str] = None,
                     release_ip: Optional[bool] = None,
                     zone: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetLoadbalancerResult
def get_loadbalancer_output(lb_id: Optional[pulumi.Input[str]] = None,
                     name: Optional[pulumi.Input[str]] = None,
                     release_ip: Optional[pulumi.Input[bool]] = None,
                     zone: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetLoadbalancerResult]
func LookupLoadbalancer(ctx *Context, args *LookupLoadbalancerArgs, opts ...InvokeOption) (*LookupLoadbalancerResult, error)
func LookupLoadbalancerOutput(ctx *Context, args *LookupLoadbalancerOutputArgs, opts ...InvokeOption) LookupLoadbalancerResultOutput

> Note: This function is named LookupLoadbalancer in the Go SDK.

public static class GetLoadbalancer 
{
    public static Task<GetLoadbalancerResult> InvokeAsync(GetLoadbalancerArgs args, InvokeOptions? opts = null)
    public static Output<GetLoadbalancerResult> Invoke(GetLoadbalancerInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetLoadbalancerResult> getLoadbalancer(GetLoadbalancerArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: scaleway:index/getLoadbalancer:getLoadbalancer
  Arguments:
    # Arguments dictionary

The following arguments are supported:

LbId string

The ID. Only one of ip_address and lb_id should be specified.

Name string

The IP address. Only one of name and lb_id should be specified.

ReleaseIp bool
Zone string

region) The region in which the LB exists.

LbId string

The ID. Only one of ip_address and lb_id should be specified.

Name string

The IP address. Only one of name and lb_id should be specified.

ReleaseIp bool
Zone string

region) The region in which the LB exists.

lbId String

The ID. Only one of ip_address and lb_id should be specified.

name String

The IP address. Only one of name and lb_id should be specified.

releaseIp Boolean
zone String

region) The region in which the LB exists.

lbId string

The ID. Only one of ip_address and lb_id should be specified.

name string

The IP address. Only one of name and lb_id should be specified.

releaseIp boolean
zone string

region) The region in which the LB exists.

lb_id str

The ID. Only one of ip_address and lb_id should be specified.

name str

The IP address. Only one of name and lb_id should be specified.

release_ip bool
zone str

region) The region in which the LB exists.

lbId String

The ID. Only one of ip_address and lb_id should be specified.

name String

The IP address. Only one of name and lb_id should be specified.

releaseIp Boolean
zone String

region) The region in which the LB exists.

getLoadbalancer Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

IpAddress string

The load-balancer public IP Address

IpId string
OrganizationId string

The organization ID the load-balancer is associated with.

PrivateNetworks List<GetLoadbalancerPrivateNetwork>
ProjectId string
Region string
Tags List<string>

(Optional) The tags associated with the load-balancers.

Type string

(Required) The type of the load-balancer.

LbId string
Name string
ReleaseIp bool
Zone string
Id string

The provider-assigned unique ID for this managed resource.

IpAddress string

The load-balancer public IP Address

IpId string
OrganizationId string

The organization ID the load-balancer is associated with.

PrivateNetworks []GetLoadbalancerPrivateNetwork
ProjectId string
Region string
Tags []string

(Optional) The tags associated with the load-balancers.

Type string

(Required) The type of the load-balancer.

LbId string
Name string
ReleaseIp bool
Zone string
id String

The provider-assigned unique ID for this managed resource.

ipAddress String

The load-balancer public IP Address

ipId String
organizationId String

The organization ID the load-balancer is associated with.

privateNetworks ListLoadbalancerPrivateNetwork>
projectId String
region String
tags List

(Optional) The tags associated with the load-balancers.

type String

(Required) The type of the load-balancer.

lbId String
name String
releaseIp Boolean
zone String
id string

The provider-assigned unique ID for this managed resource.

ipAddress string

The load-balancer public IP Address

ipId string
organizationId string

The organization ID the load-balancer is associated with.

privateNetworks GetLoadbalancerPrivateNetwork[]
projectId string
region string
tags string[]

(Optional) The tags associated with the load-balancers.

type string

(Required) The type of the load-balancer.

lbId string
name string
releaseIp boolean
zone string
id str

The provider-assigned unique ID for this managed resource.

ip_address str

The load-balancer public IP Address

ip_id str
organization_id str

The organization ID the load-balancer is associated with.

private_networks Sequence[GetLoadbalancerPrivateNetwork]
project_id str
region str
tags Sequence[str]

(Optional) The tags associated with the load-balancers.

type str

(Required) The type of the load-balancer.

lb_id str
name str
release_ip bool
zone str
id String

The provider-assigned unique ID for this managed resource.

ipAddress String

The load-balancer public IP Address

ipId String
organizationId String

The organization ID the load-balancer is associated with.

privateNetworks List
projectId String
region String
tags List

(Optional) The tags associated with the load-balancers.

type String

(Required) The type of the load-balancer.

lbId String
name String
releaseIp Boolean
zone String

Supporting Types

GetLoadbalancerPrivateNetwork

DhcpConfig bool
PrivateNetworkId string
StaticConfigs List<string>
Status string
Zone string

region) The region in which the LB exists.

DhcpConfig bool
PrivateNetworkId string
StaticConfigs []string
Status string
Zone string

region) The region in which the LB exists.

dhcpConfig Boolean
privateNetworkId String
staticConfigs List
status String
zone String

region) The region in which the LB exists.

dhcpConfig boolean
privateNetworkId string
staticConfigs string[]
status string
zone string

region) The region in which the LB exists.

dhcp_config bool
private_network_id str
static_configs Sequence[str]
status str
zone str

region) The region in which the LB exists.

dhcpConfig Boolean
privateNetworkId String
staticConfigs List
status String
zone String

region) The region in which the LB exists.

Package Details

Repository
https://github.com/jaxxstorm/pulumi-scaleway
License
Apache-2.0
Notes

This Pulumi package is based on the scaleway Terraform Provider.