Scaleway v1.14.0 published on Thursday, Jun 6, 2024 by pulumiverse
scaleway.getLbIps
Explore with Pulumi AI
Gets information about multiple Load Balancer IPs.
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",
});
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")
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
}
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",
});
});
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());
}
}
variables:
myKey:
fn::invoke:
Function: scaleway:getLbIps
Arguments:
ipCidrRange: 0.0.0.0/0
zone: fr-par-2
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,
project_id: Optional[str] = None,
zone: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetLbIpsResult
def get_lb_ips_output(ip_cidr_range: Optional[pulumi.Input[str]] = None,
project_id: Optional[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 used as a filter. IPs within a CIDR block like it are listed.
- Project
Id string - The ID of the project the load-balancer is associated with.
- Zone string
zone
) The zone in which IPs exist.
- Ip
Cidr stringRange - The IP CIDR range used as a filter. IPs within a CIDR block like it are listed.
- Project
Id string - The ID of the project the load-balancer is associated with.
- Zone string
zone
) The zone in which IPs exist.
- ip
Cidr StringRange - The IP CIDR range used as a filter. IPs within a CIDR block like it are listed.
- project
Id String - The ID of the project the load-balancer is associated with.
- zone String
zone
) The zone in which IPs exist.
- ip
Cidr stringRange - The IP CIDR range used as a filter. IPs within a CIDR block like it are listed.
- project
Id string - The ID of the project the load-balancer is associated with.
- zone string
zone
) The zone in which IPs exist.
- ip_
cidr_ strrange - The IP CIDR range used as a filter. IPs within a CIDR block like it are listed.
- project_
id str - The ID of the project the load-balancer is associated with.
- zone str
zone
) The zone in which IPs exist.
- ip
Cidr StringRange - The IP CIDR range used as a filter. IPs within a CIDR block like it are listed.
- project
Id String - The ID of the project the load-balancer is associated with.
- zone String
zone
) The zone in which 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 found IPs
- Organization
Id string - The organization ID the load-balancer is associated with.
- Project
Id string - The ID of the project the load-balancer is associated with.
- Zone string
- The zone in which the load-balancer is.
- Ip
Cidr stringRange
- Id string
- The provider-assigned unique ID for this managed resource.
- Ips
[]Get
Lb Ips Ip - List of found IPs
- Organization
Id string - The organization ID the load-balancer is associated with.
- Project
Id string - The ID of the project the load-balancer is associated with.
- Zone string
- The zone in which the load-balancer is.
- Ip
Cidr stringRange
- id String
- The provider-assigned unique ID for this managed resource.
- ips
List<Get
Lb Ips Ip> - List of found IPs
- organization
Id String - The organization ID the load-balancer is associated with.
- project
Id String - The ID of the project the load-balancer is associated with.
- zone String
- The zone in which the load-balancer is.
- ip
Cidr StringRange
- id string
- The provider-assigned unique ID for this managed resource.
- ips
Get
Lb Ips Ip[] - List of found IPs
- organization
Id string - The organization ID the load-balancer is associated with.
- project
Id string - The ID of the project the load-balancer is associated with.
- zone string
- The zone in which the load-balancer is.
- ip
Cidr stringRange
- id str
- The provider-assigned unique ID for this managed resource.
- ips
Sequence[Get
Lb Ips Ip] - List of found IPs
- organization_
id str - The organization ID the load-balancer is associated with.
- project_
id str - The ID of the project the load-balancer is associated with.
- zone str
- The zone in which the load-balancer is.
- ip_
cidr_ strrange
- id String
- The provider-assigned unique ID for this managed resource.
- ips List<Property Map>
- List of found IPs
- organization
Id String - The organization ID the load-balancer is associated with.
- project
Id String - The ID of the project the load-balancer is associated with.
- zone String
- The zone in which the load-balancer is.
- ip
Cidr StringRange
Supporting Types
GetLbIpsIp
- Id string
- The associated IP ID.
- Ip
Address string - The IP Address
- Lb
Id string - The associated load-balancer ID if any
- Organization
Id string - The organization ID 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.
- Zone string
zone
) The zone in which IPs exist.
- Id string
- The associated IP ID.
- Ip
Address string - The IP Address
- Lb
Id string - The associated load-balancer ID if any
- Organization
Id string - The organization ID 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.
- Zone string
zone
) The zone in which IPs exist.
- id String
- The associated IP ID.
- ip
Address String - The IP Address
- lb
Id String - The associated load-balancer ID if any
- organization
Id String - The organization ID 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.
- zone String
zone
) The zone in which IPs exist.
- id string
- The associated IP ID.
- ip
Address string - The IP Address
- lb
Id string - The associated load-balancer ID if any
- organization
Id string - The organization ID 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.
- zone string
zone
) The zone in which IPs exist.
- id str
- The associated IP ID.
- ip_
address str - The IP Address
- lb_
id str - The associated load-balancer ID if any
- organization_
id str - The organization ID 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.
- zone str
zone
) The zone in which IPs exist.
- id String
- The associated IP ID.
- ip
Address String - The IP Address
- lb
Id String - The associated load-balancer ID if any
- organization
Id String - The organization ID 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.
- zone String
zone
) The zone in which IPs exist.
Package Details
- Repository
- scaleway pulumiverse/pulumi-scaleway
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scaleway
Terraform Provider.