1. Packages
  2. Scaleway
  3. API Docs
  4. getVpcPublicGatewayIp
Scaleway v1.36.0 published on Friday, Oct 31, 2025 by pulumiverse

scaleway.getVpcPublicGatewayIp

Start a Neo task
Explain and create a scaleway.getVpcPublicGatewayIp resource
scaleway logo
Scaleway v1.36.0 published on Friday, Oct 31, 2025 by pulumiverse
    Deprecated: scaleway.index/getvpcpublicgatewayip.getVpcPublicGatewayIp has been deprecated in favor of scaleway.network/getpublicgatewayip.getPublicGatewayIp

    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 "@pulumiverse/scaleway";
    
    const main = new scaleway.network.PublicGatewayIp("main", {});
    const ipById = scaleway.network.getPublicGatewayIpOutput({
        ipId: main.id,
    });
    
    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)
    
    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
    	})
    }
    
    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,
        });
    
    });
    
    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());
    
        }
    }
    
    resources:
      main:
        type: scaleway:network:PublicGatewayIp
    variables:
      ipById:
        fn::invoke:
          function: scaleway:network:getPublicGatewayIp
          arguments:
            ipId: ${main.id}
    

    Using getVpcPublicGatewayIp

    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 getVpcPublicGatewayIp(args: GetVpcPublicGatewayIpArgs, opts?: InvokeOptions): Promise<GetVpcPublicGatewayIpResult>
    function getVpcPublicGatewayIpOutput(args: GetVpcPublicGatewayIpOutputArgs, opts?: InvokeOptions): Output<GetVpcPublicGatewayIpResult>
    def get_vpc_public_gateway_ip(ip_id: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetVpcPublicGatewayIpResult
    def get_vpc_public_gateway_ip_output(ip_id: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetVpcPublicGatewayIpResult]
    func LookupVpcPublicGatewayIp(ctx *Context, args *LookupVpcPublicGatewayIpArgs, opts ...InvokeOption) (*LookupVpcPublicGatewayIpResult, error)
    func LookupVpcPublicGatewayIpOutput(ctx *Context, args *LookupVpcPublicGatewayIpOutputArgs, opts ...InvokeOption) LookupVpcPublicGatewayIpResultOutput

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

    public static class GetVpcPublicGatewayIp 
    {
        public static Task<GetVpcPublicGatewayIpResult> InvokeAsync(GetVpcPublicGatewayIpArgs args, InvokeOptions? opts = null)
        public static Output<GetVpcPublicGatewayIpResult> Invoke(GetVpcPublicGatewayIpInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVpcPublicGatewayIpResult> getVpcPublicGatewayIp(GetVpcPublicGatewayIpArgs args, InvokeOptions options)
    public static Output<GetVpcPublicGatewayIpResult> getVpcPublicGatewayIp(GetVpcPublicGatewayIpArgs args, InvokeOptions options)
    
    fn::invoke:
      function: scaleway:index/getVpcPublicGatewayIp:getVpcPublicGatewayIp
      arguments:
        # arguments dictionary

    The following arguments are supported:

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

    getVpcPublicGatewayIp 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 logo
    Scaleway v1.36.0 published on Friday, Oct 31, 2025 by pulumiverse
      Meet Neo: Your AI Platform Teammate