Google Cloud v8.27.0 published on Thursday, Apr 17, 2025 by Pulumi
gcp.apphub.getApplication
Explore with Pulumi AI
Application is a functional grouping of Services and Workloads that helps achieve a desired end-to-end business functionality. Services and Workloads are owned by the Application.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const application = gcp.apphub.getApplication({
    project: "project-id",
    applicationId: "application",
    location: "location",
});
import pulumi
import pulumi_gcp as gcp
application = gcp.apphub.get_application(project="project-id",
    application_id="application",
    location="location")
package main
import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/apphub"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := apphub.LookupApplication(ctx, &apphub.LookupApplicationArgs{
			Project:       "project-id",
			ApplicationId: "application",
			Location:      "location",
		}, 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 application = Gcp.Apphub.GetApplication.Invoke(new()
    {
        Project = "project-id",
        ApplicationId = "application",
        Location = "location",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.apphub.ApphubFunctions;
import com.pulumi.gcp.apphub.inputs.GetApplicationArgs;
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 application = ApphubFunctions.getApplication(GetApplicationArgs.builder()
            .project("project-id")
            .applicationId("application")
            .location("location")
            .build());
    }
}
variables:
  application:
    fn::invoke:
      function: gcp:apphub:getApplication
      arguments:
        project: project-id
        applicationId: application
        location: location
Using getApplication
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 getApplication(args: GetApplicationArgs, opts?: InvokeOptions): Promise<GetApplicationResult>
function getApplicationOutput(args: GetApplicationOutputArgs, opts?: InvokeOptions): Output<GetApplicationResult>def get_application(application_id: Optional[str] = None,
                    location: Optional[str] = None,
                    project: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetApplicationResult
def get_application_output(application_id: Optional[pulumi.Input[str]] = None,
                    location: Optional[pulumi.Input[str]] = None,
                    project: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetApplicationResult]func LookupApplication(ctx *Context, args *LookupApplicationArgs, opts ...InvokeOption) (*LookupApplicationResult, error)
func LookupApplicationOutput(ctx *Context, args *LookupApplicationOutputArgs, opts ...InvokeOption) LookupApplicationResultOutput> Note: This function is named LookupApplication in the Go SDK.
public static class GetApplication 
{
    public static Task<GetApplicationResult> InvokeAsync(GetApplicationArgs args, InvokeOptions? opts = null)
    public static Output<GetApplicationResult> Invoke(GetApplicationInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetApplicationResult> getApplication(GetApplicationArgs args, InvokeOptions options)
public static Output<GetApplicationResult> getApplication(GetApplicationArgs args, InvokeOptions options)
fn::invoke:
  function: gcp:apphub/getApplication:getApplication
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Application
Id string - Location string
 - Project string
 
- Application
Id string - Location string
 - Project string
 
- application
Id String - location String
 - project String
 
- application
Id string - location string
 - project string
 
- application_
id str - location str
 - project str
 
- application
Id String - location String
 - project String
 
getApplication Result
The following output properties are available:
- Application
Id string - Attributes
List<Get
Application Attribute>  - Create
Time string - Description string
 - Display
Name string - Id string
 - The provider-assigned unique ID for this managed resource.
 - Location string
 - Name string
 - Project string
 - Scopes
List<Get
Application Scope>  - State string
 - Uid string
 - Update
Time string 
- Application
Id string - Attributes
[]Get
Application Attribute  - Create
Time string - Description string
 - Display
Name string - Id string
 - The provider-assigned unique ID for this managed resource.
 - Location string
 - Name string
 - Project string
 - Scopes
[]Get
Application Scope  - State string
 - Uid string
 - Update
Time string 
- application
Id String - attributes
List<Get
Application Attribute>  - create
Time String - description String
 - display
Name String - id String
 - The provider-assigned unique ID for this managed resource.
 - location String
 - name String
 - project String
 - scopes
List<Get
Application Scope>  - state String
 - uid String
 - update
Time String 
- application
Id string - attributes
Get
Application Attribute[]  - create
Time string - description string
 - display
Name string - id string
 - The provider-assigned unique ID for this managed resource.
 - location string
 - name string
 - project string
 - scopes
Get
Application Scope[]  - state string
 - uid string
 - update
Time string 
- application_
id str - attributes
Sequence[Get
Application Attribute]  - create_
time str - description str
 - display_
name str - id str
 - The provider-assigned unique ID for this managed resource.
 - location str
 - name str
 - project str
 - scopes
Sequence[Get
Application Scope]  - state str
 - uid str
 - update_
time str 
- application
Id String - attributes List<Property Map>
 - create
Time String - description String
 - display
Name String - id String
 - The provider-assigned unique ID for this managed resource.
 - location String
 - name String
 - project String
 - scopes List<Property Map>
 - state String
 - uid String
 - update
Time String 
Supporting Types
GetApplicationAttribute  
- Business
Owners List<GetApplication Attribute Business Owner>  - Optional. Business team that ensures user needs are met and value is delivered
 - Criticalities
List<Get
Application Attribute Criticality>  - Criticality of the Application, Service, or Workload
 - Developer
Owners List<GetApplication Attribute Developer Owner>  - Optional. Developer team that owns development and coding.
 - Environments
List<Get
Application Attribute Environment>  - Environment of the Application, Service, or Workload
 - Operator
Owners List<GetApplication Attribute Operator Owner>  - Optional. Operator team that ensures runtime and operations.
 
- Business
Owners []GetApplication Attribute Business Owner  - Optional. Business team that ensures user needs are met and value is delivered
 - Criticalities
[]Get
Application Attribute Criticality  - Criticality of the Application, Service, or Workload
 - Developer
Owners []GetApplication Attribute Developer Owner  - Optional. Developer team that owns development and coding.
 - Environments
[]Get
Application Attribute Environment  - Environment of the Application, Service, or Workload
 - Operator
Owners []GetApplication Attribute Operator Owner  - Optional. Operator team that ensures runtime and operations.
 
- business
Owners List<GetApplication Attribute Business Owner>  - Optional. Business team that ensures user needs are met and value is delivered
 - criticalities
List<Get
Application Attribute Criticality>  - Criticality of the Application, Service, or Workload
 - developer
Owners List<GetApplication Attribute Developer Owner>  - Optional. Developer team that owns development and coding.
 - environments
List<Get
Application Attribute Environment>  - Environment of the Application, Service, or Workload
 - operator
Owners List<GetApplication Attribute Operator Owner>  - Optional. Operator team that ensures runtime and operations.
 
- business
Owners GetApplication Attribute Business Owner[]  - Optional. Business team that ensures user needs are met and value is delivered
 - criticalities
Get
Application Attribute Criticality[]  - Criticality of the Application, Service, or Workload
 - developer
Owners GetApplication Attribute Developer Owner[]  - Optional. Developer team that owns development and coding.
 - environments
Get
Application Attribute Environment[]  - Environment of the Application, Service, or Workload
 - operator
Owners GetApplication Attribute Operator Owner[]  - Optional. Operator team that ensures runtime and operations.
 
- business_
owners Sequence[GetApplication Attribute Business Owner]  - Optional. Business team that ensures user needs are met and value is delivered
 - criticalities
Sequence[Get
Application Attribute Criticality]  - Criticality of the Application, Service, or Workload
 - developer_
owners Sequence[GetApplication Attribute Developer Owner]  - Optional. Developer team that owns development and coding.
 - environments
Sequence[Get
Application Attribute Environment]  - Environment of the Application, Service, or Workload
 - operator_
owners Sequence[GetApplication Attribute Operator Owner]  - Optional. Operator team that ensures runtime and operations.
 
- business
Owners List<Property Map> - Optional. Business team that ensures user needs are met and value is delivered
 - criticalities List<Property Map>
 - Criticality of the Application, Service, or Workload
 - developer
Owners List<Property Map> - Optional. Developer team that owns development and coding.
 - environments List<Property Map>
 - Environment of the Application, Service, or Workload
 - operator
Owners List<Property Map> - Optional. Operator team that ensures runtime and operations.
 
GetApplicationAttributeBusinessOwner    
- Display
Name string - Optional. Contact's name.
 - Email string
 - Required. Email address of the contacts.
 
- Display
Name string - Optional. Contact's name.
 - Email string
 - Required. Email address of the contacts.
 
- display
Name String - Optional. Contact's name.
 - email String
 - Required. Email address of the contacts.
 
- display
Name string - Optional. Contact's name.
 - email string
 - Required. Email address of the contacts.
 
- display_
name str - Optional. Contact's name.
 - email str
 - Required. Email address of the contacts.
 
- display
Name String - Optional. Contact's name.
 - email String
 - Required. Email address of the contacts.
 
GetApplicationAttributeCriticality   
- Type string
 - Criticality type. Possible values: ["MISSION_CRITICAL", "HIGH", "MEDIUM", "LOW"]
 
- Type string
 - Criticality type. Possible values: ["MISSION_CRITICAL", "HIGH", "MEDIUM", "LOW"]
 
- type String
 - Criticality type. Possible values: ["MISSION_CRITICAL", "HIGH", "MEDIUM", "LOW"]
 
- type string
 - Criticality type. Possible values: ["MISSION_CRITICAL", "HIGH", "MEDIUM", "LOW"]
 
- type str
 - Criticality type. Possible values: ["MISSION_CRITICAL", "HIGH", "MEDIUM", "LOW"]
 
- type String
 - Criticality type. Possible values: ["MISSION_CRITICAL", "HIGH", "MEDIUM", "LOW"]
 
GetApplicationAttributeDeveloperOwner    
- Display
Name string - Optional. Contact's name.
 - Email string
 - Required. Email address of the contacts.
 
- Display
Name string - Optional. Contact's name.
 - Email string
 - Required. Email address of the contacts.
 
- display
Name String - Optional. Contact's name.
 - email String
 - Required. Email address of the contacts.
 
- display
Name string - Optional. Contact's name.
 - email string
 - Required. Email address of the contacts.
 
- display_
name str - Optional. Contact's name.
 - email str
 - Required. Email address of the contacts.
 
- display
Name String - Optional. Contact's name.
 - email String
 - Required. Email address of the contacts.
 
GetApplicationAttributeEnvironment   
- Type string
 - Environment type. Possible values: ["PRODUCTION", "STAGING", "TEST", "DEVELOPMENT"]
 
- Type string
 - Environment type. Possible values: ["PRODUCTION", "STAGING", "TEST", "DEVELOPMENT"]
 
- type String
 - Environment type. Possible values: ["PRODUCTION", "STAGING", "TEST", "DEVELOPMENT"]
 
- type string
 - Environment type. Possible values: ["PRODUCTION", "STAGING", "TEST", "DEVELOPMENT"]
 
- type str
 - Environment type. Possible values: ["PRODUCTION", "STAGING", "TEST", "DEVELOPMENT"]
 
- type String
 - Environment type. Possible values: ["PRODUCTION", "STAGING", "TEST", "DEVELOPMENT"]
 
GetApplicationAttributeOperatorOwner    
- Display
Name string - Optional. Contact's name.
 - Email string
 - Required. Email address of the contacts.
 
- Display
Name string - Optional. Contact's name.
 - Email string
 - Required. Email address of the contacts.
 
- display
Name String - Optional. Contact's name.
 - email String
 - Required. Email address of the contacts.
 
- display
Name string - Optional. Contact's name.
 - email string
 - Required. Email address of the contacts.
 
- display_
name str - Optional. Contact's name.
 - email str
 - Required. Email address of the contacts.
 
- display
Name String - Optional. Contact's name.
 - email String
 - Required. Email address of the contacts.
 
GetApplicationScope  
- Type string
 - Required. Scope Type. Possible values: REGIONAL GLOBAL Possible values: ["REGIONAL", "GLOBAL"]
 
- Type string
 - Required. Scope Type. Possible values: REGIONAL GLOBAL Possible values: ["REGIONAL", "GLOBAL"]
 
- type String
 - Required. Scope Type. Possible values: REGIONAL GLOBAL Possible values: ["REGIONAL", "GLOBAL"]
 
- type string
 - Required. Scope Type. Possible values: REGIONAL GLOBAL Possible values: ["REGIONAL", "GLOBAL"]
 
- type str
 - Required. Scope Type. Possible values: REGIONAL GLOBAL Possible values: ["REGIONAL", "GLOBAL"]
 
- type String
 - Required. Scope Type. Possible values: REGIONAL GLOBAL Possible values: ["REGIONAL", "GLOBAL"]
 
Package Details
- Repository
 - Google Cloud (GCP) Classic pulumi/pulumi-gcp
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
google-betaTerraform Provider.