1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. beyondcorp
  5. getSecurityGateway
Google Cloud v8.33.0 published on Wednesday, Jun 4, 2025 by Pulumi

gcp.beyondcorp.getSecurityGateway

Explore with Pulumi AI

gcp logo
Google Cloud v8.33.0 published on Wednesday, Jun 4, 2025 by Pulumi

    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/v8/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 dictionary

    The following arguments are supported:

    SecurityGatewayId string
    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.
    SecurityGatewayId string
    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.
    securityGatewayId String
    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.
    securityGatewayId string
    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_id str
    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.
    securityGatewayId String
    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
    DisplayName string
    ExternalIps List<string>
    Hubs List<GetSecurityGatewayHub>
    Id string
    The provider-assigned unique ID for this managed resource.
    Location string
    Name string
    SecurityGatewayId string
    State string
    UpdateTime string
    Project string
    CreateTime string
    DisplayName string
    ExternalIps []string
    Hubs []GetSecurityGatewayHub
    Id string
    The provider-assigned unique ID for this managed resource.
    Location string
    Name string
    SecurityGatewayId string
    State string
    UpdateTime string
    Project string
    createTime String
    displayName String
    externalIps List<String>
    hubs List<GetSecurityGatewayHub>
    id String
    The provider-assigned unique ID for this managed resource.
    location String
    name String
    securityGatewayId String
    state String
    updateTime String
    project String
    createTime string
    displayName string
    externalIps string[]
    hubs GetSecurityGatewayHub[]
    id string
    The provider-assigned unique ID for this managed resource.
    location string
    name string
    securityGatewayId string
    state string
    updateTime string
    project string
    create_time str
    display_name str
    external_ips Sequence[str]
    hubs Sequence[GetSecurityGatewayHub]
    id str
    The provider-assigned unique ID for this managed resource.
    location str
    name str
    security_gateway_id str
    state str
    update_time str
    project str
    createTime String
    displayName String
    externalIps List<String>
    hubs List<Property Map>
    id String
    The provider-assigned unique ID for this managed resource.
    location String
    name String
    securityGatewayId String
    state String
    updateTime String
    project String

    Supporting Types

    GetSecurityGatewayHub

    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-beta Terraform Provider.
    gcp logo
    Google Cloud v8.33.0 published on Wednesday, Jun 4, 2025 by Pulumi