1. Packages
  2. Scaleway
  3. API Docs
  4. elasticmetal
  5. getIp
Scaleway v1.37.0 published on Friday, Nov 7, 2025 by pulumiverse

scaleway.elasticmetal.getIp

Start a Neo task
Explain and create a scaleway.elasticmetal.getIp resource
scaleway logo
Scaleway v1.37.0 published on Friday, Nov 7, 2025 by pulumiverse

    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 getIp

    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 getIp(args: GetIpArgs, opts?: InvokeOptions): Promise<GetIpResult>
    function getIpOutput(args: GetIpOutputArgs, opts?: InvokeOptions): Output<GetIpResult>
    def get_ip(flexible_ip_id: Optional[str] = None,
               ip_address: Optional[str] = None,
               project_id: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetIpResult
    def get_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[GetIpResult]
    func LookupIp(ctx *Context, args *LookupIpArgs, opts ...InvokeOption) (*LookupIpResult, error)
    func LookupIpOutput(ctx *Context, args *LookupIpOutputArgs, opts ...InvokeOption) LookupIpResultOutput

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

    public static class GetIp 
    {
        public static Task<GetIpResult> InvokeAsync(GetIpArgs args, InvokeOptions? opts = null)
        public static Output<GetIpResult> Invoke(GetIpInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIpResult> getIp(GetIpArgs args, InvokeOptions options)
    public static Output<GetIpResult> getIp(GetIpArgs args, InvokeOptions options)
    
    fn::invoke:
      function: scaleway:elasticmetal/getIp:getIp
      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.

    getIp 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.37.0 published on Friday, Nov 7, 2025 by pulumiverse
      Meet Neo: Your AI Platform Teammate