Viewing docs for Scaleway v1.45.0
published on Friday, Apr 3, 2026 by pulumiverse
published on Friday, Apr 3, 2026 by pulumiverse
Viewing docs for Scaleway v1.45.0
published on Friday, Apr 3, 2026 by pulumiverse
published on Friday, Apr 3, 2026 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 dictionaryThe following arguments are supported:
- Flexible
Ip stringId - The IP ID.
Only one of
ip_addressandflexible_ip_idshould be specified. - Ip
Address string - The IP address.
Only one of
ip_addressandflexible_ip_idshould 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_addressandflexible_ip_idshould be specified. - Ip
Address string - The IP address.
Only one of
ip_addressandflexible_ip_idshould 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_addressandflexible_ip_idshould be specified. - ip
Address String - The IP address.
Only one of
ip_addressandflexible_ip_idshould 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_addressandflexible_ip_idshould be specified. - ip
Address string - The IP address.
Only one of
ip_addressandflexible_ip_idshould 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_addressandflexible_ip_idshould be specified. - ip_
address str - The IP address.
Only one of
ip_addressandflexible_ip_idshould 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_addressandflexible_ip_idshould be specified. - ip
Address String - The IP address.
Only one of
ip_addressandflexible_ip_idshould be specified. - project
Id String project_id) The ID of the Project the Flexible IP is associated with.
getIp 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
scalewayTerraform Provider.
Viewing docs for Scaleway v1.45.0
published on Friday, Apr 3, 2026 by pulumiverse
published on Friday, Apr 3, 2026 by pulumiverse
