Scaleway v1.33.0 published on Tuesday, Aug 12, 2025 by pulumiverse
scaleway.getFlexibleIp
Explore with Pulumi AI
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:
- Flexible
Ip stringId - The IP ID.
Only one of
ip_address
andflexible_ip_id
should be specified. - Ip
Address string - The IP address.
Only one of
ip_address
andflexible_ip_id
should be specified. - Project
Id string project_id
) The ID of the Project the Flexible IP is associated with.
- Flexible
Ip stringId - The IP ID.
Only one of
ip_address
andflexible_ip_id
should be specified. - Ip
Address string - The IP address.
Only one of
ip_address
andflexible_ip_id
should be specified. - Project
Id string project_id
) The ID of the Project the Flexible IP is associated with.
- flexible
Ip StringId - The IP ID.
Only one of
ip_address
andflexible_ip_id
should be specified. - ip
Address String - The IP address.
Only one of
ip_address
andflexible_ip_id
should be specified. - project
Id String project_id
) The ID of the Project the Flexible IP is associated with.
- flexible
Ip stringId - The IP ID.
Only one of
ip_address
andflexible_ip_id
should be specified. - ip
Address string - The IP address.
Only one of
ip_address
andflexible_ip_id
should be specified. - project
Id string project_id
) The ID of the Project the Flexible IP is associated with.
- flexible_
ip_ strid - The IP ID.
Only one of
ip_address
andflexible_ip_id
should be specified. - ip_
address str - The IP address.
Only one of
ip_address
andflexible_ip_id
should be specified. - project_
id str project_id
) The ID of the Project the Flexible IP is associated with.
- flexible
Ip StringId - The IP ID.
Only one of
ip_address
andflexible_ip_id
should be specified. - ip
Address String - The IP address.
Only one of
ip_address
andflexible_ip_id
should be specified. - project
Id String project_id
) The ID of the Project the Flexible IP is associated with.
getFlexibleIp Result
The following output properties are available:
- Created
At string - Description string
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Ipv6 bool - Organization
Id string - Project
Id string - Reverse string
- Server
Id string - Status string
- List<string>
- Updated
At string - Zone string
- Flexible
Ip stringId - Ip
Address string
- Created
At string - Description string
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Ipv6 bool - Organization
Id string - Project
Id string - Reverse string
- Server
Id string - Status string
- []string
- Updated
At string - Zone string
- Flexible
Ip stringId - Ip
Address string
- created
At String - description String
- id String
- The provider-assigned unique ID for this managed resource.
- is
Ipv6 Boolean - organization
Id String - project
Id String - reverse String
- server
Id String - status String
- List<String>
- updated
At String - zone String
- flexible
Ip StringId - ip
Address String
- created
At string - description string
- id string
- The provider-assigned unique ID for this managed resource.
- is
Ipv6 boolean - organization
Id string - project
Id string - reverse string
- server
Id string - status string
- string[]
- updated
At string - zone string
- flexible
Ip stringId - ip
Address 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
- Sequence[str]
- updated_
at str - zone str
- flexible_
ip_ strid - ip_
address str
- created
At String - description String
- id String
- The provider-assigned unique ID for this managed resource.
- is
Ipv6 Boolean - organization
Id String - project
Id String - reverse String
- server
Id String - status String
- List<String>
- updated
At String - zone String
- flexible
Ip StringId - ip
Address String
Package Details
- Repository
- scaleway pulumiverse/pulumi-scaleway
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scaleway
Terraform Provider.