Viewing docs for Scaleway v1.44.1
published on Monday, Mar 9, 2026 by pulumiverse
published on Monday, Mar 9, 2026 by pulumiverse
Viewing docs for Scaleway v1.44.1
published on Monday, Mar 9, 2026 by pulumiverse
published on Monday, Mar 9, 2026 by pulumiverse
Deprecated: scaleway.index/getvpcpublicgateway.getVpcPublicGateway has been deprecated in favor of scaleway.network/getpublicgateway.getPublicGateway
Gets information about a Public Gateway.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
const main = new scaleway.network.PublicGateway("main", {
name: "demo",
type: "VPC-GW-S",
zone: "nl-ams-1",
});
const pgTestByName = scaleway.network.getPublicGatewayOutput({
name: main.name,
zone: "nl-ams-1",
});
const pgTestById = scaleway.network.getPublicGatewayOutput({
publicGatewayId: main.id,
});
import pulumi
import pulumi_scaleway as scaleway
import pulumiverse_scaleway as scaleway
main = scaleway.network.PublicGateway("main",
name="demo",
type="VPC-GW-S",
zone="nl-ams-1")
pg_test_by_name = scaleway.network.get_public_gateway_output(name=main.name,
zone="nl-ams-1")
pg_test_by_id = scaleway.network.get_public_gateway_output(public_gateway_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.NewPublicGateway(ctx, "main", &network.PublicGatewayArgs{
Name: pulumi.String("demo"),
Type: pulumi.String("VPC-GW-S"),
Zone: pulumi.String("nl-ams-1"),
})
if err != nil {
return err
}
_ = network.LookupPublicGatewayOutput(ctx, network.GetPublicGatewayOutputArgs{
Name: main.Name,
Zone: pulumi.String("nl-ams-1"),
}, nil)
_ = network.LookupPublicGatewayOutput(ctx, network.GetPublicGatewayOutputArgs{
PublicGatewayId: 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.PublicGateway("main", new()
{
Name = "demo",
Type = "VPC-GW-S",
Zone = "nl-ams-1",
});
var pgTestByName = Scaleway.Network.GetPublicGateway.Invoke(new()
{
Name = main.Name,
Zone = "nl-ams-1",
});
var pgTestById = Scaleway.Network.GetPublicGateway.Invoke(new()
{
PublicGatewayId = main.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.network.PublicGateway;
import com.pulumi.scaleway.network.PublicGatewayArgs;
import com.pulumi.scaleway.network.NetworkFunctions;
import com.pulumi.scaleway.network.inputs.GetPublicGatewayArgs;
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 PublicGateway("main", PublicGatewayArgs.builder()
.name("demo")
.type("VPC-GW-S")
.zone("nl-ams-1")
.build());
final var pgTestByName = NetworkFunctions.getPublicGateway(GetPublicGatewayArgs.builder()
.name(main.name())
.zone("nl-ams-1")
.build());
final var pgTestById = NetworkFunctions.getPublicGateway(GetPublicGatewayArgs.builder()
.publicGatewayId(main.id())
.build());
}
}
resources:
main:
type: scaleway:network:PublicGateway
properties:
name: demo
type: VPC-GW-S
zone: nl-ams-1
variables:
pgTestByName:
fn::invoke:
function: scaleway:network:getPublicGateway
arguments:
name: ${main.name}
zone: nl-ams-1
pgTestById:
fn::invoke:
function: scaleway:network:getPublicGateway
arguments:
publicGatewayId: ${main.id}
Using getVpcPublicGateway
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 getVpcPublicGateway(args: GetVpcPublicGatewayArgs, opts?: InvokeOptions): Promise<GetVpcPublicGatewayResult>
function getVpcPublicGatewayOutput(args: GetVpcPublicGatewayOutputArgs, opts?: InvokeOptions): Output<GetVpcPublicGatewayResult>def get_vpc_public_gateway(name: Optional[str] = None,
project_id: Optional[str] = None,
public_gateway_id: Optional[str] = None,
zone: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVpcPublicGatewayResult
def get_vpc_public_gateway_output(name: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[str]] = None,
public_gateway_id: Optional[pulumi.Input[str]] = None,
zone: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVpcPublicGatewayResult]func LookupVpcPublicGateway(ctx *Context, args *LookupVpcPublicGatewayArgs, opts ...InvokeOption) (*LookupVpcPublicGatewayResult, error)
func LookupVpcPublicGatewayOutput(ctx *Context, args *LookupVpcPublicGatewayOutputArgs, opts ...InvokeOption) LookupVpcPublicGatewayResultOutput> Note: This function is named LookupVpcPublicGateway in the Go SDK.
public static class GetVpcPublicGateway
{
public static Task<GetVpcPublicGatewayResult> InvokeAsync(GetVpcPublicGatewayArgs args, InvokeOptions? opts = null)
public static Output<GetVpcPublicGatewayResult> Invoke(GetVpcPublicGatewayInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVpcPublicGatewayResult> getVpcPublicGateway(GetVpcPublicGatewayArgs args, InvokeOptions options)
public static Output<GetVpcPublicGatewayResult> getVpcPublicGateway(GetVpcPublicGatewayArgs args, InvokeOptions options)
fn::invoke:
function: scaleway:index/getVpcPublicGateway:getVpcPublicGateway
arguments:
# arguments dictionaryThe following arguments are supported:
- Name string
- Exact name of the Public Gateway.
- Project
Id string - The ID of the Project the Public Gateway is associated with.
- Public
Gateway stringId - Zone string
zone) The Public Gateway's zone.
- Name string
- Exact name of the Public Gateway.
- Project
Id string - The ID of the Project the Public Gateway is associated with.
- Public
Gateway stringId - Zone string
zone) The Public Gateway's zone.
- name String
- Exact name of the Public Gateway.
- project
Id String - The ID of the Project the Public Gateway is associated with.
- public
Gateway StringId - zone String
zone) The Public Gateway's zone.
- name string
- Exact name of the Public Gateway.
- project
Id string - The ID of the Project the Public Gateway is associated with.
- public
Gateway stringId - zone string
zone) The Public Gateway's zone.
- name str
- Exact name of the Public Gateway.
- project_
id str - The ID of the Project the Public Gateway is associated with.
- public_
gateway_ strid - zone str
zone) The Public Gateway's zone.
- name String
- Exact name of the Public Gateway.
- project
Id String - The ID of the Project the Public Gateway is associated with.
- public
Gateway StringId - zone String
zone) The Public Gateway's zone.
getVpcPublicGateway Result
The following output properties are available:
- Allowed
Ip List<string>Ranges - Bandwidth int
- Bastion
Enabled bool - Bastion
Port int - Created
At string - Enable
Smtp bool - Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Id string - Move
To boolIpam - Organization
Id string - Refresh
Ssh stringKeys - Status string
- List<string>
- Type string
- Updated
At string - Upstream
Dns List<string>Servers - Name string
- Project
Id string - Public
Gateway stringId - Zone string
- Allowed
Ip []stringRanges - Bandwidth int
- Bastion
Enabled bool - Bastion
Port int - Created
At string - Enable
Smtp bool - Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Id string - Move
To boolIpam - Organization
Id string - Refresh
Ssh stringKeys - Status string
- []string
- Type string
- Updated
At string - Upstream
Dns []stringServers - Name string
- Project
Id string - Public
Gateway stringId - Zone string
- allowed
Ip List<String>Ranges - bandwidth Integer
- bastion
Enabled Boolean - bastion
Port Integer - created
At String - enable
Smtp Boolean - id String
- The provider-assigned unique ID for this managed resource.
- ip
Id String - move
To BooleanIpam - organization
Id String - refresh
Ssh StringKeys - status String
- List<String>
- type String
- updated
At String - upstream
Dns List<String>Servers - name String
- project
Id String - public
Gateway StringId - zone String
- allowed
Ip string[]Ranges - bandwidth number
- bastion
Enabled boolean - bastion
Port number - created
At string - enable
Smtp boolean - id string
- The provider-assigned unique ID for this managed resource.
- ip
Id string - move
To booleanIpam - organization
Id string - refresh
Ssh stringKeys - status string
- string[]
- type string
- updated
At string - upstream
Dns string[]Servers - name string
- project
Id string - public
Gateway stringId - zone string
- allowed_
ip_ Sequence[str]ranges - bandwidth int
- bastion_
enabled bool - bastion_
port int - created_
at str - enable_
smtp bool - id str
- The provider-assigned unique ID for this managed resource.
- ip_
id str - move_
to_ boolipam - organization_
id str - refresh_
ssh_ strkeys - status str
- Sequence[str]
- type str
- updated_
at str - upstream_
dns_ Sequence[str]servers - name str
- project_
id str - public_
gateway_ strid - zone str
- allowed
Ip List<String>Ranges - bandwidth Number
- bastion
Enabled Boolean - bastion
Port Number - created
At String - enable
Smtp Boolean - id String
- The provider-assigned unique ID for this managed resource.
- ip
Id String - move
To BooleanIpam - organization
Id String - refresh
Ssh StringKeys - status String
- List<String>
- type String
- updated
At String - upstream
Dns List<String>Servers - name String
- project
Id String - public
Gateway StringId - zone 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.44.1
published on Monday, Mar 9, 2026 by pulumiverse
published on Monday, Mar 9, 2026 by pulumiverse
