Viewing docs for Google Cloud v10.2.0
published on Tuesday, Oct 20, 2026 by Pulumi
published on Tuesday, Oct 20, 2026 by Pulumi
Viewing docs for Google Cloud v10.2.0
published on Tuesday, Oct 20, 2026 by Pulumi
published on Tuesday, Oct 20, 2026 by Pulumi
Get information about a Network Services Gateway.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const _default = gcp.networkservices.getGateway({
location: defaultGoogleNetworkServicesGateway.location,
name: defaultGoogleNetworkServicesGateway.name,
});
import pulumi
import pulumi_gcp as gcp
default = gcp.networkservices.get_gateway(location=default_google_network_services_gateway["location"],
name=default_google_network_services_gateway["name"])
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v10/go/gcp/networkservices"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := networkservices.LookupGateway(ctx, &networkservices.LookupGatewayArgs{
Location: defaultGoogleNetworkServicesGateway.Location,
Name: defaultGoogleNetworkServicesGateway.Name,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var @default = Gcp.NetworkServices.GetGateway.Invoke(new()
{
Location = defaultGoogleNetworkServicesGateway.Location,
Name = defaultGoogleNetworkServicesGateway.Name,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.networkservices.NetworkservicesFunctions;
import com.pulumi.gcp.networkservices.inputs.GetGatewayArgs;
import java.util.ArrayList;
import java.util.Arrays;
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) {
final var default = NetworkservicesFunctions.getGateway(GetGatewayArgs.builder()
.location(defaultGoogleNetworkServicesGateway.get("location"))
.name(defaultGoogleNetworkServicesGateway.get("name"))
.build());
}
}
variables:
default:
fn::invoke:
function: gcp:networkservices:getGateway
arguments:
location: ${defaultGoogleNetworkServicesGateway.location}
name: ${defaultGoogleNetworkServicesGateway.name}
terraform {
required_providers {
gcp = {
source = "pulumi/gcp"
}
}
}
data "gcp_networkservices_gateway" "default" {
location = defaultGoogleNetworkServicesGateway.location
name = defaultGoogleNetworkServicesGateway.name
}
Using getGateway
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 getGateway(args: GetGatewayArgs, opts?: InvokeOptions): Promise<GetGatewayResult>
function getGatewayOutput(args: GetGatewayOutputArgs, opts?: InvokeOutputOptions): Output<GetGatewayResult>def get_gateway(location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetGatewayResult
def get_gateway_output(location: pulumi.Input[Optional[str]] = None,
name: pulumi.Input[Optional[str]] = None,
project: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetGatewayResult]func LookupGateway(ctx *Context, args *LookupGatewayArgs, opts ...InvokeOption) (*LookupGatewayResult, error)
func LookupGatewayOutput(ctx *Context, args *LookupGatewayOutputArgs, opts ...InvokeOption) LookupGatewayResultOutput> Note: This function is named LookupGateway in the Go SDK.
public static class GetGateway
{
public static Task<GetGatewayResult> InvokeAsync(GetGatewayArgs args, InvokeOptions? opts = null)
public static Output<GetGatewayResult> Invoke(GetGatewayInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetGatewayResult> Invoke(GetGatewayInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetGatewayResult> getGateway(GetGatewayArgs args, InvokeOptions options)
public static Output<GetGatewayResult> getGateway(GetGatewayArgs args, InvokeOptions options)
public static Output<GetGatewayResult> getGateway(GetGatewayArgs args, InvokeOutputOptions options)
fn::invoke:
function: gcp:networkservices/getGateway:getGateway
arguments:
# arguments dictionarydata "gcp_networkservices_get_gateway" "name" {
# arguments
}The following arguments are supported:
getGateway Result
The following output properties are available:
- Addresses List<string>
- All
Ports bool - Allow
Global boolAccess - Certificate
Urls List<string> - Create
Time string - Delete
Swg boolAutogen Router On Destroy - Deletion
Policy string - Description string
- Effective
Labels Dictionary<string, string> - Envoy
Headers string - Gateway
Security stringPolicy - Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Version string - Labels Dictionary<string, string>
- Location string
- Name string
- Network string
- Ports List<int>
- Pulumi
Labels Dictionary<string, string> - Routing
Mode string - Scope string
- Self
Link string - Server
Tls stringPolicy - Subnetwork string
- Type string
- Update
Time string - Project string
- Addresses []string
- All
Ports bool - Allow
Global boolAccess - Certificate
Urls []string - Create
Time string - Delete
Swg boolAutogen Router On Destroy - Deletion
Policy string - Description string
- Effective
Labels map[string]string - Envoy
Headers string - Gateway
Security stringPolicy - Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Version string - Labels map[string]string
- Location string
- Name string
- Network string
- Ports []int
- Pulumi
Labels map[string]string - Routing
Mode string - Scope string
- Self
Link string - Server
Tls stringPolicy - Subnetwork string
- Type string
- Update
Time string - Project string
- addresses list(string)
- all_
ports bool - allow_
global_ boolaccess - certificate_
urls list(string) - create_
time string - delete_
swg_ boolautogen_ router_ on_ destroy - deletion_
policy string - description string
- effective_
labels map(string) - envoy_
headers string - gateway_
security_ stringpolicy - id string
- The provider-assigned unique ID for this managed resource.
- ip_
version string - labels map(string)
- location string
- name string
- network string
- ports list(number)
- pulumi_
labels map(string) - routing_
mode string - scope string
- self_
link string - server_
tls_ stringpolicy - subnetwork string
- type string
- update_
time string - project string
- addresses List<String>
- all
Ports Boolean - allow
Global BooleanAccess - certificate
Urls List<String> - create
Time String - delete
Swg BooleanAutogen Router On Destroy - deletion
Policy String - description String
- effective
Labels Map<String,String> - envoy
Headers String - gateway
Security StringPolicy - id String
- The provider-assigned unique ID for this managed resource.
- ip
Version String - labels Map<String,String>
- location String
- name String
- network String
- ports List<Integer>
- pulumi
Labels Map<String,String> - routing
Mode String - scope String
- self
Link String - server
Tls StringPolicy - subnetwork String
- type String
- update
Time String - project String
- addresses string[]
- all
Ports boolean - allow
Global booleanAccess - certificate
Urls string[] - create
Time string - delete
Swg booleanAutogen Router On Destroy - deletion
Policy string - description string
- effective
Labels {[key: string]: string} - envoy
Headers string - gateway
Security stringPolicy - id string
- The provider-assigned unique ID for this managed resource.
- ip
Version string - labels {[key: string]: string}
- location string
- name string
- network string
- ports number[]
- pulumi
Labels {[key: string]: string} - routing
Mode string - scope string
- self
Link string - server
Tls stringPolicy - subnetwork string
- type string
- update
Time string - project string
- addresses Sequence[str]
- all_
ports bool - allow_
global_ boolaccess - certificate_
urls Sequence[str] - create_
time str - delete_
swg_ boolautogen_ router_ on_ destroy - deletion_
policy str - description str
- effective_
labels Mapping[str, str] - envoy_
headers str - gateway_
security_ strpolicy - id str
- The provider-assigned unique ID for this managed resource.
- ip_
version str - labels Mapping[str, str]
- location str
- name str
- network str
- ports Sequence[int]
- pulumi_
labels Mapping[str, str] - routing_
mode str - scope str
- self_
link str - server_
tls_ strpolicy - subnetwork str
- type str
- update_
time str - project str
- addresses List<String>
- all
Ports Boolean - allow
Global BooleanAccess - certificate
Urls List<String> - create
Time String - delete
Swg BooleanAutogen Router On Destroy - deletion
Policy String - description String
- effective
Labels Map<String> - envoy
Headers String - gateway
Security StringPolicy - id String
- The provider-assigned unique ID for this managed resource.
- ip
Version String - labels Map<String>
- location String
- name String
- network String
- ports List<Number>
- pulumi
Labels Map<String> - routing
Mode String - scope String
- self
Link String - server
Tls StringPolicy - subnetwork String
- type String
- update
Time String - project String
Package Details
- Repository
- Google Cloud (GCP) pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.
Viewing docs for Google Cloud v10.2.0
published on Tuesday, Oct 20, 2026 by Pulumi
published on Tuesday, Oct 20, 2026 by Pulumi