1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. beyondcorp
  5. SecurityGatewayApplication
Google Cloud v9.4.0 published on Tuesday, Nov 4, 2025 by Pulumi

gcp.beyondcorp.SecurityGatewayApplication

Start a Neo task
Explain and create a gcp.beyondcorp.SecurityGatewayApplication resource
gcp logo
Google Cloud v9.4.0 published on Tuesday, Nov 4, 2025 by Pulumi

    Specifies application endpoint(s) to protect behind a Security Gateway.

    Example Usage

    Beyondcorp Security Gateway Application Basic

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const _default = new gcp.beyondcorp.SecurityGateway("default", {
        securityGatewayId: "default-sg",
        displayName: "My Security Gateway resource",
        hubs: [{
            region: "us-central1",
        }],
    });
    const example = new gcp.beyondcorp.SecurityGatewayApplication("example", {
        securityGatewayId: _default.securityGatewayId,
        applicationId: "google-sga",
        endpointMatchers: [{
            hostname: "google.com",
            ports: [
                80,
                443,
            ],
        }],
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    default = gcp.beyondcorp.SecurityGateway("default",
        security_gateway_id="default-sg",
        display_name="My Security Gateway resource",
        hubs=[{
            "region": "us-central1",
        }])
    example = gcp.beyondcorp.SecurityGatewayApplication("example",
        security_gateway_id=default.security_gateway_id,
        application_id="google-sga",
        endpoint_matchers=[{
            "hostname": "google.com",
            "ports": [
                80,
                443,
            ],
        }])
    
    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 {
    		_default, err := beyondcorp.NewSecurityGateway(ctx, "default", &beyondcorp.SecurityGatewayArgs{
    			SecurityGatewayId: pulumi.String("default-sg"),
    			DisplayName:       pulumi.String("My Security Gateway resource"),
    			Hubs: beyondcorp.SecurityGatewayHubArray{
    				&beyondcorp.SecurityGatewayHubArgs{
    					Region: pulumi.String("us-central1"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = beyondcorp.NewSecurityGatewayApplication(ctx, "example", &beyondcorp.SecurityGatewayApplicationArgs{
    			SecurityGatewayId: _default.SecurityGatewayId,
    			ApplicationId:     pulumi.String("google-sga"),
    			EndpointMatchers: beyondcorp.SecurityGatewayApplicationEndpointMatcherArray{
    				&beyondcorp.SecurityGatewayApplicationEndpointMatcherArgs{
    					Hostname: pulumi.String("google.com"),
    					Ports: pulumi.IntArray{
    						pulumi.Int(80),
    						pulumi.Int(443),
    					},
    				},
    			},
    		})
    		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 = new Gcp.Beyondcorp.SecurityGateway("default", new()
        {
            SecurityGatewayId = "default-sg",
            DisplayName = "My Security Gateway resource",
            Hubs = new[]
            {
                new Gcp.Beyondcorp.Inputs.SecurityGatewayHubArgs
                {
                    Region = "us-central1",
                },
            },
        });
    
        var example = new Gcp.Beyondcorp.SecurityGatewayApplication("example", new()
        {
            SecurityGatewayId = @default.SecurityGatewayId,
            ApplicationId = "google-sga",
            EndpointMatchers = new[]
            {
                new Gcp.Beyondcorp.Inputs.SecurityGatewayApplicationEndpointMatcherArgs
                {
                    Hostname = "google.com",
                    Ports = new[]
                    {
                        80,
                        443,
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.beyondcorp.SecurityGateway;
    import com.pulumi.gcp.beyondcorp.SecurityGatewayArgs;
    import com.pulumi.gcp.beyondcorp.inputs.SecurityGatewayHubArgs;
    import com.pulumi.gcp.beyondcorp.SecurityGatewayApplication;
    import com.pulumi.gcp.beyondcorp.SecurityGatewayApplicationArgs;
    import com.pulumi.gcp.beyondcorp.inputs.SecurityGatewayApplicationEndpointMatcherArgs;
    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 default_ = new SecurityGateway("default", SecurityGatewayArgs.builder()
                .securityGatewayId("default-sg")
                .displayName("My Security Gateway resource")
                .hubs(SecurityGatewayHubArgs.builder()
                    .region("us-central1")
                    .build())
                .build());
    
            var example = new SecurityGatewayApplication("example", SecurityGatewayApplicationArgs.builder()
                .securityGatewayId(default_.securityGatewayId())
                .applicationId("google-sga")
                .endpointMatchers(SecurityGatewayApplicationEndpointMatcherArgs.builder()
                    .hostname("google.com")
                    .ports(                
                        80,
                        443)
                    .build())
                .build());
    
        }
    }
    
    resources:
      default:
        type: gcp:beyondcorp:SecurityGateway
        properties:
          securityGatewayId: default-sg
          displayName: My Security Gateway resource
          hubs:
            - region: us-central1
      example:
        type: gcp:beyondcorp:SecurityGatewayApplication
        properties:
          securityGatewayId: ${default.securityGatewayId}
          applicationId: google-sga
          endpointMatchers:
            - hostname: google.com
              ports:
                - 80
                - 443
    

    Beyondcorp Security Gateway Application Vpc

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const project = gcp.organizations.getProject({});
    const _default = new gcp.beyondcorp.SecurityGateway("default", {
        securityGatewayId: "default-sg",
        displayName: "My Security Gateway resource",
        hubs: [{
            region: "us-central1",
        }],
    });
    const example = new gcp.beyondcorp.SecurityGatewayApplication("example", {
        securityGatewayId: _default.securityGatewayId,
        applicationId: "my-vm-service2",
        endpointMatchers: [{
            hostname: "my-vm-service.com",
            ports: [
                80,
                443,
            ],
        }],
        upstreams: [{
            egressPolicy: {
                regions: ["us-central1"],
            },
            network: {
                name: project.then(project => `projects/${project.projectId}/global/networks/default`),
            },
        }],
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    project = gcp.organizations.get_project()
    default = gcp.beyondcorp.SecurityGateway("default",
        security_gateway_id="default-sg",
        display_name="My Security Gateway resource",
        hubs=[{
            "region": "us-central1",
        }])
    example = gcp.beyondcorp.SecurityGatewayApplication("example",
        security_gateway_id=default.security_gateway_id,
        application_id="my-vm-service2",
        endpoint_matchers=[{
            "hostname": "my-vm-service.com",
            "ports": [
                80,
                443,
            ],
        }],
        upstreams=[{
            "egress_policy": {
                "regions": ["us-central1"],
            },
            "network": {
                "name": f"projects/{project.project_id}/global/networks/default",
            },
        }])
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/beyondcorp"
    	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/organizations"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		project, err := organizations.LookupProject(ctx, &organizations.LookupProjectArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		_default, err := beyondcorp.NewSecurityGateway(ctx, "default", &beyondcorp.SecurityGatewayArgs{
    			SecurityGatewayId: pulumi.String("default-sg"),
    			DisplayName:       pulumi.String("My Security Gateway resource"),
    			Hubs: beyondcorp.SecurityGatewayHubArray{
    				&beyondcorp.SecurityGatewayHubArgs{
    					Region: pulumi.String("us-central1"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = beyondcorp.NewSecurityGatewayApplication(ctx, "example", &beyondcorp.SecurityGatewayApplicationArgs{
    			SecurityGatewayId: _default.SecurityGatewayId,
    			ApplicationId:     pulumi.String("my-vm-service2"),
    			EndpointMatchers: beyondcorp.SecurityGatewayApplicationEndpointMatcherArray{
    				&beyondcorp.SecurityGatewayApplicationEndpointMatcherArgs{
    					Hostname: pulumi.String("my-vm-service.com"),
    					Ports: pulumi.IntArray{
    						pulumi.Int(80),
    						pulumi.Int(443),
    					},
    				},
    			},
    			Upstreams: beyondcorp.SecurityGatewayApplicationUpstreamArray{
    				&beyondcorp.SecurityGatewayApplicationUpstreamArgs{
    					EgressPolicy: &beyondcorp.SecurityGatewayApplicationUpstreamEgressPolicyArgs{
    						Regions: pulumi.StringArray{
    							pulumi.String("us-central1"),
    						},
    					},
    					Network: &beyondcorp.SecurityGatewayApplicationUpstreamNetworkArgs{
    						Name: pulumi.Sprintf("projects/%v/global/networks/default", project.ProjectId),
    					},
    				},
    			},
    		})
    		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 project = Gcp.Organizations.GetProject.Invoke();
    
        var @default = new Gcp.Beyondcorp.SecurityGateway("default", new()
        {
            SecurityGatewayId = "default-sg",
            DisplayName = "My Security Gateway resource",
            Hubs = new[]
            {
                new Gcp.Beyondcorp.Inputs.SecurityGatewayHubArgs
                {
                    Region = "us-central1",
                },
            },
        });
    
        var example = new Gcp.Beyondcorp.SecurityGatewayApplication("example", new()
        {
            SecurityGatewayId = @default.SecurityGatewayId,
            ApplicationId = "my-vm-service2",
            EndpointMatchers = new[]
            {
                new Gcp.Beyondcorp.Inputs.SecurityGatewayApplicationEndpointMatcherArgs
                {
                    Hostname = "my-vm-service.com",
                    Ports = new[]
                    {
                        80,
                        443,
                    },
                },
            },
            Upstreams = new[]
            {
                new Gcp.Beyondcorp.Inputs.SecurityGatewayApplicationUpstreamArgs
                {
                    EgressPolicy = new Gcp.Beyondcorp.Inputs.SecurityGatewayApplicationUpstreamEgressPolicyArgs
                    {
                        Regions = new[]
                        {
                            "us-central1",
                        },
                    },
                    Network = new Gcp.Beyondcorp.Inputs.SecurityGatewayApplicationUpstreamNetworkArgs
                    {
                        Name = $"projects/{project.Apply(getProjectResult => getProjectResult.ProjectId)}/global/networks/default",
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.organizations.OrganizationsFunctions;
    import com.pulumi.gcp.organizations.inputs.GetProjectArgs;
    import com.pulumi.gcp.beyondcorp.SecurityGateway;
    import com.pulumi.gcp.beyondcorp.SecurityGatewayArgs;
    import com.pulumi.gcp.beyondcorp.inputs.SecurityGatewayHubArgs;
    import com.pulumi.gcp.beyondcorp.SecurityGatewayApplication;
    import com.pulumi.gcp.beyondcorp.SecurityGatewayApplicationArgs;
    import com.pulumi.gcp.beyondcorp.inputs.SecurityGatewayApplicationEndpointMatcherArgs;
    import com.pulumi.gcp.beyondcorp.inputs.SecurityGatewayApplicationUpstreamArgs;
    import com.pulumi.gcp.beyondcorp.inputs.SecurityGatewayApplicationUpstreamEgressPolicyArgs;
    import com.pulumi.gcp.beyondcorp.inputs.SecurityGatewayApplicationUpstreamNetworkArgs;
    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 project = OrganizationsFunctions.getProject(GetProjectArgs.builder()
                .build());
    
            var default_ = new SecurityGateway("default", SecurityGatewayArgs.builder()
                .securityGatewayId("default-sg")
                .displayName("My Security Gateway resource")
                .hubs(SecurityGatewayHubArgs.builder()
                    .region("us-central1")
                    .build())
                .build());
    
            var example = new SecurityGatewayApplication("example", SecurityGatewayApplicationArgs.builder()
                .securityGatewayId(default_.securityGatewayId())
                .applicationId("my-vm-service2")
                .endpointMatchers(SecurityGatewayApplicationEndpointMatcherArgs.builder()
                    .hostname("my-vm-service.com")
                    .ports(                
                        80,
                        443)
                    .build())
                .upstreams(SecurityGatewayApplicationUpstreamArgs.builder()
                    .egressPolicy(SecurityGatewayApplicationUpstreamEgressPolicyArgs.builder()
                        .regions("us-central1")
                        .build())
                    .network(SecurityGatewayApplicationUpstreamNetworkArgs.builder()
                        .name(String.format("projects/%s/global/networks/default", project.projectId()))
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      default:
        type: gcp:beyondcorp:SecurityGateway
        properties:
          securityGatewayId: default-sg
          displayName: My Security Gateway resource
          hubs:
            - region: us-central1
      example:
        type: gcp:beyondcorp:SecurityGatewayApplication
        properties:
          securityGatewayId: ${default.securityGatewayId}
          applicationId: my-vm-service2
          endpointMatchers:
            - hostname: my-vm-service.com
              ports:
                - 80
                - 443
          upstreams:
            - egressPolicy:
                regions:
                  - us-central1
              network:
                name: projects/${project.projectId}/global/networks/default
    variables:
      project:
        fn::invoke:
          function: gcp:organizations:getProject
          arguments: {}
    

    Beyondcorp Security Gateway Application Spa Api

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const _default = new gcp.beyondcorp.SecurityGateway("default", {
        securityGatewayId: "default-sg-spa-api",
        displayName: "My SPA Security Gateway resource",
    });
    const example_spa = new gcp.beyondcorp.SecurityGatewayApplication("example-spa", {
        securityGatewayId: _default.securityGatewayId,
        applicationId: "app-discovery",
        upstreams: [{
            external: {
                endpoints: [{
                    hostname: "my.discovery.service.com",
                    port: 443,
                }],
            },
            proxyProtocol: {
                allowedClientHeaders: ["header"],
            },
        }],
        schema: "API_GATEWAY",
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    default = gcp.beyondcorp.SecurityGateway("default",
        security_gateway_id="default-sg-spa-api",
        display_name="My SPA Security Gateway resource")
    example_spa = gcp.beyondcorp.SecurityGatewayApplication("example-spa",
        security_gateway_id=default.security_gateway_id,
        application_id="app-discovery",
        upstreams=[{
            "external": {
                "endpoints": [{
                    "hostname": "my.discovery.service.com",
                    "port": 443,
                }],
            },
            "proxy_protocol": {
                "allowed_client_headers": ["header"],
            },
        }],
        schema="API_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 {
    		_default, err := beyondcorp.NewSecurityGateway(ctx, "default", &beyondcorp.SecurityGatewayArgs{
    			SecurityGatewayId: pulumi.String("default-sg-spa-api"),
    			DisplayName:       pulumi.String("My SPA Security Gateway resource"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = beyondcorp.NewSecurityGatewayApplication(ctx, "example-spa", &beyondcorp.SecurityGatewayApplicationArgs{
    			SecurityGatewayId: _default.SecurityGatewayId,
    			ApplicationId:     pulumi.String("app-discovery"),
    			Upstreams: beyondcorp.SecurityGatewayApplicationUpstreamArray{
    				&beyondcorp.SecurityGatewayApplicationUpstreamArgs{
    					External: &beyondcorp.SecurityGatewayApplicationUpstreamExternalArgs{
    						Endpoints: beyondcorp.SecurityGatewayApplicationUpstreamExternalEndpointArray{
    							&beyondcorp.SecurityGatewayApplicationUpstreamExternalEndpointArgs{
    								Hostname: pulumi.String("my.discovery.service.com"),
    								Port:     pulumi.Int(443),
    							},
    						},
    					},
    					ProxyProtocol: &beyondcorp.SecurityGatewayApplicationUpstreamProxyProtocolArgs{
    						AllowedClientHeaders: pulumi.StringArray{
    							pulumi.String("header"),
    						},
    					},
    				},
    			},
    			Schema: pulumi.String("API_GATEWAY"),
    		})
    		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 = new Gcp.Beyondcorp.SecurityGateway("default", new()
        {
            SecurityGatewayId = "default-sg-spa-api",
            DisplayName = "My SPA Security Gateway resource",
        });
    
        var example_spa = new Gcp.Beyondcorp.SecurityGatewayApplication("example-spa", new()
        {
            SecurityGatewayId = @default.SecurityGatewayId,
            ApplicationId = "app-discovery",
            Upstreams = new[]
            {
                new Gcp.Beyondcorp.Inputs.SecurityGatewayApplicationUpstreamArgs
                {
                    External = new Gcp.Beyondcorp.Inputs.SecurityGatewayApplicationUpstreamExternalArgs
                    {
                        Endpoints = new[]
                        {
                            new Gcp.Beyondcorp.Inputs.SecurityGatewayApplicationUpstreamExternalEndpointArgs
                            {
                                Hostname = "my.discovery.service.com",
                                Port = 443,
                            },
                        },
                    },
                    ProxyProtocol = new Gcp.Beyondcorp.Inputs.SecurityGatewayApplicationUpstreamProxyProtocolArgs
                    {
                        AllowedClientHeaders = new[]
                        {
                            "header",
                        },
                    },
                },
            },
            Schema = "API_GATEWAY",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.beyondcorp.SecurityGateway;
    import com.pulumi.gcp.beyondcorp.SecurityGatewayArgs;
    import com.pulumi.gcp.beyondcorp.SecurityGatewayApplication;
    import com.pulumi.gcp.beyondcorp.SecurityGatewayApplicationArgs;
    import com.pulumi.gcp.beyondcorp.inputs.SecurityGatewayApplicationUpstreamArgs;
    import com.pulumi.gcp.beyondcorp.inputs.SecurityGatewayApplicationUpstreamExternalArgs;
    import com.pulumi.gcp.beyondcorp.inputs.SecurityGatewayApplicationUpstreamProxyProtocolArgs;
    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 default_ = new SecurityGateway("default", SecurityGatewayArgs.builder()
                .securityGatewayId("default-sg-spa-api")
                .displayName("My SPA Security Gateway resource")
                .build());
    
            var example_spa = new SecurityGatewayApplication("example-spa", SecurityGatewayApplicationArgs.builder()
                .securityGatewayId(default_.securityGatewayId())
                .applicationId("app-discovery")
                .upstreams(SecurityGatewayApplicationUpstreamArgs.builder()
                    .external(SecurityGatewayApplicationUpstreamExternalArgs.builder()
                        .endpoints(SecurityGatewayApplicationUpstreamExternalEndpointArgs.builder()
                            .hostname("my.discovery.service.com")
                            .port(443)
                            .build())
                        .build())
                    .proxyProtocol(SecurityGatewayApplicationUpstreamProxyProtocolArgs.builder()
                        .allowedClientHeaders("header")
                        .build())
                    .build())
                .schema("API_GATEWAY")
                .build());
    
        }
    }
    
    resources:
      default:
        type: gcp:beyondcorp:SecurityGateway
        properties:
          securityGatewayId: default-sg-spa-api
          displayName: My SPA Security Gateway resource
      example-spa:
        type: gcp:beyondcorp:SecurityGatewayApplication
        properties:
          securityGatewayId: ${default.securityGatewayId}
          applicationId: app-discovery
          upstreams:
            - external:
                endpoints:
                  - hostname: my.discovery.service.com
                    port: 443
              proxyProtocol:
                allowedClientHeaders:
                  - header
          schema: API_GATEWAY
    

    Beyondcorp Security Gateway Application Spa Proxy

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const _default = new gcp.beyondcorp.SecurityGateway("default", {
        securityGatewayId: "default-sg-spa-proxy",
        displayName: "My SPA Security Gateway resource",
    });
    const example_spa = new gcp.beyondcorp.SecurityGatewayApplication("example-spa", {
        securityGatewayId: _default.securityGatewayId,
        applicationId: "app-proxy",
        endpointMatchers: [{
            hostname: "a.site.com",
            ports: [443],
        }],
        upstreams: [{
            external: {
                endpoints: [{
                    hostname: "my.proxy.service.com",
                    port: 443,
                }],
            },
            proxyProtocol: {
                allowedClientHeaders: [
                    "header1",
                    "header2",
                ],
                contextualHeaders: {
                    userInfo: {
                        outputType: "PROTOBUF",
                    },
                    groupInfo: {
                        outputType: "JSON",
                    },
                    deviceInfo: {
                        outputType: "NONE",
                    },
                    outputType: "JSON",
                },
                metadataHeaders: {
                    "metadata-header1": "value1",
                    "metadata-header2": "value2",
                },
                gatewayIdentity: "RESOURCE_NAME",
                clientIp: true,
            },
        }],
        schema: "PROXY_GATEWAY",
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    default = gcp.beyondcorp.SecurityGateway("default",
        security_gateway_id="default-sg-spa-proxy",
        display_name="My SPA Security Gateway resource")
    example_spa = gcp.beyondcorp.SecurityGatewayApplication("example-spa",
        security_gateway_id=default.security_gateway_id,
        application_id="app-proxy",
        endpoint_matchers=[{
            "hostname": "a.site.com",
            "ports": [443],
        }],
        upstreams=[{
            "external": {
                "endpoints": [{
                    "hostname": "my.proxy.service.com",
                    "port": 443,
                }],
            },
            "proxy_protocol": {
                "allowed_client_headers": [
                    "header1",
                    "header2",
                ],
                "contextual_headers": {
                    "user_info": {
                        "output_type": "PROTOBUF",
                    },
                    "group_info": {
                        "output_type": "JSON",
                    },
                    "device_info": {
                        "output_type": "NONE",
                    },
                    "output_type": "JSON",
                },
                "metadata_headers": {
                    "metadata-header1": "value1",
                    "metadata-header2": "value2",
                },
                "gateway_identity": "RESOURCE_NAME",
                "client_ip": True,
            },
        }],
        schema="PROXY_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 {
    		_default, err := beyondcorp.NewSecurityGateway(ctx, "default", &beyondcorp.SecurityGatewayArgs{
    			SecurityGatewayId: pulumi.String("default-sg-spa-proxy"),
    			DisplayName:       pulumi.String("My SPA Security Gateway resource"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = beyondcorp.NewSecurityGatewayApplication(ctx, "example-spa", &beyondcorp.SecurityGatewayApplicationArgs{
    			SecurityGatewayId: _default.SecurityGatewayId,
    			ApplicationId:     pulumi.String("app-proxy"),
    			EndpointMatchers: beyondcorp.SecurityGatewayApplicationEndpointMatcherArray{
    				&beyondcorp.SecurityGatewayApplicationEndpointMatcherArgs{
    					Hostname: pulumi.String("a.site.com"),
    					Ports: pulumi.IntArray{
    						pulumi.Int(443),
    					},
    				},
    			},
    			Upstreams: beyondcorp.SecurityGatewayApplicationUpstreamArray{
    				&beyondcorp.SecurityGatewayApplicationUpstreamArgs{
    					External: &beyondcorp.SecurityGatewayApplicationUpstreamExternalArgs{
    						Endpoints: beyondcorp.SecurityGatewayApplicationUpstreamExternalEndpointArray{
    							&beyondcorp.SecurityGatewayApplicationUpstreamExternalEndpointArgs{
    								Hostname: pulumi.String("my.proxy.service.com"),
    								Port:     pulumi.Int(443),
    							},
    						},
    					},
    					ProxyProtocol: &beyondcorp.SecurityGatewayApplicationUpstreamProxyProtocolArgs{
    						AllowedClientHeaders: pulumi.StringArray{
    							pulumi.String("header1"),
    							pulumi.String("header2"),
    						},
    						ContextualHeaders: &beyondcorp.SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersArgs{
    							UserInfo: &beyondcorp.SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersUserInfoArgs{
    								OutputType: pulumi.String("PROTOBUF"),
    							},
    							GroupInfo: &beyondcorp.SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersGroupInfoArgs{
    								OutputType: pulumi.String("JSON"),
    							},
    							DeviceInfo: &beyondcorp.SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersDeviceInfoArgs{
    								OutputType: pulumi.String("NONE"),
    							},
    							OutputType: pulumi.String("JSON"),
    						},
    						MetadataHeaders: pulumi.StringMap{
    							"metadata-header1": pulumi.String("value1"),
    							"metadata-header2": pulumi.String("value2"),
    						},
    						GatewayIdentity: pulumi.String("RESOURCE_NAME"),
    						ClientIp:        pulumi.Bool(true),
    					},
    				},
    			},
    			Schema: pulumi.String("PROXY_GATEWAY"),
    		})
    		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 = new Gcp.Beyondcorp.SecurityGateway("default", new()
        {
            SecurityGatewayId = "default-sg-spa-proxy",
            DisplayName = "My SPA Security Gateway resource",
        });
    
        var example_spa = new Gcp.Beyondcorp.SecurityGatewayApplication("example-spa", new()
        {
            SecurityGatewayId = @default.SecurityGatewayId,
            ApplicationId = "app-proxy",
            EndpointMatchers = new[]
            {
                new Gcp.Beyondcorp.Inputs.SecurityGatewayApplicationEndpointMatcherArgs
                {
                    Hostname = "a.site.com",
                    Ports = new[]
                    {
                        443,
                    },
                },
            },
            Upstreams = new[]
            {
                new Gcp.Beyondcorp.Inputs.SecurityGatewayApplicationUpstreamArgs
                {
                    External = new Gcp.Beyondcorp.Inputs.SecurityGatewayApplicationUpstreamExternalArgs
                    {
                        Endpoints = new[]
                        {
                            new Gcp.Beyondcorp.Inputs.SecurityGatewayApplicationUpstreamExternalEndpointArgs
                            {
                                Hostname = "my.proxy.service.com",
                                Port = 443,
                            },
                        },
                    },
                    ProxyProtocol = new Gcp.Beyondcorp.Inputs.SecurityGatewayApplicationUpstreamProxyProtocolArgs
                    {
                        AllowedClientHeaders = new[]
                        {
                            "header1",
                            "header2",
                        },
                        ContextualHeaders = new Gcp.Beyondcorp.Inputs.SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersArgs
                        {
                            UserInfo = new Gcp.Beyondcorp.Inputs.SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersUserInfoArgs
                            {
                                OutputType = "PROTOBUF",
                            },
                            GroupInfo = new Gcp.Beyondcorp.Inputs.SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersGroupInfoArgs
                            {
                                OutputType = "JSON",
                            },
                            DeviceInfo = new Gcp.Beyondcorp.Inputs.SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersDeviceInfoArgs
                            {
                                OutputType = "NONE",
                            },
                            OutputType = "JSON",
                        },
                        MetadataHeaders = 
                        {
                            { "metadata-header1", "value1" },
                            { "metadata-header2", "value2" },
                        },
                        GatewayIdentity = "RESOURCE_NAME",
                        ClientIp = true,
                    },
                },
            },
            Schema = "PROXY_GATEWAY",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.beyondcorp.SecurityGateway;
    import com.pulumi.gcp.beyondcorp.SecurityGatewayArgs;
    import com.pulumi.gcp.beyondcorp.SecurityGatewayApplication;
    import com.pulumi.gcp.beyondcorp.SecurityGatewayApplicationArgs;
    import com.pulumi.gcp.beyondcorp.inputs.SecurityGatewayApplicationEndpointMatcherArgs;
    import com.pulumi.gcp.beyondcorp.inputs.SecurityGatewayApplicationUpstreamArgs;
    import com.pulumi.gcp.beyondcorp.inputs.SecurityGatewayApplicationUpstreamExternalArgs;
    import com.pulumi.gcp.beyondcorp.inputs.SecurityGatewayApplicationUpstreamProxyProtocolArgs;
    import com.pulumi.gcp.beyondcorp.inputs.SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersArgs;
    import com.pulumi.gcp.beyondcorp.inputs.SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersUserInfoArgs;
    import com.pulumi.gcp.beyondcorp.inputs.SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersGroupInfoArgs;
    import com.pulumi.gcp.beyondcorp.inputs.SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersDeviceInfoArgs;
    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 default_ = new SecurityGateway("default", SecurityGatewayArgs.builder()
                .securityGatewayId("default-sg-spa-proxy")
                .displayName("My SPA Security Gateway resource")
                .build());
    
            var example_spa = new SecurityGatewayApplication("example-spa", SecurityGatewayApplicationArgs.builder()
                .securityGatewayId(default_.securityGatewayId())
                .applicationId("app-proxy")
                .endpointMatchers(SecurityGatewayApplicationEndpointMatcherArgs.builder()
                    .hostname("a.site.com")
                    .ports(443)
                    .build())
                .upstreams(SecurityGatewayApplicationUpstreamArgs.builder()
                    .external(SecurityGatewayApplicationUpstreamExternalArgs.builder()
                        .endpoints(SecurityGatewayApplicationUpstreamExternalEndpointArgs.builder()
                            .hostname("my.proxy.service.com")
                            .port(443)
                            .build())
                        .build())
                    .proxyProtocol(SecurityGatewayApplicationUpstreamProxyProtocolArgs.builder()
                        .allowedClientHeaders(                    
                            "header1",
                            "header2")
                        .contextualHeaders(SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersArgs.builder()
                            .userInfo(SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersUserInfoArgs.builder()
                                .outputType("PROTOBUF")
                                .build())
                            .groupInfo(SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersGroupInfoArgs.builder()
                                .outputType("JSON")
                                .build())
                            .deviceInfo(SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersDeviceInfoArgs.builder()
                                .outputType("NONE")
                                .build())
                            .outputType("JSON")
                            .build())
                        .metadataHeaders(Map.ofEntries(
                            Map.entry("metadata-header1", "value1"),
                            Map.entry("metadata-header2", "value2")
                        ))
                        .gatewayIdentity("RESOURCE_NAME")
                        .clientIp(true)
                        .build())
                    .build())
                .schema("PROXY_GATEWAY")
                .build());
    
        }
    }
    
    resources:
      default:
        type: gcp:beyondcorp:SecurityGateway
        properties:
          securityGatewayId: default-sg-spa-proxy
          displayName: My SPA Security Gateway resource
      example-spa:
        type: gcp:beyondcorp:SecurityGatewayApplication
        properties:
          securityGatewayId: ${default.securityGatewayId}
          applicationId: app-proxy
          endpointMatchers:
            - hostname: a.site.com
              ports:
                - 443
          upstreams:
            - external:
                endpoints:
                  - hostname: my.proxy.service.com
                    port: 443
              proxyProtocol:
                allowedClientHeaders:
                  - header1
                  - header2
                contextualHeaders:
                  userInfo:
                    outputType: PROTOBUF
                  groupInfo:
                    outputType: JSON
                  deviceInfo:
                    outputType: NONE
                  outputType: JSON
                metadataHeaders:
                  metadata-header1: value1
                  metadata-header2: value2
                gatewayIdentity: RESOURCE_NAME
                clientIp: true
          schema: PROXY_GATEWAY
    

    Create SecurityGatewayApplication Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SecurityGatewayApplication(name: string, args: SecurityGatewayApplicationArgs, opts?: CustomResourceOptions);
    @overload
    def SecurityGatewayApplication(resource_name: str,
                                   args: SecurityGatewayApplicationArgs,
                                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def SecurityGatewayApplication(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   application_id: Optional[str] = None,
                                   security_gateway_id: Optional[str] = None,
                                   display_name: Optional[str] = None,
                                   endpoint_matchers: Optional[Sequence[SecurityGatewayApplicationEndpointMatcherArgs]] = None,
                                   project: Optional[str] = None,
                                   schema: Optional[str] = None,
                                   upstreams: Optional[Sequence[SecurityGatewayApplicationUpstreamArgs]] = None)
    func NewSecurityGatewayApplication(ctx *Context, name string, args SecurityGatewayApplicationArgs, opts ...ResourceOption) (*SecurityGatewayApplication, error)
    public SecurityGatewayApplication(string name, SecurityGatewayApplicationArgs args, CustomResourceOptions? opts = null)
    public SecurityGatewayApplication(String name, SecurityGatewayApplicationArgs args)
    public SecurityGatewayApplication(String name, SecurityGatewayApplicationArgs args, CustomResourceOptions options)
    
    type: gcp:beyondcorp:SecurityGatewayApplication
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args SecurityGatewayApplicationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args SecurityGatewayApplicationArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args SecurityGatewayApplicationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SecurityGatewayApplicationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SecurityGatewayApplicationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var securityGatewayApplicationResource = new Gcp.Beyondcorp.SecurityGatewayApplication("securityGatewayApplicationResource", new()
    {
        ApplicationId = "string",
        SecurityGatewayId = "string",
        DisplayName = "string",
        EndpointMatchers = new[]
        {
            new Gcp.Beyondcorp.Inputs.SecurityGatewayApplicationEndpointMatcherArgs
            {
                Hostname = "string",
                Ports = new[]
                {
                    0,
                },
            },
        },
        Project = "string",
        Schema = "string",
        Upstreams = new[]
        {
            new Gcp.Beyondcorp.Inputs.SecurityGatewayApplicationUpstreamArgs
            {
                EgressPolicy = new Gcp.Beyondcorp.Inputs.SecurityGatewayApplicationUpstreamEgressPolicyArgs
                {
                    Regions = new[]
                    {
                        "string",
                    },
                },
                External = new Gcp.Beyondcorp.Inputs.SecurityGatewayApplicationUpstreamExternalArgs
                {
                    Endpoints = new[]
                    {
                        new Gcp.Beyondcorp.Inputs.SecurityGatewayApplicationUpstreamExternalEndpointArgs
                        {
                            Hostname = "string",
                            Port = 0,
                        },
                    },
                },
                Network = new Gcp.Beyondcorp.Inputs.SecurityGatewayApplicationUpstreamNetworkArgs
                {
                    Name = "string",
                },
                ProxyProtocol = new Gcp.Beyondcorp.Inputs.SecurityGatewayApplicationUpstreamProxyProtocolArgs
                {
                    AllowedClientHeaders = new[]
                    {
                        "string",
                    },
                    ClientIp = false,
                    ContextualHeaders = new Gcp.Beyondcorp.Inputs.SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersArgs
                    {
                        DeviceInfo = new Gcp.Beyondcorp.Inputs.SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersDeviceInfoArgs
                        {
                            OutputType = "string",
                        },
                        GroupInfo = new Gcp.Beyondcorp.Inputs.SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersGroupInfoArgs
                        {
                            OutputType = "string",
                        },
                        OutputType = "string",
                        UserInfo = new Gcp.Beyondcorp.Inputs.SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersUserInfoArgs
                        {
                            OutputType = "string",
                        },
                    },
                    GatewayIdentity = "string",
                    MetadataHeaders = 
                    {
                        { "string", "string" },
                    },
                },
            },
        },
    });
    
    example, err := beyondcorp.NewSecurityGatewayApplication(ctx, "securityGatewayApplicationResource", &beyondcorp.SecurityGatewayApplicationArgs{
    	ApplicationId:     pulumi.String("string"),
    	SecurityGatewayId: pulumi.String("string"),
    	DisplayName:       pulumi.String("string"),
    	EndpointMatchers: beyondcorp.SecurityGatewayApplicationEndpointMatcherArray{
    		&beyondcorp.SecurityGatewayApplicationEndpointMatcherArgs{
    			Hostname: pulumi.String("string"),
    			Ports: pulumi.IntArray{
    				pulumi.Int(0),
    			},
    		},
    	},
    	Project: pulumi.String("string"),
    	Schema:  pulumi.String("string"),
    	Upstreams: beyondcorp.SecurityGatewayApplicationUpstreamArray{
    		&beyondcorp.SecurityGatewayApplicationUpstreamArgs{
    			EgressPolicy: &beyondcorp.SecurityGatewayApplicationUpstreamEgressPolicyArgs{
    				Regions: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    			},
    			External: &beyondcorp.SecurityGatewayApplicationUpstreamExternalArgs{
    				Endpoints: beyondcorp.SecurityGatewayApplicationUpstreamExternalEndpointArray{
    					&beyondcorp.SecurityGatewayApplicationUpstreamExternalEndpointArgs{
    						Hostname: pulumi.String("string"),
    						Port:     pulumi.Int(0),
    					},
    				},
    			},
    			Network: &beyondcorp.SecurityGatewayApplicationUpstreamNetworkArgs{
    				Name: pulumi.String("string"),
    			},
    			ProxyProtocol: &beyondcorp.SecurityGatewayApplicationUpstreamProxyProtocolArgs{
    				AllowedClientHeaders: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    				ClientIp: pulumi.Bool(false),
    				ContextualHeaders: &beyondcorp.SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersArgs{
    					DeviceInfo: &beyondcorp.SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersDeviceInfoArgs{
    						OutputType: pulumi.String("string"),
    					},
    					GroupInfo: &beyondcorp.SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersGroupInfoArgs{
    						OutputType: pulumi.String("string"),
    					},
    					OutputType: pulumi.String("string"),
    					UserInfo: &beyondcorp.SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersUserInfoArgs{
    						OutputType: pulumi.String("string"),
    					},
    				},
    				GatewayIdentity: pulumi.String("string"),
    				MetadataHeaders: pulumi.StringMap{
    					"string": pulumi.String("string"),
    				},
    			},
    		},
    	},
    })
    
    var securityGatewayApplicationResource = new SecurityGatewayApplication("securityGatewayApplicationResource", SecurityGatewayApplicationArgs.builder()
        .applicationId("string")
        .securityGatewayId("string")
        .displayName("string")
        .endpointMatchers(SecurityGatewayApplicationEndpointMatcherArgs.builder()
            .hostname("string")
            .ports(0)
            .build())
        .project("string")
        .schema("string")
        .upstreams(SecurityGatewayApplicationUpstreamArgs.builder()
            .egressPolicy(SecurityGatewayApplicationUpstreamEgressPolicyArgs.builder()
                .regions("string")
                .build())
            .external(SecurityGatewayApplicationUpstreamExternalArgs.builder()
                .endpoints(SecurityGatewayApplicationUpstreamExternalEndpointArgs.builder()
                    .hostname("string")
                    .port(0)
                    .build())
                .build())
            .network(SecurityGatewayApplicationUpstreamNetworkArgs.builder()
                .name("string")
                .build())
            .proxyProtocol(SecurityGatewayApplicationUpstreamProxyProtocolArgs.builder()
                .allowedClientHeaders("string")
                .clientIp(false)
                .contextualHeaders(SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersArgs.builder()
                    .deviceInfo(SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersDeviceInfoArgs.builder()
                        .outputType("string")
                        .build())
                    .groupInfo(SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersGroupInfoArgs.builder()
                        .outputType("string")
                        .build())
                    .outputType("string")
                    .userInfo(SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersUserInfoArgs.builder()
                        .outputType("string")
                        .build())
                    .build())
                .gatewayIdentity("string")
                .metadataHeaders(Map.of("string", "string"))
                .build())
            .build())
        .build());
    
    security_gateway_application_resource = gcp.beyondcorp.SecurityGatewayApplication("securityGatewayApplicationResource",
        application_id="string",
        security_gateway_id="string",
        display_name="string",
        endpoint_matchers=[{
            "hostname": "string",
            "ports": [0],
        }],
        project="string",
        schema="string",
        upstreams=[{
            "egress_policy": {
                "regions": ["string"],
            },
            "external": {
                "endpoints": [{
                    "hostname": "string",
                    "port": 0,
                }],
            },
            "network": {
                "name": "string",
            },
            "proxy_protocol": {
                "allowed_client_headers": ["string"],
                "client_ip": False,
                "contextual_headers": {
                    "device_info": {
                        "output_type": "string",
                    },
                    "group_info": {
                        "output_type": "string",
                    },
                    "output_type": "string",
                    "user_info": {
                        "output_type": "string",
                    },
                },
                "gateway_identity": "string",
                "metadata_headers": {
                    "string": "string",
                },
            },
        }])
    
    const securityGatewayApplicationResource = new gcp.beyondcorp.SecurityGatewayApplication("securityGatewayApplicationResource", {
        applicationId: "string",
        securityGatewayId: "string",
        displayName: "string",
        endpointMatchers: [{
            hostname: "string",
            ports: [0],
        }],
        project: "string",
        schema: "string",
        upstreams: [{
            egressPolicy: {
                regions: ["string"],
            },
            external: {
                endpoints: [{
                    hostname: "string",
                    port: 0,
                }],
            },
            network: {
                name: "string",
            },
            proxyProtocol: {
                allowedClientHeaders: ["string"],
                clientIp: false,
                contextualHeaders: {
                    deviceInfo: {
                        outputType: "string",
                    },
                    groupInfo: {
                        outputType: "string",
                    },
                    outputType: "string",
                    userInfo: {
                        outputType: "string",
                    },
                },
                gatewayIdentity: "string",
                metadataHeaders: {
                    string: "string",
                },
            },
        }],
    });
    
    type: gcp:beyondcorp:SecurityGatewayApplication
    properties:
        applicationId: string
        displayName: string
        endpointMatchers:
            - hostname: string
              ports:
                - 0
        project: string
        schema: string
        securityGatewayId: string
        upstreams:
            - egressPolicy:
                regions:
                    - string
              external:
                endpoints:
                    - hostname: string
                      port: 0
              network:
                name: string
              proxyProtocol:
                allowedClientHeaders:
                    - string
                clientIp: false
                contextualHeaders:
                    deviceInfo:
                        outputType: string
                    groupInfo:
                        outputType: string
                    outputType: string
                    userInfo:
                        outputType: string
                gatewayIdentity: string
                metadataHeaders:
                    string: string
    

    SecurityGatewayApplication Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The SecurityGatewayApplication resource accepts the following input properties:

    ApplicationId string
    User-settable Application resource ID.

    • Must start with a letter.
    • Must contain between 4-63 characters from /a-z-/.
    • Must end with a number or letter.
    SecurityGatewayId string
    ID of the Security Gateway resource this belongs to.
    DisplayName string
    Optional. An arbitrary user-provided name for the Application resource. Cannot exceed 64 characters.
    EndpointMatchers List<SecurityGatewayApplicationEndpointMatcher>
    Required. Endpoint matchers associated with an application. A combination of hostname and ports as endpoint matcher is used to match the application. Match conditions for OR logic. An array of match conditions to allow for multiple matching criteria. The rule is considered a match if one the conditions are met. The conditions can be one of the following combination (Hostname), (Hostname & Ports) EXAMPLES: Hostname - ("*.abc.com"), ("xyz.abc.com") Hostname and Ports - ("abc.com" and "22"), ("abc.com" and "22,33") etc Structure is documented below.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    Schema string
    Type of the external application. Possible values are: PROXY_GATEWAY, API_GATEWAY.
    Upstreams List<SecurityGatewayApplicationUpstream>
    Optional. List of which upstream resource(s) to forward traffic to. Structure is documented below.
    ApplicationId string
    User-settable Application resource ID.

    • Must start with a letter.
    • Must contain between 4-63 characters from /a-z-/.
    • Must end with a number or letter.
    SecurityGatewayId string
    ID of the Security Gateway resource this belongs to.
    DisplayName string
    Optional. An arbitrary user-provided name for the Application resource. Cannot exceed 64 characters.
    EndpointMatchers []SecurityGatewayApplicationEndpointMatcherArgs
    Required. Endpoint matchers associated with an application. A combination of hostname and ports as endpoint matcher is used to match the application. Match conditions for OR logic. An array of match conditions to allow for multiple matching criteria. The rule is considered a match if one the conditions are met. The conditions can be one of the following combination (Hostname), (Hostname & Ports) EXAMPLES: Hostname - ("*.abc.com"), ("xyz.abc.com") Hostname and Ports - ("abc.com" and "22"), ("abc.com" and "22,33") etc Structure is documented below.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    Schema string
    Type of the external application. Possible values are: PROXY_GATEWAY, API_GATEWAY.
    Upstreams []SecurityGatewayApplicationUpstreamArgs
    Optional. List of which upstream resource(s) to forward traffic to. Structure is documented below.
    applicationId String
    User-settable Application resource ID.

    • Must start with a letter.
    • Must contain between 4-63 characters from /a-z-/.
    • Must end with a number or letter.
    securityGatewayId String
    ID of the Security Gateway resource this belongs to.
    displayName String
    Optional. An arbitrary user-provided name for the Application resource. Cannot exceed 64 characters.
    endpointMatchers List<SecurityGatewayApplicationEndpointMatcher>
    Required. Endpoint matchers associated with an application. A combination of hostname and ports as endpoint matcher is used to match the application. Match conditions for OR logic. An array of match conditions to allow for multiple matching criteria. The rule is considered a match if one the conditions are met. The conditions can be one of the following combination (Hostname), (Hostname & Ports) EXAMPLES: Hostname - ("*.abc.com"), ("xyz.abc.com") Hostname and Ports - ("abc.com" and "22"), ("abc.com" and "22,33") etc Structure is documented below.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    schema String
    Type of the external application. Possible values are: PROXY_GATEWAY, API_GATEWAY.
    upstreams List<SecurityGatewayApplicationUpstream>
    Optional. List of which upstream resource(s) to forward traffic to. Structure is documented below.
    applicationId string
    User-settable Application resource ID.

    • Must start with a letter.
    • Must contain between 4-63 characters from /a-z-/.
    • Must end with a number or letter.
    securityGatewayId string
    ID of the Security Gateway resource this belongs to.
    displayName string
    Optional. An arbitrary user-provided name for the Application resource. Cannot exceed 64 characters.
    endpointMatchers SecurityGatewayApplicationEndpointMatcher[]
    Required. Endpoint matchers associated with an application. A combination of hostname and ports as endpoint matcher is used to match the application. Match conditions for OR logic. An array of match conditions to allow for multiple matching criteria. The rule is considered a match if one the conditions are met. The conditions can be one of the following combination (Hostname), (Hostname & Ports) EXAMPLES: Hostname - ("*.abc.com"), ("xyz.abc.com") Hostname and Ports - ("abc.com" and "22"), ("abc.com" and "22,33") etc Structure is documented below.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    schema string
    Type of the external application. Possible values are: PROXY_GATEWAY, API_GATEWAY.
    upstreams SecurityGatewayApplicationUpstream[]
    Optional. List of which upstream resource(s) to forward traffic to. Structure is documented below.
    application_id str
    User-settable Application resource ID.

    • Must start with a letter.
    • Must contain between 4-63 characters from /a-z-/.
    • Must end with a number or letter.
    security_gateway_id str
    ID of the Security Gateway resource this belongs to.
    display_name str
    Optional. An arbitrary user-provided name for the Application resource. Cannot exceed 64 characters.
    endpoint_matchers Sequence[SecurityGatewayApplicationEndpointMatcherArgs]
    Required. Endpoint matchers associated with an application. A combination of hostname and ports as endpoint matcher is used to match the application. Match conditions for OR logic. An array of match conditions to allow for multiple matching criteria. The rule is considered a match if one the conditions are met. The conditions can be one of the following combination (Hostname), (Hostname & Ports) EXAMPLES: Hostname - ("*.abc.com"), ("xyz.abc.com") Hostname and Ports - ("abc.com" and "22"), ("abc.com" and "22,33") etc Structure is documented below.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    schema str
    Type of the external application. Possible values are: PROXY_GATEWAY, API_GATEWAY.
    upstreams Sequence[SecurityGatewayApplicationUpstreamArgs]
    Optional. List of which upstream resource(s) to forward traffic to. Structure is documented below.
    applicationId String
    User-settable Application resource ID.

    • Must start with a letter.
    • Must contain between 4-63 characters from /a-z-/.
    • Must end with a number or letter.
    securityGatewayId String
    ID of the Security Gateway resource this belongs to.
    displayName String
    Optional. An arbitrary user-provided name for the Application resource. Cannot exceed 64 characters.
    endpointMatchers List<Property Map>
    Required. Endpoint matchers associated with an application. A combination of hostname and ports as endpoint matcher is used to match the application. Match conditions for OR logic. An array of match conditions to allow for multiple matching criteria. The rule is considered a match if one the conditions are met. The conditions can be one of the following combination (Hostname), (Hostname & Ports) EXAMPLES: Hostname - ("*.abc.com"), ("xyz.abc.com") Hostname and Ports - ("abc.com" and "22"), ("abc.com" and "22,33") etc Structure is documented below.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    schema String
    Type of the external application. Possible values are: PROXY_GATEWAY, API_GATEWAY.
    upstreams List<Property Map>
    Optional. List of which upstream resource(s) to forward traffic to. Structure is documented below.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SecurityGatewayApplication resource produces the following output properties:

    CreateTime string
    Output only. Timestamp when the resource was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Identifier. Name of the resource.
    UpdateTime string
    Output only. Timestamp when the resource was last modified.
    CreateTime string
    Output only. Timestamp when the resource was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Identifier. Name of the resource.
    UpdateTime string
    Output only. Timestamp when the resource was last modified.
    createTime String
    Output only. Timestamp when the resource was created.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Identifier. Name of the resource.
    updateTime String
    Output only. Timestamp when the resource was last modified.
    createTime string
    Output only. Timestamp when the resource was created.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Identifier. Name of the resource.
    updateTime string
    Output only. Timestamp when the resource was last modified.
    create_time str
    Output only. Timestamp when the resource was created.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Identifier. Name of the resource.
    update_time str
    Output only. Timestamp when the resource was last modified.
    createTime String
    Output only. Timestamp when the resource was created.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Identifier. Name of the resource.
    updateTime String
    Output only. Timestamp when the resource was last modified.

    Look up Existing SecurityGatewayApplication Resource

    Get an existing SecurityGatewayApplication resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: SecurityGatewayApplicationState, opts?: CustomResourceOptions): SecurityGatewayApplication
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            application_id: Optional[str] = None,
            create_time: Optional[str] = None,
            display_name: Optional[str] = None,
            endpoint_matchers: Optional[Sequence[SecurityGatewayApplicationEndpointMatcherArgs]] = None,
            name: Optional[str] = None,
            project: Optional[str] = None,
            schema: Optional[str] = None,
            security_gateway_id: Optional[str] = None,
            update_time: Optional[str] = None,
            upstreams: Optional[Sequence[SecurityGatewayApplicationUpstreamArgs]] = None) -> SecurityGatewayApplication
    func GetSecurityGatewayApplication(ctx *Context, name string, id IDInput, state *SecurityGatewayApplicationState, opts ...ResourceOption) (*SecurityGatewayApplication, error)
    public static SecurityGatewayApplication Get(string name, Input<string> id, SecurityGatewayApplicationState? state, CustomResourceOptions? opts = null)
    public static SecurityGatewayApplication get(String name, Output<String> id, SecurityGatewayApplicationState state, CustomResourceOptions options)
    resources:  _:    type: gcp:beyondcorp:SecurityGatewayApplication    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ApplicationId string
    User-settable Application resource ID.

    • Must start with a letter.
    • Must contain between 4-63 characters from /a-z-/.
    • Must end with a number or letter.
    CreateTime string
    Output only. Timestamp when the resource was created.
    DisplayName string
    Optional. An arbitrary user-provided name for the Application resource. Cannot exceed 64 characters.
    EndpointMatchers List<SecurityGatewayApplicationEndpointMatcher>
    Required. Endpoint matchers associated with an application. A combination of hostname and ports as endpoint matcher is used to match the application. Match conditions for OR logic. An array of match conditions to allow for multiple matching criteria. The rule is considered a match if one the conditions are met. The conditions can be one of the following combination (Hostname), (Hostname & Ports) EXAMPLES: Hostname - ("*.abc.com"), ("xyz.abc.com") Hostname and Ports - ("abc.com" and "22"), ("abc.com" and "22,33") etc Structure is documented below.
    Name string
    Identifier. Name of the resource.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    Schema string
    Type of the external application. Possible values are: PROXY_GATEWAY, API_GATEWAY.
    SecurityGatewayId string
    ID of the Security Gateway resource this belongs to.
    UpdateTime string
    Output only. Timestamp when the resource was last modified.
    Upstreams List<SecurityGatewayApplicationUpstream>
    Optional. List of which upstream resource(s) to forward traffic to. Structure is documented below.
    ApplicationId string
    User-settable Application resource ID.

    • Must start with a letter.
    • Must contain between 4-63 characters from /a-z-/.
    • Must end with a number or letter.
    CreateTime string
    Output only. Timestamp when the resource was created.
    DisplayName string
    Optional. An arbitrary user-provided name for the Application resource. Cannot exceed 64 characters.
    EndpointMatchers []SecurityGatewayApplicationEndpointMatcherArgs
    Required. Endpoint matchers associated with an application. A combination of hostname and ports as endpoint matcher is used to match the application. Match conditions for OR logic. An array of match conditions to allow for multiple matching criteria. The rule is considered a match if one the conditions are met. The conditions can be one of the following combination (Hostname), (Hostname & Ports) EXAMPLES: Hostname - ("*.abc.com"), ("xyz.abc.com") Hostname and Ports - ("abc.com" and "22"), ("abc.com" and "22,33") etc Structure is documented below.
    Name string
    Identifier. Name of the resource.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    Schema string
    Type of the external application. Possible values are: PROXY_GATEWAY, API_GATEWAY.
    SecurityGatewayId string
    ID of the Security Gateway resource this belongs to.
    UpdateTime string
    Output only. Timestamp when the resource was last modified.
    Upstreams []SecurityGatewayApplicationUpstreamArgs
    Optional. List of which upstream resource(s) to forward traffic to. Structure is documented below.
    applicationId String
    User-settable Application resource ID.

    • Must start with a letter.
    • Must contain between 4-63 characters from /a-z-/.
    • Must end with a number or letter.
    createTime String
    Output only. Timestamp when the resource was created.
    displayName String
    Optional. An arbitrary user-provided name for the Application resource. Cannot exceed 64 characters.
    endpointMatchers List<SecurityGatewayApplicationEndpointMatcher>
    Required. Endpoint matchers associated with an application. A combination of hostname and ports as endpoint matcher is used to match the application. Match conditions for OR logic. An array of match conditions to allow for multiple matching criteria. The rule is considered a match if one the conditions are met. The conditions can be one of the following combination (Hostname), (Hostname & Ports) EXAMPLES: Hostname - ("*.abc.com"), ("xyz.abc.com") Hostname and Ports - ("abc.com" and "22"), ("abc.com" and "22,33") etc Structure is documented below.
    name String
    Identifier. Name of the resource.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    schema String
    Type of the external application. Possible values are: PROXY_GATEWAY, API_GATEWAY.
    securityGatewayId String
    ID of the Security Gateway resource this belongs to.
    updateTime String
    Output only. Timestamp when the resource was last modified.
    upstreams List<SecurityGatewayApplicationUpstream>
    Optional. List of which upstream resource(s) to forward traffic to. Structure is documented below.
    applicationId string
    User-settable Application resource ID.

    • Must start with a letter.
    • Must contain between 4-63 characters from /a-z-/.
    • Must end with a number or letter.
    createTime string
    Output only. Timestamp when the resource was created.
    displayName string
    Optional. An arbitrary user-provided name for the Application resource. Cannot exceed 64 characters.
    endpointMatchers SecurityGatewayApplicationEndpointMatcher[]
    Required. Endpoint matchers associated with an application. A combination of hostname and ports as endpoint matcher is used to match the application. Match conditions for OR logic. An array of match conditions to allow for multiple matching criteria. The rule is considered a match if one the conditions are met. The conditions can be one of the following combination (Hostname), (Hostname & Ports) EXAMPLES: Hostname - ("*.abc.com"), ("xyz.abc.com") Hostname and Ports - ("abc.com" and "22"), ("abc.com" and "22,33") etc Structure is documented below.
    name string
    Identifier. Name of the resource.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    schema string
    Type of the external application. Possible values are: PROXY_GATEWAY, API_GATEWAY.
    securityGatewayId string
    ID of the Security Gateway resource this belongs to.
    updateTime string
    Output only. Timestamp when the resource was last modified.
    upstreams SecurityGatewayApplicationUpstream[]
    Optional. List of which upstream resource(s) to forward traffic to. Structure is documented below.
    application_id str
    User-settable Application resource ID.

    • Must start with a letter.
    • Must contain between 4-63 characters from /a-z-/.
    • Must end with a number or letter.
    create_time str
    Output only. Timestamp when the resource was created.
    display_name str
    Optional. An arbitrary user-provided name for the Application resource. Cannot exceed 64 characters.
    endpoint_matchers Sequence[SecurityGatewayApplicationEndpointMatcherArgs]
    Required. Endpoint matchers associated with an application. A combination of hostname and ports as endpoint matcher is used to match the application. Match conditions for OR logic. An array of match conditions to allow for multiple matching criteria. The rule is considered a match if one the conditions are met. The conditions can be one of the following combination (Hostname), (Hostname & Ports) EXAMPLES: Hostname - ("*.abc.com"), ("xyz.abc.com") Hostname and Ports - ("abc.com" and "22"), ("abc.com" and "22,33") etc Structure is documented below.
    name str
    Identifier. Name of the resource.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    schema str
    Type of the external application. Possible values are: PROXY_GATEWAY, API_GATEWAY.
    security_gateway_id str
    ID of the Security Gateway resource this belongs to.
    update_time str
    Output only. Timestamp when the resource was last modified.
    upstreams Sequence[SecurityGatewayApplicationUpstreamArgs]
    Optional. List of which upstream resource(s) to forward traffic to. Structure is documented below.
    applicationId String
    User-settable Application resource ID.

    • Must start with a letter.
    • Must contain between 4-63 characters from /a-z-/.
    • Must end with a number or letter.
    createTime String
    Output only. Timestamp when the resource was created.
    displayName String
    Optional. An arbitrary user-provided name for the Application resource. Cannot exceed 64 characters.
    endpointMatchers List<Property Map>
    Required. Endpoint matchers associated with an application. A combination of hostname and ports as endpoint matcher is used to match the application. Match conditions for OR logic. An array of match conditions to allow for multiple matching criteria. The rule is considered a match if one the conditions are met. The conditions can be one of the following combination (Hostname), (Hostname & Ports) EXAMPLES: Hostname - ("*.abc.com"), ("xyz.abc.com") Hostname and Ports - ("abc.com" and "22"), ("abc.com" and "22,33") etc Structure is documented below.
    name String
    Identifier. Name of the resource.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    schema String
    Type of the external application. Possible values are: PROXY_GATEWAY, API_GATEWAY.
    securityGatewayId String
    ID of the Security Gateway resource this belongs to.
    updateTime String
    Output only. Timestamp when the resource was last modified.
    upstreams List<Property Map>
    Optional. List of which upstream resource(s) to forward traffic to. Structure is documented below.

    Supporting Types

    SecurityGatewayApplicationEndpointMatcher, SecurityGatewayApplicationEndpointMatcherArgs

    Hostname string
    Required. Hostname of the application.
    Ports List<int>
    Optional. Ports of the application.
    Hostname string
    Required. Hostname of the application.
    Ports []int
    Optional. Ports of the application.
    hostname String
    Required. Hostname of the application.
    ports List<Integer>
    Optional. Ports of the application.
    hostname string
    Required. Hostname of the application.
    ports number[]
    Optional. Ports of the application.
    hostname str
    Required. Hostname of the application.
    ports Sequence[int]
    Optional. Ports of the application.
    hostname String
    Required. Hostname of the application.
    ports List<Number>
    Optional. Ports of the application.

    SecurityGatewayApplicationUpstream, SecurityGatewayApplicationUpstreamArgs

    EgressPolicy SecurityGatewayApplicationUpstreamEgressPolicy
    Optional. Routing policy information. Structure is documented below.
    External SecurityGatewayApplicationUpstreamExternal
    List of the external endpoints to forward traffic to. Structure is documented below.
    Network SecurityGatewayApplicationUpstreamNetwork
    Network to forward traffic to. Structure is documented below.
    ProxyProtocol SecurityGatewayApplicationUpstreamProxyProtocol
    Shared proxy configuration for all apps. Structure is documented below.
    EgressPolicy SecurityGatewayApplicationUpstreamEgressPolicy
    Optional. Routing policy information. Structure is documented below.
    External SecurityGatewayApplicationUpstreamExternal
    List of the external endpoints to forward traffic to. Structure is documented below.
    Network SecurityGatewayApplicationUpstreamNetwork
    Network to forward traffic to. Structure is documented below.
    ProxyProtocol SecurityGatewayApplicationUpstreamProxyProtocol
    Shared proxy configuration for all apps. Structure is documented below.
    egressPolicy SecurityGatewayApplicationUpstreamEgressPolicy
    Optional. Routing policy information. Structure is documented below.
    external SecurityGatewayApplicationUpstreamExternal
    List of the external endpoints to forward traffic to. Structure is documented below.
    network SecurityGatewayApplicationUpstreamNetwork
    Network to forward traffic to. Structure is documented below.
    proxyProtocol SecurityGatewayApplicationUpstreamProxyProtocol
    Shared proxy configuration for all apps. Structure is documented below.
    egressPolicy SecurityGatewayApplicationUpstreamEgressPolicy
    Optional. Routing policy information. Structure is documented below.
    external SecurityGatewayApplicationUpstreamExternal
    List of the external endpoints to forward traffic to. Structure is documented below.
    network SecurityGatewayApplicationUpstreamNetwork
    Network to forward traffic to. Structure is documented below.
    proxyProtocol SecurityGatewayApplicationUpstreamProxyProtocol
    Shared proxy configuration for all apps. Structure is documented below.
    egress_policy SecurityGatewayApplicationUpstreamEgressPolicy
    Optional. Routing policy information. Structure is documented below.
    external SecurityGatewayApplicationUpstreamExternal
    List of the external endpoints to forward traffic to. Structure is documented below.
    network SecurityGatewayApplicationUpstreamNetwork
    Network to forward traffic to. Structure is documented below.
    proxy_protocol SecurityGatewayApplicationUpstreamProxyProtocol
    Shared proxy configuration for all apps. Structure is documented below.
    egressPolicy Property Map
    Optional. Routing policy information. Structure is documented below.
    external Property Map
    List of the external endpoints to forward traffic to. Structure is documented below.
    network Property Map
    Network to forward traffic to. Structure is documented below.
    proxyProtocol Property Map
    Shared proxy configuration for all apps. Structure is documented below.

    SecurityGatewayApplicationUpstreamEgressPolicy, SecurityGatewayApplicationUpstreamEgressPolicyArgs

    Regions List<string>
    Required. List of regions where the application sends traffic to.
    Regions []string
    Required. List of regions where the application sends traffic to.
    regions List<String>
    Required. List of regions where the application sends traffic to.
    regions string[]
    Required. List of regions where the application sends traffic to.
    regions Sequence[str]
    Required. List of regions where the application sends traffic to.
    regions List<String>
    Required. List of regions where the application sends traffic to.

    SecurityGatewayApplicationUpstreamExternal, SecurityGatewayApplicationUpstreamExternalArgs

    Endpoints List<SecurityGatewayApplicationUpstreamExternalEndpoint>
    List of the endpoints to forward traffic to. Structure is documented below.
    Endpoints []SecurityGatewayApplicationUpstreamExternalEndpoint
    List of the endpoints to forward traffic to. Structure is documented below.
    endpoints List<SecurityGatewayApplicationUpstreamExternalEndpoint>
    List of the endpoints to forward traffic to. Structure is documented below.
    endpoints SecurityGatewayApplicationUpstreamExternalEndpoint[]
    List of the endpoints to forward traffic to. Structure is documented below.
    endpoints Sequence[SecurityGatewayApplicationUpstreamExternalEndpoint]
    List of the endpoints to forward traffic to. Structure is documented below.
    endpoints List<Property Map>
    List of the endpoints to forward traffic to. Structure is documented below.

    SecurityGatewayApplicationUpstreamExternalEndpoint, SecurityGatewayApplicationUpstreamExternalEndpointArgs

    Hostname string
    Hostname of the endpoint.
    Port int
    Port of the endpoint.
    Hostname string
    Hostname of the endpoint.
    Port int
    Port of the endpoint.
    hostname String
    Hostname of the endpoint.
    port Integer
    Port of the endpoint.
    hostname string
    Hostname of the endpoint.
    port number
    Port of the endpoint.
    hostname str
    Hostname of the endpoint.
    port int
    Port of the endpoint.
    hostname String
    Hostname of the endpoint.
    port Number
    Port of the endpoint.

    SecurityGatewayApplicationUpstreamNetwork, SecurityGatewayApplicationUpstreamNetworkArgs

    Name string
    Required. Network name is of the format: projects/{project}/global/networks/{network}
    Name string
    Required. Network name is of the format: projects/{project}/global/networks/{network}
    name String
    Required. Network name is of the format: projects/{project}/global/networks/{network}
    name string
    Required. Network name is of the format: projects/{project}/global/networks/{network}
    name str
    Required. Network name is of the format: projects/{project}/global/networks/{network}
    name String
    Required. Network name is of the format: projects/{project}/global/networks/{network}

    SecurityGatewayApplicationUpstreamProxyProtocol, SecurityGatewayApplicationUpstreamProxyProtocolArgs

    AllowedClientHeaders List<string>
    The configuration for the proxy.
    ClientIp bool
    Client IP configuration. The client IP address is included if true.
    ContextualHeaders SecurityGatewayApplicationUpstreamProxyProtocolContextualHeaders
    Configuration for the contextual headers. Structure is documented below.
    GatewayIdentity string
    Gateway identity configuration. Possible values are: RESOURCE_NAME.
    MetadataHeaders Dictionary<string, string>

    Custom resource specific headers along with the values. The names should conform to RFC 9110:

    Field names SHOULD constrain themselves to alphanumeric characters, "-", and ".", and SHOULD begin with a letter. Field values SHOULD contain only ASCII printable characters and tab.

    AllowedClientHeaders []string
    The configuration for the proxy.
    ClientIp bool
    Client IP configuration. The client IP address is included if true.
    ContextualHeaders SecurityGatewayApplicationUpstreamProxyProtocolContextualHeaders
    Configuration for the contextual headers. Structure is documented below.
    GatewayIdentity string
    Gateway identity configuration. Possible values are: RESOURCE_NAME.
    MetadataHeaders map[string]string

    Custom resource specific headers along with the values. The names should conform to RFC 9110:

    Field names SHOULD constrain themselves to alphanumeric characters, "-", and ".", and SHOULD begin with a letter. Field values SHOULD contain only ASCII printable characters and tab.

    allowedClientHeaders List<String>
    The configuration for the proxy.
    clientIp Boolean
    Client IP configuration. The client IP address is included if true.
    contextualHeaders SecurityGatewayApplicationUpstreamProxyProtocolContextualHeaders
    Configuration for the contextual headers. Structure is documented below.
    gatewayIdentity String
    Gateway identity configuration. Possible values are: RESOURCE_NAME.
    metadataHeaders Map<String,String>

    Custom resource specific headers along with the values. The names should conform to RFC 9110:

    Field names SHOULD constrain themselves to alphanumeric characters, "-", and ".", and SHOULD begin with a letter. Field values SHOULD contain only ASCII printable characters and tab.

    allowedClientHeaders string[]
    The configuration for the proxy.
    clientIp boolean
    Client IP configuration. The client IP address is included if true.
    contextualHeaders SecurityGatewayApplicationUpstreamProxyProtocolContextualHeaders
    Configuration for the contextual headers. Structure is documented below.
    gatewayIdentity string
    Gateway identity configuration. Possible values are: RESOURCE_NAME.
    metadataHeaders {[key: string]: string}

    Custom resource specific headers along with the values. The names should conform to RFC 9110:

    Field names SHOULD constrain themselves to alphanumeric characters, "-", and ".", and SHOULD begin with a letter. Field values SHOULD contain only ASCII printable characters and tab.

    allowed_client_headers Sequence[str]
    The configuration for the proxy.
    client_ip bool
    Client IP configuration. The client IP address is included if true.
    contextual_headers SecurityGatewayApplicationUpstreamProxyProtocolContextualHeaders
    Configuration for the contextual headers. Structure is documented below.
    gateway_identity str
    Gateway identity configuration. Possible values are: RESOURCE_NAME.
    metadata_headers Mapping[str, str]

    Custom resource specific headers along with the values. The names should conform to RFC 9110:

    Field names SHOULD constrain themselves to alphanumeric characters, "-", and ".", and SHOULD begin with a letter. Field values SHOULD contain only ASCII printable characters and tab.

    allowedClientHeaders List<String>
    The configuration for the proxy.
    clientIp Boolean
    Client IP configuration. The client IP address is included if true.
    contextualHeaders Property Map
    Configuration for the contextual headers. Structure is documented below.
    gatewayIdentity String
    Gateway identity configuration. Possible values are: RESOURCE_NAME.
    metadataHeaders Map<String>

    Custom resource specific headers along with the values. The names should conform to RFC 9110:

    Field names SHOULD constrain themselves to alphanumeric characters, "-", and ".", and SHOULD begin with a letter. Field values SHOULD contain only ASCII printable characters and tab.

    SecurityGatewayApplicationUpstreamProxyProtocolContextualHeaders, SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersArgs

    DeviceInfo SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersDeviceInfo
    Device info configuration. Structure is documented below.
    GroupInfo SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersGroupInfo
    Group info configuration. Structure is documented below.
    OutputType string
    Default output type for all enabled headers. Possible values are: PROTOBUF, JSON, NONE.
    UserInfo SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersUserInfo
    User info configuration. Structure is documented below.
    DeviceInfo SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersDeviceInfo
    Device info configuration. Structure is documented below.
    GroupInfo SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersGroupInfo
    Group info configuration. Structure is documented below.
    OutputType string
    Default output type for all enabled headers. Possible values are: PROTOBUF, JSON, NONE.
    UserInfo SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersUserInfo
    User info configuration. Structure is documented below.
    deviceInfo SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersDeviceInfo
    Device info configuration. Structure is documented below.
    groupInfo SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersGroupInfo
    Group info configuration. Structure is documented below.
    outputType String
    Default output type for all enabled headers. Possible values are: PROTOBUF, JSON, NONE.
    userInfo SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersUserInfo
    User info configuration. Structure is documented below.
    deviceInfo SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersDeviceInfo
    Device info configuration. Structure is documented below.
    groupInfo SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersGroupInfo
    Group info configuration. Structure is documented below.
    outputType string
    Default output type for all enabled headers. Possible values are: PROTOBUF, JSON, NONE.
    userInfo SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersUserInfo
    User info configuration. Structure is documented below.
    device_info SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersDeviceInfo
    Device info configuration. Structure is documented below.
    group_info SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersGroupInfo
    Group info configuration. Structure is documented below.
    output_type str
    Default output type for all enabled headers. Possible values are: PROTOBUF, JSON, NONE.
    user_info SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersUserInfo
    User info configuration. Structure is documented below.
    deviceInfo Property Map
    Device info configuration. Structure is documented below.
    groupInfo Property Map
    Group info configuration. Structure is documented below.
    outputType String
    Default output type for all enabled headers. Possible values are: PROTOBUF, JSON, NONE.
    userInfo Property Map
    User info configuration. Structure is documented below.

    SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersDeviceInfo, SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersDeviceInfoArgs

    OutputType string
    The output type of the delegated device info. Possible values are: PROTOBUF, JSON, NONE.
    OutputType string
    The output type of the delegated device info. Possible values are: PROTOBUF, JSON, NONE.
    outputType String
    The output type of the delegated device info. Possible values are: PROTOBUF, JSON, NONE.
    outputType string
    The output type of the delegated device info. Possible values are: PROTOBUF, JSON, NONE.
    output_type str
    The output type of the delegated device info. Possible values are: PROTOBUF, JSON, NONE.
    outputType String
    The output type of the delegated device info. Possible values are: PROTOBUF, JSON, NONE.

    SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersGroupInfo, SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersGroupInfoArgs

    OutputType string
    The output type of the delegated group info. Possible values are: PROTOBUF, JSON, NONE.
    OutputType string
    The output type of the delegated group info. Possible values are: PROTOBUF, JSON, NONE.
    outputType String
    The output type of the delegated group info. Possible values are: PROTOBUF, JSON, NONE.
    outputType string
    The output type of the delegated group info. Possible values are: PROTOBUF, JSON, NONE.
    output_type str
    The output type of the delegated group info. Possible values are: PROTOBUF, JSON, NONE.
    outputType String
    The output type of the delegated group info. Possible values are: PROTOBUF, JSON, NONE.

    SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersUserInfo, SecurityGatewayApplicationUpstreamProxyProtocolContextualHeadersUserInfoArgs

    OutputType string
    The output type of the delegated user info. Possible values are: PROTOBUF, JSON, NONE.
    OutputType string
    The output type of the delegated user info. Possible values are: PROTOBUF, JSON, NONE.
    outputType String
    The output type of the delegated user info. Possible values are: PROTOBUF, JSON, NONE.
    outputType string
    The output type of the delegated user info. Possible values are: PROTOBUF, JSON, NONE.
    output_type str
    The output type of the delegated user info. Possible values are: PROTOBUF, JSON, NONE.
    outputType String
    The output type of the delegated user info. Possible values are: PROTOBUF, JSON, NONE.

    Import

    SecurityGatewayApplication can be imported using any of these accepted formats:

    • projects/{{project}}/locations/global/securityGateways/{{security_gateway_id}}/applications/{{application_id}}

    • {{project}}/{{security_gateway_id}}/{{application_id}}

    • {{security_gateway_id}}/{{application_id}}

    When using the pulumi import command, SecurityGatewayApplication can be imported using one of the formats above. For example:

    $ pulumi import gcp:beyondcorp/securityGatewayApplication:SecurityGatewayApplication default projects/{{project}}/locations/global/securityGateways/{{security_gateway_id}}/applications/{{application_id}}
    
    $ pulumi import gcp:beyondcorp/securityGatewayApplication:SecurityGatewayApplication default {{project}}/{{security_gateway_id}}/{{application_id}}
    
    $ pulumi import gcp:beyondcorp/securityGatewayApplication:SecurityGatewayApplication default {{security_gateway_id}}/{{application_id}}
    

    To learn more about importing existing cloud resources, see Importing resources.

    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 v9.4.0 published on Tuesday, Nov 4, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate