Google Cloud v9.3.0 published on Tuesday, Oct 7, 2025 by Pulumi
gcp.beyondcorp.getSecurityGateway
Get information about a Google BeyondCorp Security Gateway.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const my_beyondcorp_security_gateway = gcp.beyondcorp.getSecurityGateway({
    securityGatewayId: "my-beyondcorp-security-gateway",
});
import pulumi
import pulumi_gcp as gcp
my_beyondcorp_security_gateway = gcp.beyondcorp.get_security_gateway(security_gateway_id="my-beyondcorp-security-gateway")
package main
import (
	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/beyondcorp"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := beyondcorp.LookupSecurityGateway(ctx, &beyondcorp.LookupSecurityGatewayArgs{
			SecurityGatewayId: "my-beyondcorp-security-gateway",
		}, 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 my_beyondcorp_security_gateway = Gcp.Beyondcorp.GetSecurityGateway.Invoke(new()
    {
        SecurityGatewayId = "my-beyondcorp-security-gateway",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.beyondcorp.BeyondcorpFunctions;
import com.pulumi.gcp.beyondcorp.inputs.GetSecurityGatewayArgs;
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) {
        final var my-beyondcorp-security-gateway = BeyondcorpFunctions.getSecurityGateway(GetSecurityGatewayArgs.builder()
            .securityGatewayId("my-beyondcorp-security-gateway")
            .build());
    }
}
variables:
  my-beyondcorp-security-gateway:
    fn::invoke:
      function: gcp:beyondcorp:getSecurityGateway
      arguments:
        securityGatewayId: my-beyondcorp-security-gateway
Using getSecurityGateway
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 getSecurityGateway(args: GetSecurityGatewayArgs, opts?: InvokeOptions): Promise<GetSecurityGatewayResult>
function getSecurityGatewayOutput(args: GetSecurityGatewayOutputArgs, opts?: InvokeOptions): Output<GetSecurityGatewayResult>def get_security_gateway(project: Optional[str] = None,
                         security_gateway_id: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetSecurityGatewayResult
def get_security_gateway_output(project: Optional[pulumi.Input[str]] = None,
                         security_gateway_id: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetSecurityGatewayResult]func LookupSecurityGateway(ctx *Context, args *LookupSecurityGatewayArgs, opts ...InvokeOption) (*LookupSecurityGatewayResult, error)
func LookupSecurityGatewayOutput(ctx *Context, args *LookupSecurityGatewayOutputArgs, opts ...InvokeOption) LookupSecurityGatewayResultOutput> Note: This function is named LookupSecurityGateway in the Go SDK.
public static class GetSecurityGateway 
{
    public static Task<GetSecurityGatewayResult> InvokeAsync(GetSecurityGatewayArgs args, InvokeOptions? opts = null)
    public static Output<GetSecurityGatewayResult> Invoke(GetSecurityGatewayInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSecurityGatewayResult> getSecurityGateway(GetSecurityGatewayArgs args, InvokeOptions options)
public static Output<GetSecurityGatewayResult> getSecurityGateway(GetSecurityGatewayArgs args, InvokeOptions options)
fn::invoke:
  function: gcp:beyondcorp/getSecurityGateway:getSecurityGateway
  arguments:
    # arguments dictionaryThe following arguments are supported:
- SecurityGateway stringId 
- The name of the Security Gateway resource.
- Project string
- The project in which the resource belongs. If it is not provided, the provider project is used.
- SecurityGateway stringId 
- The name of the Security Gateway resource.
- Project string
- The project in which the resource belongs. If it is not provided, the provider project is used.
- securityGateway StringId 
- The name of the Security Gateway resource.
- project String
- The project in which the resource belongs. If it is not provided, the provider project is used.
- securityGateway stringId 
- The name of the Security Gateway resource.
- project string
- The project in which the resource belongs. If it is not provided, the provider project is used.
- security_gateway_ strid 
- The name of the Security Gateway resource.
- project str
- The project in which the resource belongs. If it is not provided, the provider project is used.
- securityGateway StringId 
- The name of the Security Gateway resource.
- project String
- The project in which the resource belongs. If it is not provided, the provider project is used.
getSecurityGateway Result
The following output properties are available:
- CreateTime string
- DelegatingService stringAccount 
- DisplayName string
- ExternalIps List<string>
- Hubs
List<GetSecurity Gateway Hub> 
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- Name string
- SecurityGateway stringId 
- State string
- UpdateTime string
- Project string
- CreateTime string
- DelegatingService stringAccount 
- DisplayName string
- ExternalIps []string
- Hubs
[]GetSecurity Gateway Hub 
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- Name string
- SecurityGateway stringId 
- State string
- UpdateTime string
- Project string
- createTime String
- delegatingService StringAccount 
- displayName String
- externalIps List<String>
- hubs
List<GetSecurity Gateway Hub> 
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- name String
- securityGateway StringId 
- state String
- updateTime String
- project String
- createTime string
- delegatingService stringAccount 
- displayName string
- externalIps string[]
- hubs
GetSecurity Gateway Hub[] 
- id string
- The provider-assigned unique ID for this managed resource.
- location string
- name string
- securityGateway stringId 
- state string
- updateTime string
- project string
- create_time str
- delegating_service_ straccount 
- display_name str
- external_ips Sequence[str]
- hubs
Sequence[GetSecurity Gateway Hub] 
- id str
- The provider-assigned unique ID for this managed resource.
- location str
- name str
- security_gateway_ strid 
- state str
- update_time str
- project str
- createTime String
- delegatingService StringAccount 
- displayName String
- externalIps List<String>
- hubs List<Property Map>
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- name String
- securityGateway StringId 
- state String
- updateTime String
- project String
Supporting Types
GetSecurityGatewayHub   
- InternetGateways List<GetSecurity Gateway Hub Internet Gateway> 
- Internet Gateway configuration.
- Region string
- InternetGateways []GetSecurity Gateway Hub Internet Gateway 
- Internet Gateway configuration.
- Region string
- internetGateways List<GetSecurity Gateway Hub Internet Gateway> 
- Internet Gateway configuration.
- region String
- internetGateways GetSecurity Gateway Hub Internet Gateway[] 
- Internet Gateway configuration.
- region string
- internet_gateways Sequence[GetSecurity Gateway Hub Internet Gateway] 
- Internet Gateway configuration.
- region str
- internetGateways List<Property Map>
- Internet Gateway configuration.
- region String
GetSecurityGatewayHubInternetGateway     
- AssignedIps List<string>
- Output only. List of IP addresses assigned to the Cloud NAT.
- AssignedIps []string
- Output only. List of IP addresses assigned to the Cloud NAT.
- assignedIps List<String>
- Output only. List of IP addresses assigned to the Cloud NAT.
- assignedIps string[]
- Output only. List of IP addresses assigned to the Cloud NAT.
- assigned_ips Sequence[str]
- Output only. List of IP addresses assigned to the Cloud NAT.
- assignedIps List<String>
- Output only. List of IP addresses assigned to the Cloud NAT.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the google-betaTerraform Provider.
