Scaleway v1.15.0 published on Tuesday, Jul 30, 2024 by pulumiverse
scaleway.getLbIps
Explore with Pulumi AI
Gets information about multiple Load Balancer IP addresses.
For more information, see the main documentation or API documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumi/scaleway";
const myKey = scaleway.getLbIps({
ipCidrRange: "0.0.0.0/0",
zone: "fr-par-2",
});
const ipsByTagsAndType = scaleway.getLbIps({
ipType: "ipv4",
tags: ["a tag"],
});
import pulumi
import pulumi_scaleway as scaleway
my_key = scaleway.get_lb_ips(ip_cidr_range="0.0.0.0/0",
zone="fr-par-2")
ips_by_tags_and_type = scaleway.get_lb_ips(ip_type="ipv4",
tags=["a tag"])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := scaleway.GetLbIps(ctx, &scaleway.GetLbIpsArgs{
IpCidrRange: pulumi.StringRef("0.0.0.0/0"),
Zone: pulumi.StringRef("fr-par-2"),
}, nil)
if err != nil {
return err
}
_, err = scaleway.GetLbIps(ctx, &scaleway.GetLbIpsArgs{
IpType: pulumi.StringRef("ipv4"),
Tags: []string{
"a tag",
},
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumi.Scaleway;
return await Deployment.RunAsync(() =>
{
var myKey = Scaleway.GetLbIps.Invoke(new()
{
IpCidrRange = "0.0.0.0/0",
Zone = "fr-par-2",
});
var ipsByTagsAndType = Scaleway.GetLbIps.Invoke(new()
{
IpType = "ipv4",
Tags = new[]
{
"a tag",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.ScalewayFunctions;
import com.pulumi.scaleway.inputs.GetLbIpsArgs;
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) {
final var myKey = ScalewayFunctions.getLbIps(GetLbIpsArgs.builder()
.ipCidrRange("0.0.0.0/0")
.zone("fr-par-2")
.build());
final var ipsByTagsAndType = ScalewayFunctions.getLbIps(GetLbIpsArgs.builder()
.ipType("ipv4")
.tags("a tag")
.build());
}
}
variables:
myKey:
fn::invoke:
Function: scaleway:getLbIps
Arguments:
ipCidrRange: 0.0.0.0/0
zone: fr-par-2
ipsByTagsAndType:
fn::invoke:
Function: scaleway:getLbIps
Arguments:
ipType: ipv4
tags:
- a tag
Using getLbIps
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 getLbIps(args: GetLbIpsArgs, opts?: InvokeOptions): Promise<GetLbIpsResult>
function getLbIpsOutput(args: GetLbIpsOutputArgs, opts?: InvokeOptions): Output<GetLbIpsResult>
def get_lb_ips(ip_cidr_range: Optional[str] = None,
ip_type: Optional[str] = None,
project_id: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
zone: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetLbIpsResult
def get_lb_ips_output(ip_cidr_range: Optional[pulumi.Input[str]] = None,
ip_type: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
zone: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetLbIpsResult]
func GetLbIps(ctx *Context, args *GetLbIpsArgs, opts ...InvokeOption) (*GetLbIpsResult, error)
func GetLbIpsOutput(ctx *Context, args *GetLbIpsOutputArgs, opts ...InvokeOption) GetLbIpsResultOutput
> Note: This function is named GetLbIps
in the Go SDK.
public static class GetLbIps
{
public static Task<GetLbIpsResult> InvokeAsync(GetLbIpsArgs args, InvokeOptions? opts = null)
public static Output<GetLbIpsResult> Invoke(GetLbIpsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetLbIpsResult> getLbIps(GetLbIpsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: scaleway:index/getLbIps:getLbIps
arguments:
# arguments dictionary
The following arguments are supported:
- Ip
Cidr stringRange - The IP CIDR range to filter for. IPs within a matching CIDR block are listed.
- Ip
Type string - The IP type used as a filter.
- Project
Id string - The ID of the Project the Load Balancer is associated with.
- List<string>
- List of tags used as filter. IPs with these exact tags are listed.
- Zone string
zone
) The zone in which the IPs exist.
- Ip
Cidr stringRange - The IP CIDR range to filter for. IPs within a matching CIDR block are listed.
- Ip
Type string - The IP type used as a filter.
- Project
Id string - The ID of the Project the Load Balancer is associated with.
- []string
- List of tags used as filter. IPs with these exact tags are listed.
- Zone string
zone
) The zone in which the IPs exist.
- ip
Cidr StringRange - The IP CIDR range to filter for. IPs within a matching CIDR block are listed.
- ip
Type String - The IP type used as a filter.
- project
Id String - The ID of the Project the Load Balancer is associated with.
- List<String>
- List of tags used as filter. IPs with these exact tags are listed.
- zone String
zone
) The zone in which the IPs exist.
- ip
Cidr stringRange - The IP CIDR range to filter for. IPs within a matching CIDR block are listed.
- ip
Type string - The IP type used as a filter.
- project
Id string - The ID of the Project the Load Balancer is associated with.
- string[]
- List of tags used as filter. IPs with these exact tags are listed.
- zone string
zone
) The zone in which the IPs exist.
- ip_
cidr_ strrange - The IP CIDR range to filter for. IPs within a matching CIDR block are listed.
- ip_
type str - The IP type used as a filter.
- project_
id str - The ID of the Project the Load Balancer is associated with.
- Sequence[str]
- List of tags used as filter. IPs with these exact tags are listed.
- zone str
zone
) The zone in which the IPs exist.
- ip
Cidr StringRange - The IP CIDR range to filter for. IPs within a matching CIDR block are listed.
- ip
Type String - The IP type used as a filter.
- project
Id String - The ID of the Project the Load Balancer is associated with.
- List<String>
- List of tags used as filter. IPs with these exact tags are listed.
- zone String
zone
) The zone in which the IPs exist.
getLbIps Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ips
List<Pulumiverse.
Scaleway. Outputs. Get Lb Ips Ip> - List of retrieved IPs
- Organization
Id string - The ID of the Organization the Load Balancer is associated with.
- Project
Id string - The ID of the Project the Load Balancer is associated with.
- Zone string
- The zone of the Load Balancer.
- Ip
Cidr stringRange - Ip
Type string - List<string>
- Id string
- The provider-assigned unique ID for this managed resource.
- Ips
[]Get
Lb Ips Ip - List of retrieved IPs
- Organization
Id string - The ID of the Organization the Load Balancer is associated with.
- Project
Id string - The ID of the Project the Load Balancer is associated with.
- Zone string
- The zone of the Load Balancer.
- Ip
Cidr stringRange - Ip
Type string - []string
- id String
- The provider-assigned unique ID for this managed resource.
- ips
List<Get
Lb Ips Ip> - List of retrieved IPs
- organization
Id String - The ID of the Organization the Load Balancer is associated with.
- project
Id String - The ID of the Project the Load Balancer is associated with.
- zone String
- The zone of the Load Balancer.
- ip
Cidr StringRange - ip
Type String - List<String>
- id string
- The provider-assigned unique ID for this managed resource.
- ips
Get
Lb Ips Ip[] - List of retrieved IPs
- organization
Id string - The ID of the Organization the Load Balancer is associated with.
- project
Id string - The ID of the Project the Load Balancer is associated with.
- zone string
- The zone of the Load Balancer.
- ip
Cidr stringRange - ip
Type string - string[]
- id str
- The provider-assigned unique ID for this managed resource.
- ips
Sequence[Get
Lb Ips Ip] - List of retrieved IPs
- organization_
id str - The ID of the Organization the Load Balancer is associated with.
- project_
id str - The ID of the Project the Load Balancer is associated with.
- zone str
- The zone of the Load Balancer.
- ip_
cidr_ strrange - ip_
type str - Sequence[str]
- id String
- The provider-assigned unique ID for this managed resource.
- ips List<Property Map>
- List of retrieved IPs
- organization
Id String - The ID of the Organization the Load Balancer is associated with.
- project
Id String - The ID of the Project the Load Balancer is associated with.
- zone String
- The zone of the Load Balancer.
- ip
Cidr StringRange - ip
Type String - List<String>
Supporting Types
GetLbIpsIp
- Id string
- The ID of the associated IP.
- Ip
Address string - The IP address
- Lb
Id string - The ID of the associated Load BalancerD, if any
- Organization
Id string - The ID of the Organization the Load Balancer is associated with.
- Project
Id string - The ID of the Project the Load Balancer is associated with.
- Reverse string
- The reverse domain associated with this IP.
- List<string>
- List of tags used as filter. IPs with these exact tags are listed.
- Zone string
zone
) The zone in which the IPs exist.
- Id string
- The ID of the associated IP.
- Ip
Address string - The IP address
- Lb
Id string - The ID of the associated Load BalancerD, if any
- Organization
Id string - The ID of the Organization the Load Balancer is associated with.
- Project
Id string - The ID of the Project the Load Balancer is associated with.
- Reverse string
- The reverse domain associated with this IP.
- []string
- List of tags used as filter. IPs with these exact tags are listed.
- Zone string
zone
) The zone in which the IPs exist.
- id String
- The ID of the associated IP.
- ip
Address String - The IP address
- lb
Id String - The ID of the associated Load BalancerD, if any
- organization
Id String - The ID of the Organization the Load Balancer is associated with.
- project
Id String - The ID of the Project the Load Balancer is associated with.
- reverse String
- The reverse domain associated with this IP.
- List<String>
- List of tags used as filter. IPs with these exact tags are listed.
- zone String
zone
) The zone in which the IPs exist.
- id string
- The ID of the associated IP.
- ip
Address string - The IP address
- lb
Id string - The ID of the associated Load BalancerD, if any
- organization
Id string - The ID of the Organization the Load Balancer is associated with.
- project
Id string - The ID of the Project the Load Balancer is associated with.
- reverse string
- The reverse domain associated with this IP.
- string[]
- List of tags used as filter. IPs with these exact tags are listed.
- zone string
zone
) The zone in which the IPs exist.
- id str
- The ID of the associated IP.
- ip_
address str - The IP address
- lb_
id str - The ID of the associated Load BalancerD, if any
- organization_
id str - The ID of the Organization the Load Balancer is associated with.
- project_
id str - The ID of the Project the Load Balancer is associated with.
- reverse str
- The reverse domain associated with this IP.
- Sequence[str]
- List of tags used as filter. IPs with these exact tags are listed.
- zone str
zone
) The zone in which the IPs exist.
- id String
- The ID of the associated IP.
- ip
Address String - The IP address
- lb
Id String - The ID of the associated Load BalancerD, if any
- organization
Id String - The ID of the Organization the Load Balancer is associated with.
- project
Id String - The ID of the Project the Load Balancer is associated with.
- reverse String
- The reverse domain associated with this IP.
- List<String>
- List of tags used as filter. IPs with these exact tags are listed.
- zone String
zone
) The zone in which the IPs exist.
Package Details
- Repository
- scaleway pulumiverse/pulumi-scaleway
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scaleway
Terraform Provider.