1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. beyondcorp
  5. getAppConnection
Google Cloud v8.26.0 published on Thursday, Apr 10, 2025 by Pulumi

gcp.beyondcorp.getAppConnection

Explore with Pulumi AI

Google Cloud v8.26.0 published on Thursday, Apr 10, 2025 by Pulumi

Get information about a Google BeyondCorp App Connection.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const my_beyondcorp_app_connection = gcp.beyondcorp.getAppConnection({
    name: "my-beyondcorp-app-connection",
});
Copy
import pulumi
import pulumi_gcp as gcp

my_beyondcorp_app_connection = gcp.beyondcorp.get_app_connection(name="my-beyondcorp-app-connection")
Copy
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/beyondcorp"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := beyondcorp.LookupAppConnection(ctx, &beyondcorp.LookupAppConnectionArgs{
			Name: "my-beyondcorp-app-connection",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    var my_beyondcorp_app_connection = Gcp.Beyondcorp.GetAppConnection.Invoke(new()
    {
        Name = "my-beyondcorp-app-connection",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.beyondcorp.BeyondcorpFunctions;
import com.pulumi.gcp.beyondcorp.inputs.GetAppConnectionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var my-beyondcorp-app-connection = BeyondcorpFunctions.getAppConnection(GetAppConnectionArgs.builder()
            .name("my-beyondcorp-app-connection")
            .build());

    }
}
Copy
variables:
  my-beyondcorp-app-connection:
    fn::invoke:
      function: gcp:beyondcorp:getAppConnection
      arguments:
        name: my-beyondcorp-app-connection
Copy

Using getAppConnection

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getAppConnection(args: GetAppConnectionArgs, opts?: InvokeOptions): Promise<GetAppConnectionResult>
function getAppConnectionOutput(args: GetAppConnectionOutputArgs, opts?: InvokeOptions): Output<GetAppConnectionResult>
Copy
def get_app_connection(name: Optional[str] = None,
                       project: Optional[str] = None,
                       region: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetAppConnectionResult
def get_app_connection_output(name: Optional[pulumi.Input[str]] = None,
                       project: Optional[pulumi.Input[str]] = None,
                       region: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetAppConnectionResult]
Copy
func LookupAppConnection(ctx *Context, args *LookupAppConnectionArgs, opts ...InvokeOption) (*LookupAppConnectionResult, error)
func LookupAppConnectionOutput(ctx *Context, args *LookupAppConnectionOutputArgs, opts ...InvokeOption) LookupAppConnectionResultOutput
Copy

> Note: This function is named LookupAppConnection in the Go SDK.

public static class GetAppConnection 
{
    public static Task<GetAppConnectionResult> InvokeAsync(GetAppConnectionArgs args, InvokeOptions? opts = null)
    public static Output<GetAppConnectionResult> Invoke(GetAppConnectionInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetAppConnectionResult> getAppConnection(GetAppConnectionArgs args, InvokeOptions options)
public static Output<GetAppConnectionResult> getAppConnection(GetAppConnectionArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: gcp:beyondcorp/getAppConnection:getAppConnection
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. string
The name of the App Connection.


Project string
The project in which the resource belongs. If it is not provided, the provider project is used.
Region string
The region in which the resource belongs. If it is not provided, the provider region is used.
Name This property is required. string
The name of the App Connection.


Project string
The project in which the resource belongs. If it is not provided, the provider project is used.
Region string
The region in which the resource belongs. If it is not provided, the provider region is used.
name This property is required. String
The name of the App Connection.


project String
The project in which the resource belongs. If it is not provided, the provider project is used.
region String
The region in which the resource belongs. If it is not provided, the provider region is used.
name This property is required. string
The name of the App Connection.


project string
The project in which the resource belongs. If it is not provided, the provider project is used.
region string
The region in which the resource belongs. If it is not provided, the provider region is used.
name This property is required. str
The name of the App Connection.


project str
The project in which the resource belongs. If it is not provided, the provider project is used.
region str
The region in which the resource belongs. If it is not provided, the provider region is used.
name This property is required. String
The name of the App Connection.


project String
The project in which the resource belongs. If it is not provided, the provider project is used.
region String
The region in which the resource belongs. If it is not provided, the provider region is used.

getAppConnection Result

The following output properties are available:

ApplicationEndpoints List<GetAppConnectionApplicationEndpoint>
Connectors List<string>
DisplayName string
EffectiveLabels Dictionary<string, string>
Gateways List<GetAppConnectionGateway>
Id string
The provider-assigned unique ID for this managed resource.
Labels Dictionary<string, string>
Name string
PulumiLabels Dictionary<string, string>
Type string
Project string
Region string
ApplicationEndpoints []GetAppConnectionApplicationEndpoint
Connectors []string
DisplayName string
EffectiveLabels map[string]string
Gateways []GetAppConnectionGateway
Id string
The provider-assigned unique ID for this managed resource.
Labels map[string]string
Name string
PulumiLabels map[string]string
Type string
Project string
Region string
applicationEndpoints List<GetAppConnectionApplicationEndpoint>
connectors List<String>
displayName String
effectiveLabels Map<String,String>
gateways List<GetAppConnectionGateway>
id String
The provider-assigned unique ID for this managed resource.
labels Map<String,String>
name String
pulumiLabels Map<String,String>
type String
project String
region String
applicationEndpoints GetAppConnectionApplicationEndpoint[]
connectors string[]
displayName string
effectiveLabels {[key: string]: string}
gateways GetAppConnectionGateway[]
id string
The provider-assigned unique ID for this managed resource.
labels {[key: string]: string}
name string
pulumiLabels {[key: string]: string}
type string
project string
region string
application_endpoints Sequence[GetAppConnectionApplicationEndpoint]
connectors Sequence[str]
display_name str
effective_labels Mapping[str, str]
gateways Sequence[GetAppConnectionGateway]
id str
The provider-assigned unique ID for this managed resource.
labels Mapping[str, str]
name str
pulumi_labels Mapping[str, str]
type str
project str
region str
applicationEndpoints List<Property Map>
connectors List<String>
displayName String
effectiveLabels Map<String>
gateways List<Property Map>
id String
The provider-assigned unique ID for this managed resource.
labels Map<String>
name String
pulumiLabels Map<String>
type String
project String
region String

Supporting Types

GetAppConnectionApplicationEndpoint

Host This property is required. string
Hostname or IP address of the remote application endpoint.
Port This property is required. int
Port of the remote application endpoint.
Host This property is required. string
Hostname or IP address of the remote application endpoint.
Port This property is required. int
Port of the remote application endpoint.
host This property is required. String
Hostname or IP address of the remote application endpoint.
port This property is required. Integer
Port of the remote application endpoint.
host This property is required. string
Hostname or IP address of the remote application endpoint.
port This property is required. number
Port of the remote application endpoint.
host This property is required. str
Hostname or IP address of the remote application endpoint.
port This property is required. int
Port of the remote application endpoint.
host This property is required. String
Hostname or IP address of the remote application endpoint.
port This property is required. Number
Port of the remote application endpoint.

GetAppConnectionGateway

AppGateway This property is required. string
AppGateway name in following format: projects/{project_id}/locations/{locationId}/appgateways/{gateway_id}.
IngressPort This property is required. int
Ingress port reserved on the gateways for this AppConnection, if not specified or zero, the default port is 19443.
Type This property is required. string
The type of hosting used by the gateway. Refer to https://cloud.google.com/beyondcorp/docs/reference/rest/v1/projects.locations.appConnections#Type_1 for a list of possible values.
Uri This property is required. string
Server-defined URI for this resource.
AppGateway This property is required. string
AppGateway name in following format: projects/{project_id}/locations/{locationId}/appgateways/{gateway_id}.
IngressPort This property is required. int
Ingress port reserved on the gateways for this AppConnection, if not specified or zero, the default port is 19443.
Type This property is required. string
The type of hosting used by the gateway. Refer to https://cloud.google.com/beyondcorp/docs/reference/rest/v1/projects.locations.appConnections#Type_1 for a list of possible values.
Uri This property is required. string
Server-defined URI for this resource.
appGateway This property is required. String
AppGateway name in following format: projects/{project_id}/locations/{locationId}/appgateways/{gateway_id}.
ingressPort This property is required. Integer
Ingress port reserved on the gateways for this AppConnection, if not specified or zero, the default port is 19443.
type This property is required. String
The type of hosting used by the gateway. Refer to https://cloud.google.com/beyondcorp/docs/reference/rest/v1/projects.locations.appConnections#Type_1 for a list of possible values.
uri This property is required. String
Server-defined URI for this resource.
appGateway This property is required. string
AppGateway name in following format: projects/{project_id}/locations/{locationId}/appgateways/{gateway_id}.
ingressPort This property is required. number
Ingress port reserved on the gateways for this AppConnection, if not specified or zero, the default port is 19443.
type This property is required. string
The type of hosting used by the gateway. Refer to https://cloud.google.com/beyondcorp/docs/reference/rest/v1/projects.locations.appConnections#Type_1 for a list of possible values.
uri This property is required. string
Server-defined URI for this resource.
app_gateway This property is required. str
AppGateway name in following format: projects/{project_id}/locations/{locationId}/appgateways/{gateway_id}.
ingress_port This property is required. int
Ingress port reserved on the gateways for this AppConnection, if not specified or zero, the default port is 19443.
type This property is required. str
The type of hosting used by the gateway. Refer to https://cloud.google.com/beyondcorp/docs/reference/rest/v1/projects.locations.appConnections#Type_1 for a list of possible values.
uri This property is required. str
Server-defined URI for this resource.
appGateway This property is required. String
AppGateway name in following format: projects/{project_id}/locations/{locationId}/appgateways/{gateway_id}.
ingressPort This property is required. Number
Ingress port reserved on the gateways for this AppConnection, if not specified or zero, the default port is 19443.
type This property is required. String
The type of hosting used by the gateway. Refer to https://cloud.google.com/beyondcorp/docs/reference/rest/v1/projects.locations.appConnections#Type_1 for a list of possible values.
uri This property is required. String
Server-defined URI for this resource.

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.
Google Cloud v8.26.0 published on Thursday, Apr 10, 2025 by Pulumi