1. Packages
  2. Scaleway
  3. API Docs
  4. getFlexibleIp
Scaleway v1.33.0 published on Tuesday, Aug 12, 2025 by pulumiverse

scaleway.getFlexibleIp

Explore with Pulumi AI

scaleway logo
Scaleway v1.33.0 published on Tuesday, Aug 12, 2025 by pulumiverse
    Deprecated: scaleway.index/getflexibleip.getFlexibleIp has been deprecated in favor of scaleway.elasticmetal/getip.getIp

    Gets information about a Flexible IP.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    // Get info by IP address
    const withIp = scaleway.elasticmetal.getIp({
        ipAddress: "1.2.3.4",
    });
    // Get info by IP ID
    const withId = scaleway.elasticmetal.getIp({
        flexibleIpId: "11111111-1111-1111-1111-111111111111",
    });
    
    import pulumi
    import pulumi_scaleway as scaleway
    
    # Get info by IP address
    with_ip = scaleway.elasticmetal.get_ip(ip_address="1.2.3.4")
    # Get info by IP ID
    with_id = scaleway.elasticmetal.get_ip(flexible_ip_id="11111111-1111-1111-1111-111111111111")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/elasticmetal"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Get info by IP address
    		_, err := elasticmetal.LookupIp(ctx, &elasticmetal.LookupIpArgs{
    			IpAddress: pulumi.StringRef("1.2.3.4"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		// Get info by IP ID
    		_, err = elasticmetal.LookupIp(ctx, &elasticmetal.LookupIpArgs{
    			FlexibleIpId: pulumi.StringRef("11111111-1111-1111-1111-111111111111"),
    		}, 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(() => 
    {
        // Get info by IP address
        var withIp = Scaleway.Elasticmetal.GetIp.Invoke(new()
        {
            IpAddress = "1.2.3.4",
        });
    
        // Get info by IP ID
        var withId = Scaleway.Elasticmetal.GetIp.Invoke(new()
        {
            FlexibleIpId = "11111111-1111-1111-1111-111111111111",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.elasticmetal.ElasticmetalFunctions;
    import com.pulumi.scaleway.elasticmetal.inputs.GetIpArgs;
    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) {
            // Get info by IP address
            final var withIp = ElasticmetalFunctions.getIp(GetIpArgs.builder()
                .ipAddress("1.2.3.4")
                .build());
    
            // Get info by IP ID
            final var withId = ElasticmetalFunctions.getIp(GetIpArgs.builder()
                .flexibleIpId("11111111-1111-1111-1111-111111111111")
                .build());
    
        }
    }
    
    variables:
      # Get info by IP address
      withIp:
        fn::invoke:
          function: scaleway:elasticmetal:getIp
          arguments:
            ipAddress: 1.2.3.4
      # Get info by IP ID
      withId:
        fn::invoke:
          function: scaleway:elasticmetal:getIp
          arguments:
            flexibleIpId: 11111111-1111-1111-1111-111111111111
    

    Using getFlexibleIp

    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 getFlexibleIp(args: GetFlexibleIpArgs, opts?: InvokeOptions): Promise<GetFlexibleIpResult>
    function getFlexibleIpOutput(args: GetFlexibleIpOutputArgs, opts?: InvokeOptions): Output<GetFlexibleIpResult>
    def get_flexible_ip(flexible_ip_id: Optional[str] = None,
                        ip_address: Optional[str] = None,
                        project_id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetFlexibleIpResult
    def get_flexible_ip_output(flexible_ip_id: Optional[pulumi.Input[str]] = None,
                        ip_address: Optional[pulumi.Input[str]] = None,
                        project_id: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetFlexibleIpResult]
    func LookupFlexibleIp(ctx *Context, args *LookupFlexibleIpArgs, opts ...InvokeOption) (*LookupFlexibleIpResult, error)
    func LookupFlexibleIpOutput(ctx *Context, args *LookupFlexibleIpOutputArgs, opts ...InvokeOption) LookupFlexibleIpResultOutput

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

    public static class GetFlexibleIp 
    {
        public static Task<GetFlexibleIpResult> InvokeAsync(GetFlexibleIpArgs args, InvokeOptions? opts = null)
        public static Output<GetFlexibleIpResult> Invoke(GetFlexibleIpInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetFlexibleIpResult> getFlexibleIp(GetFlexibleIpArgs args, InvokeOptions options)
    public static Output<GetFlexibleIpResult> getFlexibleIp(GetFlexibleIpArgs args, InvokeOptions options)
    
    fn::invoke:
      function: scaleway:index/getFlexibleIp:getFlexibleIp
      arguments:
        # arguments dictionary

    The following arguments are supported:

    FlexibleIpId string
    The IP ID. Only one of ip_address and flexible_ip_id should be specified.
    IpAddress string
    The IP address. Only one of ip_address and flexible_ip_id should be specified.
    ProjectId string
    project_id) The ID of the Project the Flexible IP is associated with.
    FlexibleIpId string
    The IP ID. Only one of ip_address and flexible_ip_id should be specified.
    IpAddress string
    The IP address. Only one of ip_address and flexible_ip_id should be specified.
    ProjectId string
    project_id) The ID of the Project the Flexible IP is associated with.
    flexibleIpId String
    The IP ID. Only one of ip_address and flexible_ip_id should be specified.
    ipAddress String
    The IP address. Only one of ip_address and flexible_ip_id should be specified.
    projectId String
    project_id) The ID of the Project the Flexible IP is associated with.
    flexibleIpId string
    The IP ID. Only one of ip_address and flexible_ip_id should be specified.
    ipAddress string
    The IP address. Only one of ip_address and flexible_ip_id should be specified.
    projectId string
    project_id) The ID of the Project the Flexible IP is associated with.
    flexible_ip_id str
    The IP ID. Only one of ip_address and flexible_ip_id should be specified.
    ip_address str
    The IP address. Only one of ip_address and flexible_ip_id should be specified.
    project_id str
    project_id) The ID of the Project the Flexible IP is associated with.
    flexibleIpId String
    The IP ID. Only one of ip_address and flexible_ip_id should be specified.
    ipAddress String
    The IP address. Only one of ip_address and flexible_ip_id should be specified.
    projectId String
    project_id) The ID of the Project the Flexible IP is associated with.

    getFlexibleIp Result

    The following output properties are available:

    CreatedAt string
    Description string
    Id string
    The provider-assigned unique ID for this managed resource.
    IsIpv6 bool
    OrganizationId string
    ProjectId string
    Reverse string
    ServerId string
    Status string
    Tags List<string>
    UpdatedAt string
    Zone string
    FlexibleIpId string
    IpAddress string
    CreatedAt string
    Description string
    Id string
    The provider-assigned unique ID for this managed resource.
    IsIpv6 bool
    OrganizationId string
    ProjectId string
    Reverse string
    ServerId string
    Status string
    Tags []string
    UpdatedAt string
    Zone string
    FlexibleIpId string
    IpAddress string
    createdAt String
    description String
    id String
    The provider-assigned unique ID for this managed resource.
    isIpv6 Boolean
    organizationId String
    projectId String
    reverse String
    serverId String
    status String
    tags List<String>
    updatedAt String
    zone String
    flexibleIpId String
    ipAddress String
    createdAt string
    description string
    id string
    The provider-assigned unique ID for this managed resource.
    isIpv6 boolean
    organizationId string
    projectId string
    reverse string
    serverId string
    status string
    tags string[]
    updatedAt string
    zone string
    flexibleIpId string
    ipAddress string
    created_at str
    description str
    id str
    The provider-assigned unique ID for this managed resource.
    is_ipv6 bool
    organization_id str
    project_id str
    reverse str
    server_id str
    status str
    tags Sequence[str]
    updated_at str
    zone str
    flexible_ip_id str
    ip_address str
    createdAt String
    description String
    id String
    The provider-assigned unique ID for this managed resource.
    isIpv6 Boolean
    organizationId String
    projectId String
    reverse String
    serverId String
    status String
    tags List<String>
    updatedAt String
    zone String
    flexibleIpId String
    ipAddress String

    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.33.0 published on Tuesday, Aug 12, 2025 by pulumiverse