1. Packages
  2. Scaleway
  3. API Docs
  4. network
  5. getPublicGatewayIp
Scaleway v1.26.0 published on Friday, Mar 28, 2025 by pulumiverse

scaleway.network.getPublicGatewayIp

Explore with Pulumi AI

Scaleway v1.26.0 published on Friday, Mar 28, 2025 by pulumiverse

Gets information about a Public Gateway public flexible IP address.

For further information, please see the API documentation.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumi/scaleway";
import * as scaleway from "@pulumiverse/scaleway";

const main = new scaleway.network.PublicGatewayIp("main", {});
const ipById = scaleway.network.getPublicGatewayIpOutput({
    ipId: main.id,
});
Copy
import pulumi
import pulumi_scaleway as scaleway
import pulumiverse_scaleway as scaleway

main = scaleway.network.PublicGatewayIp("main")
ip_by_id = scaleway.network.get_public_gateway_ip_output(ip_id=main.id)
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/network"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		main, err := network.NewPublicGatewayIp(ctx, "main", nil)
		if err != nil {
			return err
		}
		_ = network.LookupPublicGatewayIpOutput(ctx, network.GetPublicGatewayIpOutputArgs{
			IpId: main.ID(),
		}, nil)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumi.Scaleway;
using Scaleway = Pulumiverse.Scaleway;

return await Deployment.RunAsync(() => 
{
    var main = new Scaleway.Network.PublicGatewayIp("main");

    var ipById = Scaleway.Network.GetPublicGatewayIp.Invoke(new()
    {
        IpId = main.Id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.network.PublicGatewayIp;
import com.pulumi.scaleway.network.NetworkFunctions;
import com.pulumi.scaleway.network.inputs.GetPublicGatewayIpArgs;
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) {
        var main = new PublicGatewayIp("main");

        final var ipById = NetworkFunctions.getPublicGatewayIp(GetPublicGatewayIpArgs.builder()
            .ipId(main.id())
            .build());

    }
}
Copy
resources:
  main:
    type: scaleway:network:PublicGatewayIp
variables:
  ipById:
    fn::invoke:
      function: scaleway:network:getPublicGatewayIp
      arguments:
        ipId: ${main.id}
Copy

Using getPublicGatewayIp

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 getPublicGatewayIp(args: GetPublicGatewayIpArgs, opts?: InvokeOptions): Promise<GetPublicGatewayIpResult>
function getPublicGatewayIpOutput(args: GetPublicGatewayIpOutputArgs, opts?: InvokeOptions): Output<GetPublicGatewayIpResult>
Copy
def get_public_gateway_ip(ip_id: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetPublicGatewayIpResult
def get_public_gateway_ip_output(ip_id: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetPublicGatewayIpResult]
Copy
func LookupPublicGatewayIp(ctx *Context, args *LookupPublicGatewayIpArgs, opts ...InvokeOption) (*LookupPublicGatewayIpResult, error)
func LookupPublicGatewayIpOutput(ctx *Context, args *LookupPublicGatewayIpOutputArgs, opts ...InvokeOption) LookupPublicGatewayIpResultOutput
Copy

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

public static class GetPublicGatewayIp 
{
    public static Task<GetPublicGatewayIpResult> InvokeAsync(GetPublicGatewayIpArgs args, InvokeOptions? opts = null)
    public static Output<GetPublicGatewayIpResult> Invoke(GetPublicGatewayIpInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetPublicGatewayIpResult> getPublicGatewayIp(GetPublicGatewayIpArgs args, InvokeOptions options)
public static Output<GetPublicGatewayIpResult> getPublicGatewayIp(GetPublicGatewayIpArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: scaleway:network/getPublicGatewayIp:getPublicGatewayIp
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

IpId string
IpId string
ipId String
ipId string
ip_id str
ipId String

getPublicGatewayIp Result

The following output properties are available:

Address string
CreatedAt string
Id string
The provider-assigned unique ID for this managed resource.
OrganizationId string
ProjectId string
Reverse string
Tags List<string>
UpdatedAt string
Zone string
IpId string
Address string
CreatedAt string
Id string
The provider-assigned unique ID for this managed resource.
OrganizationId string
ProjectId string
Reverse string
Tags []string
UpdatedAt string
Zone string
IpId string
address String
createdAt String
id String
The provider-assigned unique ID for this managed resource.
organizationId String
projectId String
reverse String
tags List<String>
updatedAt String
zone String
ipId String
address string
createdAt string
id string
The provider-assigned unique ID for this managed resource.
organizationId string
projectId string
reverse string
tags string[]
updatedAt string
zone string
ipId string
address str
created_at str
id str
The provider-assigned unique ID for this managed resource.
organization_id str
project_id str
reverse str
tags Sequence[str]
updated_at str
zone str
ip_id str
address String
createdAt String
id String
The provider-assigned unique ID for this managed resource.
organizationId String
projectId String
reverse String
tags List<String>
updatedAt String
zone String
ipId String

Package Details

Repository
scaleway pulumiverse/pulumi-scaleway
License
Apache-2.0
Notes
This Pulumi package is based on the scaleway Terraform Provider.
Scaleway v1.26.0 published on Friday, Mar 28, 2025 by pulumiverse