1. Packages
  2. Scaleway
  3. API Docs
  4. getLoadbalancerIp
Scaleway v1.11.0 published on Sunday, Oct 29, 2023 by lbrlabs

scaleway.getLoadbalancerIp

Explore with Pulumi AI

scaleway logo
Scaleway v1.11.0 published on Sunday, Oct 29, 2023 by lbrlabs

    Gets information about a Load Balancer IP.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumi.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var myIp = Scaleway.GetLoadbalancerIp.Invoke(new()
        {
            IpId = "11111111-1111-1111-1111-111111111111",
        });
    
    });
    
    package main
    
    import (
    	"github.com/lbrlabs/pulumi-scaleway/sdk/go/scaleway"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := scaleway.LookupLoadbalancerIp(ctx, &scaleway.LookupLoadbalancerIpArgs{
    			IpId: pulumi.StringRef("11111111-1111-1111-1111-111111111111"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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.GetLoadbalancerIpArgs;
    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 myIp = ScalewayFunctions.getLoadbalancerIp(GetLoadbalancerIpArgs.builder()
                .ipId("11111111-1111-1111-1111-111111111111")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_scaleway as scaleway
    
    my_ip = scaleway.get_loadbalancer_ip(ip_id="11111111-1111-1111-1111-111111111111")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumi/scaleway";
    
    const myIp = scaleway.getLoadbalancerIp({
        ipId: "11111111-1111-1111-1111-111111111111",
    });
    
    variables:
      myIp:
        fn::invoke:
          Function: scaleway:getLoadbalancerIp
          Arguments:
            ipId: 11111111-1111-1111-1111-111111111111
    

    Using getLoadbalancerIp

    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 getLoadbalancerIp(args: GetLoadbalancerIpArgs, opts?: InvokeOptions): Promise<GetLoadbalancerIpResult>
    function getLoadbalancerIpOutput(args: GetLoadbalancerIpOutputArgs, opts?: InvokeOptions): Output<GetLoadbalancerIpResult>
    def get_loadbalancer_ip(ip_address: Optional[str] = None,
                            ip_id: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetLoadbalancerIpResult
    def get_loadbalancer_ip_output(ip_address: Optional[pulumi.Input[str]] = None,
                            ip_id: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetLoadbalancerIpResult]
    func LookupLoadbalancerIp(ctx *Context, args *LookupLoadbalancerIpArgs, opts ...InvokeOption) (*LookupLoadbalancerIpResult, error)
    func LookupLoadbalancerIpOutput(ctx *Context, args *LookupLoadbalancerIpOutputArgs, opts ...InvokeOption) LookupLoadbalancerIpResultOutput

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

    public static class GetLoadbalancerIp 
    {
        public static Task<GetLoadbalancerIpResult> InvokeAsync(GetLoadbalancerIpArgs args, InvokeOptions? opts = null)
        public static Output<GetLoadbalancerIpResult> Invoke(GetLoadbalancerIpInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLoadbalancerIpResult> getLoadbalancerIp(GetLoadbalancerIpArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: scaleway:index/getLoadbalancerIp:getLoadbalancerIp
      arguments:
        # arguments dictionary

    The following arguments are supported:

    IpAddress string
    The IP address. Only one of ip_address and ip_id should be specified.
    IpId string
    The IP ID. Only one of ip_address and ip_id should be specified.
    IpAddress string
    The IP address. Only one of ip_address and ip_id should be specified.
    IpId string
    The IP ID. Only one of ip_address and ip_id should be specified.
    ipAddress String
    The IP address. Only one of ip_address and ip_id should be specified.
    ipId String
    The IP ID. Only one of ip_address and ip_id should be specified.
    ipAddress string
    The IP address. Only one of ip_address and ip_id should be specified.
    ipId string
    The IP ID. Only one of ip_address and ip_id should be specified.
    ip_address str
    The IP address. Only one of ip_address and ip_id should be specified.
    ip_id str
    The IP ID. Only one of ip_address and ip_id should be specified.
    ipAddress String
    The IP address. Only one of ip_address and ip_id should be specified.
    ipId String
    The IP ID. Only one of ip_address and ip_id should be specified.

    getLoadbalancerIp Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    LbId string
    The associated load-balancer ID if any
    OrganizationId string
    (Defaults to provider organization_id) The ID of the organization the LB IP is associated with.
    ProjectId string
    Region string
    Reverse string
    The reverse domain associated with this IP.
    Zone string
    IpAddress string
    IpId string
    Id string
    The provider-assigned unique ID for this managed resource.
    LbId string
    The associated load-balancer ID if any
    OrganizationId string
    (Defaults to provider organization_id) The ID of the organization the LB IP is associated with.
    ProjectId string
    Region string
    Reverse string
    The reverse domain associated with this IP.
    Zone string
    IpAddress string
    IpId string
    id String
    The provider-assigned unique ID for this managed resource.
    lbId String
    The associated load-balancer ID if any
    organizationId String
    (Defaults to provider organization_id) The ID of the organization the LB IP is associated with.
    projectId String
    region String
    reverse String
    The reverse domain associated with this IP.
    zone String
    ipAddress String
    ipId String
    id string
    The provider-assigned unique ID for this managed resource.
    lbId string
    The associated load-balancer ID if any
    organizationId string
    (Defaults to provider organization_id) The ID of the organization the LB IP is associated with.
    projectId string
    region string
    reverse string
    The reverse domain associated with this IP.
    zone string
    ipAddress string
    ipId string
    id str
    The provider-assigned unique ID for this managed resource.
    lb_id str
    The associated load-balancer ID if any
    organization_id str
    (Defaults to provider organization_id) The ID of the organization the LB IP is associated with.
    project_id str
    region str
    reverse str
    The reverse domain associated with this IP.
    zone str
    ip_address str
    ip_id str
    id String
    The provider-assigned unique ID for this managed resource.
    lbId String
    The associated load-balancer ID if any
    organizationId String
    (Defaults to provider organization_id) The ID of the organization the LB IP is associated with.
    projectId String
    region String
    reverse String
    The reverse domain associated with this IP.
    zone String
    ipAddress String
    ipId String

    Package Details

    Repository
    scaleway lbrlabs/pulumi-scaleway
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scaleway Terraform Provider.
    scaleway logo
    Scaleway v1.11.0 published on Sunday, Oct 29, 2023 by lbrlabs