1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. beyondcorp
  5. getAppConnection
Google Cloud Classic v7.20.0 published on Wednesday, Apr 24, 2024 by Pulumi

gcp.beyondcorp.getAppConnection

Explore with Pulumi AI

gcp logo
Google Cloud Classic v7.20.0 published on Wednesday, Apr 24, 2024 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",
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    my_beyondcorp_app_connection = gcp.beyondcorp.get_app_connection(name="my-beyondcorp-app-connection")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v7/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
    	})
    }
    
    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",
        });
    
    });
    
    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());
    
        }
    }
    
    variables:
      my-beyondcorp-app-connection:
        fn::invoke:
          Function: gcp:beyondcorp:getAppConnection
          Arguments:
            name: my-beyondcorp-app-connection
    

    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>
    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]
    func LookupAppConnection(ctx *Context, args *LookupAppConnectionArgs, opts ...InvokeOption) (*LookupAppConnectionResult, error)
    func LookupAppConnectionOutput(ctx *Context, args *LookupAppConnectionOutputArgs, opts ...InvokeOption) LookupAppConnectionResultOutput

    > 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)
    }
    public static CompletableFuture<GetAppConnectionResult> getAppConnection(GetAppConnectionArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: gcp:beyondcorp/getAppConnection:getAppConnection
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name 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 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 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 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 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 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 string
    Hostname or IP address of the remote application endpoint.
    Port int
    Port of the remote application endpoint.
    Host string
    Hostname or IP address of the remote application endpoint.
    Port int
    Port of the remote application endpoint.
    host String
    Hostname or IP address of the remote application endpoint.
    port Integer
    Port of the remote application endpoint.
    host string
    Hostname or IP address of the remote application endpoint.
    port number
    Port of the remote application endpoint.
    host str
    Hostname or IP address of the remote application endpoint.
    port int
    Port of the remote application endpoint.
    host String
    Hostname or IP address of the remote application endpoint.
    port Number
    Port of the remote application endpoint.

    GetAppConnectionGateway

    AppGateway string
    AppGateway name in following format: projects/{project_id}/locations/{locationId}/appgateways/{gateway_id}.
    IngressPort int
    Ingress port reserved on the gateways for this AppConnection, if not specified or zero, the default port is 19443.
    Type 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 string
    Server-defined URI for this resource.
    AppGateway string
    AppGateway name in following format: projects/{project_id}/locations/{locationId}/appgateways/{gateway_id}.
    IngressPort int
    Ingress port reserved on the gateways for this AppConnection, if not specified or zero, the default port is 19443.
    Type 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 string
    Server-defined URI for this resource.
    appGateway String
    AppGateway name in following format: projects/{project_id}/locations/{locationId}/appgateways/{gateway_id}.
    ingressPort Integer
    Ingress port reserved on the gateways for this AppConnection, if not specified or zero, the default port is 19443.
    type 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 String
    Server-defined URI for this resource.
    appGateway string
    AppGateway name in following format: projects/{project_id}/locations/{locationId}/appgateways/{gateway_id}.
    ingressPort number
    Ingress port reserved on the gateways for this AppConnection, if not specified or zero, the default port is 19443.
    type 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 string
    Server-defined URI for this resource.
    app_gateway str
    AppGateway name in following format: projects/{project_id}/locations/{locationId}/appgateways/{gateway_id}.
    ingress_port int
    Ingress port reserved on the gateways for this AppConnection, if not specified or zero, the default port is 19443.
    type 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 str
    Server-defined URI for this resource.
    appGateway String
    AppGateway name in following format: projects/{project_id}/locations/{locationId}/appgateways/{gateway_id}.
    ingressPort Number
    Ingress port reserved on the gateways for this AppConnection, if not specified or zero, the default port is 19443.
    type 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 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.
    gcp logo
    Google Cloud Classic v7.20.0 published on Wednesday, Apr 24, 2024 by Pulumi