Google Cloud v8.33.0 published on Wednesday, Jun 4, 2025 by Pulumi
gcp.beyondcorp.getSecurityGateway
Explore with Pulumi AI
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:
- Security
Gateway 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 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 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 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.
- security
Gateway 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:
- Create
Time string - Display
Name string - External
Ips List<string> - Hubs
List<Get
Security Gateway Hub> - Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- Name string
- Security
Gateway stringId - State string
- Update
Time string - Project string
- Create
Time string - Display
Name string - External
Ips []string - Hubs
[]Get
Security Gateway Hub - Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- Name string
- Security
Gateway stringId - State string
- Update
Time string - Project string
- create
Time String - display
Name String - external
Ips List<String> - hubs
List<Get
Security Gateway Hub> - id String
- The provider-assigned unique ID for this managed resource.
- location String
- name String
- security
Gateway StringId - state String
- update
Time String - project String
- create
Time string - display
Name string - external
Ips string[] - hubs
Get
Security Gateway Hub[] - id string
- The provider-assigned unique ID for this managed resource.
- location string
- name string
- security
Gateway stringId - state string
- update
Time string - project string
- create_
time str - display_
name str - external_
ips Sequence[str] - hubs
Sequence[Get
Security 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
- create
Time String - display
Name String - external
Ips List<String> - hubs List<Property Map>
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- name String
- security
Gateway StringId - state String
- update
Time String - project String
Supporting Types
GetSecurityGatewayHub
- Internet
Gateways List<GetSecurity Gateway Hub Internet Gateway> - Internet Gateway configuration.
- Region string
- Internet
Gateways []GetSecurity Gateway Hub Internet Gateway - Internet Gateway configuration.
- Region string
- internet
Gateways List<GetSecurity Gateway Hub Internet Gateway> - Internet Gateway configuration.
- region String
- internet
Gateways GetSecurity Gateway Hub Internet Gateway[] - Internet Gateway configuration.
- region string
- internet_
gateways Sequence[GetSecurity Gateway Hub Internet Gateway] - Internet Gateway configuration.
- region str
- internet
Gateways List<Property Map> - Internet Gateway configuration.
- region String
GetSecurityGatewayHubInternetGateway
- Assigned
Ips List<string> - Output only. List of IP addresses assigned to the Cloud NAT.
- Assigned
Ips []string - Output only. List of IP addresses assigned to the Cloud NAT.
- assigned
Ips List<String> - Output only. List of IP addresses assigned to the Cloud NAT.
- assigned
Ips 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.
- assigned
Ips 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.