1. Packages
  2. Scaleway
  3. API Docs
  4. getLbIps
Scaleway v1.14.0 published on Thursday, Jun 6, 2024 by pulumiverse

scaleway.getLbIps

Explore with Pulumi AI

scaleway logo
Scaleway v1.14.0 published on Thursday, Jun 6, 2024 by pulumiverse

    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:

    IpCidrRange string
    The IP CIDR range used as a filter. IPs within a CIDR block like it are listed.
    ProjectId string
    The ID of the project the load-balancer is associated with.
    Zone string
    zone) The zone in which IPs exist.
    IpCidrRange string
    The IP CIDR range used as a filter. IPs within a CIDR block like it are listed.
    ProjectId string
    The ID of the project the load-balancer is associated with.
    Zone string
    zone) The zone in which IPs exist.
    ipCidrRange String
    The IP CIDR range used as a filter. IPs within a CIDR block like it are listed.
    projectId String
    The ID of the project the load-balancer is associated with.
    zone String
    zone) The zone in which IPs exist.
    ipCidrRange string
    The IP CIDR range used as a filter. IPs within a CIDR block like it are listed.
    projectId string
    The ID of the project the load-balancer is associated with.
    zone string
    zone) The zone in which IPs exist.
    ip_cidr_range str
    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.
    ipCidrRange String
    The IP CIDR range used as a filter. IPs within a CIDR block like it are listed.
    projectId 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.GetLbIpsIp>
    List of found IPs
    OrganizationId string
    The organization ID the load-balancer is associated with.
    ProjectId string
    The ID of the project the load-balancer is associated with.
    Zone string
    The zone in which the load-balancer is.
    IpCidrRange string
    Id string
    The provider-assigned unique ID for this managed resource.
    Ips []GetLbIpsIp
    List of found IPs
    OrganizationId string
    The organization ID the load-balancer is associated with.
    ProjectId string
    The ID of the project the load-balancer is associated with.
    Zone string
    The zone in which the load-balancer is.
    IpCidrRange string
    id String
    The provider-assigned unique ID for this managed resource.
    ips List<GetLbIpsIp>
    List of found IPs
    organizationId String
    The organization ID the load-balancer is associated with.
    projectId String
    The ID of the project the load-balancer is associated with.
    zone String
    The zone in which the load-balancer is.
    ipCidrRange String
    id string
    The provider-assigned unique ID for this managed resource.
    ips GetLbIpsIp[]
    List of found IPs
    organizationId string
    The organization ID the load-balancer is associated with.
    projectId string
    The ID of the project the load-balancer is associated with.
    zone string
    The zone in which the load-balancer is.
    ipCidrRange string
    id str
    The provider-assigned unique ID for this managed resource.
    ips Sequence[GetLbIpsIp]
    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_range str
    id String
    The provider-assigned unique ID for this managed resource.
    ips List<Property Map>
    List of found IPs
    organizationId String
    The organization ID the load-balancer is associated with.
    projectId String
    The ID of the project the load-balancer is associated with.
    zone String
    The zone in which the load-balancer is.
    ipCidrRange String

    Supporting Types

    GetLbIpsIp

    Id string
    The associated IP ID.
    IpAddress string
    The IP Address
    LbId string
    The associated load-balancer ID if any
    OrganizationId string
    The organization ID the load-balancer is associated with.
    ProjectId 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.
    IpAddress string
    The IP Address
    LbId string
    The associated load-balancer ID if any
    OrganizationId string
    The organization ID the load-balancer is associated with.
    ProjectId 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.
    ipAddress String
    The IP Address
    lbId String
    The associated load-balancer ID if any
    organizationId String
    The organization ID the load-balancer is associated with.
    projectId 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.
    ipAddress string
    The IP Address
    lbId string
    The associated load-balancer ID if any
    organizationId string
    The organization ID the load-balancer is associated with.
    projectId 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.
    ipAddress String
    The IP Address
    lbId String
    The associated load-balancer ID if any
    organizationId String
    The organization ID the load-balancer is associated with.
    projectId 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.
    scaleway logo
    Scaleway v1.14.0 published on Thursday, Jun 6, 2024 by pulumiverse