1. Packages
  2. Scaleway
  3. API Docs
  4. getLbIps
Scaleway v1.15.0 published on Tuesday, Jul 30, 2024 by pulumiverse

scaleway.getLbIps

Explore with Pulumi AI

scaleway logo
Scaleway v1.15.0 published on Tuesday, Jul 30, 2024 by pulumiverse

    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:

    IpCidrRange string
    The IP CIDR range to filter for. IPs within a matching CIDR block are listed.
    IpType string
    The IP type used as a filter.
    ProjectId string
    The ID of the Project the Load Balancer is associated with.
    Tags 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.
    IpCidrRange string
    The IP CIDR range to filter for. IPs within a matching CIDR block are listed.
    IpType string
    The IP type used as a filter.
    ProjectId string
    The ID of the Project the Load Balancer is associated with.
    Tags []string
    List of tags used as filter. IPs with these exact tags are listed.
    Zone string
    zone) The zone in which the IPs exist.
    ipCidrRange String
    The IP CIDR range to filter for. IPs within a matching CIDR block are listed.
    ipType String
    The IP type used as a filter.
    projectId String
    The ID of the Project the Load Balancer is associated with.
    tags 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.
    ipCidrRange string
    The IP CIDR range to filter for. IPs within a matching CIDR block are listed.
    ipType string
    The IP type used as a filter.
    projectId string
    The ID of the Project the Load Balancer is associated with.
    tags 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_range str
    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.
    tags 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.
    ipCidrRange String
    The IP CIDR range to filter for. IPs within a matching CIDR block are listed.
    ipType String
    The IP type used as a filter.
    projectId String
    The ID of the Project the Load Balancer is associated with.
    tags 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.GetLbIpsIp>
    List of retrieved IPs
    OrganizationId string
    The ID of the Organization the Load Balancer is associated with.
    ProjectId string
    The ID of the Project the Load Balancer is associated with.
    Zone string
    The zone of the Load Balancer.
    IpCidrRange string
    IpType string
    Tags List<string>
    Id string
    The provider-assigned unique ID for this managed resource.
    Ips []GetLbIpsIp
    List of retrieved IPs
    OrganizationId string
    The ID of the Organization the Load Balancer is associated with.
    ProjectId string
    The ID of the Project the Load Balancer is associated with.
    Zone string
    The zone of the Load Balancer.
    IpCidrRange string
    IpType string
    Tags []string
    id String
    The provider-assigned unique ID for this managed resource.
    ips List<GetLbIpsIp>
    List of retrieved IPs
    organizationId String
    The ID of the Organization the Load Balancer is associated with.
    projectId String
    The ID of the Project the Load Balancer is associated with.
    zone String
    The zone of the Load Balancer.
    ipCidrRange String
    ipType String
    tags List<String>
    id string
    The provider-assigned unique ID for this managed resource.
    ips GetLbIpsIp[]
    List of retrieved IPs
    organizationId string
    The ID of the Organization the Load Balancer is associated with.
    projectId string
    The ID of the Project the Load Balancer is associated with.
    zone string
    The zone of the Load Balancer.
    ipCidrRange string
    ipType string
    tags string[]
    id str
    The provider-assigned unique ID for this managed resource.
    ips Sequence[GetLbIpsIp]
    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_range str
    ip_type str
    tags Sequence[str]
    id String
    The provider-assigned unique ID for this managed resource.
    ips List<Property Map>
    List of retrieved IPs
    organizationId String
    The ID of the Organization the Load Balancer is associated with.
    projectId String
    The ID of the Project the Load Balancer is associated with.
    zone String
    The zone of the Load Balancer.
    ipCidrRange String
    ipType String
    tags List<String>

    Supporting Types

    GetLbIpsIp

    Id string
    The ID of the associated IP.
    IpAddress string
    The IP address
    LbId string
    The ID of the associated Load BalancerD, if any
    OrganizationId string
    The ID of the Organization 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.
    Tags 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.
    IpAddress string
    The IP address
    LbId string
    The ID of the associated Load BalancerD, if any
    OrganizationId string
    The ID of the Organization 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.
    Tags []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.
    ipAddress String
    The IP address
    lbId String
    The ID of the associated Load BalancerD, if any
    organizationId String
    The ID of the Organization 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.
    tags 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.
    ipAddress string
    The IP address
    lbId string
    The ID of the associated Load BalancerD, if any
    organizationId string
    The ID of the Organization 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.
    tags 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.
    tags 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.
    ipAddress String
    The IP address
    lbId String
    The ID of the associated Load BalancerD, if any
    organizationId String
    The ID of the Organization 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.
    tags 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.
    scaleway logo
    Scaleway v1.15.0 published on Tuesday, Jul 30, 2024 by pulumiverse