Google Cloud v8.21.0 published on Wednesday, Mar 5, 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:
- ApplicationId string
- Location string
- Project string
- ApplicationId string
- Location string
- Project string
- applicationId String
- location String
- project String
- applicationId string
- location string
- project string
- application_id str
- location str
- project str
- applicationId String
- location String
- project String
getApplication Result
The following output properties are available:
- ApplicationId string
- Attributes
List<GetApplication Attribute> 
- CreateTime string
- Description string
- DisplayName string
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- Name string
- Project string
- Scopes
List<GetApplication Scope> 
- State string
- Uid string
- UpdateTime string
- ApplicationId string
- Attributes
[]GetApplication Attribute 
- CreateTime string
- Description string
- DisplayName string
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- Name string
- Project string
- Scopes
[]GetApplication Scope 
- State string
- Uid string
- UpdateTime string
- applicationId String
- attributes
List<GetApplication Attribute> 
- createTime String
- description String
- displayName String
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- name String
- project String
- scopes
List<GetApplication Scope> 
- state String
- uid String
- updateTime String
- applicationId string
- attributes
GetApplication Attribute[] 
- createTime string
- description string
- displayName string
- id string
- The provider-assigned unique ID for this managed resource.
- location string
- name string
- project string
- scopes
GetApplication Scope[] 
- state string
- uid string
- updateTime string
- application_id str
- attributes
Sequence[GetApplication 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[GetApplication Scope] 
- state str
- uid str
- update_time str
- applicationId String
- attributes List<Property Map>
- createTime String
- description String
- displayName 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
- updateTime String
Supporting Types
GetApplicationAttribute  
- BusinessOwners List<GetApplication Attribute Business Owner> 
- Optional. Business team that ensures user needs are met and value is delivered
- Criticalities
List<GetApplication Attribute Criticality> 
- Criticality of the Application, Service, or Workload
- DeveloperOwners List<GetApplication Attribute Developer Owner> 
- Optional. Developer team that owns development and coding.
- Environments
List<GetApplication Attribute Environment> 
- Environment of the Application, Service, or Workload
- OperatorOwners List<GetApplication Attribute Operator Owner> 
- Optional. Operator team that ensures runtime and operations.
- BusinessOwners []GetApplication Attribute Business Owner 
- Optional. Business team that ensures user needs are met and value is delivered
- Criticalities
[]GetApplication Attribute Criticality 
- Criticality of the Application, Service, or Workload
- DeveloperOwners []GetApplication Attribute Developer Owner 
- Optional. Developer team that owns development and coding.
- Environments
[]GetApplication Attribute Environment 
- Environment of the Application, Service, or Workload
- OperatorOwners []GetApplication Attribute Operator Owner 
- Optional. Operator team that ensures runtime and operations.
- businessOwners List<GetApplication Attribute Business Owner> 
- Optional. Business team that ensures user needs are met and value is delivered
- criticalities
List<GetApplication Attribute Criticality> 
- Criticality of the Application, Service, or Workload
- developerOwners List<GetApplication Attribute Developer Owner> 
- Optional. Developer team that owns development and coding.
- environments
List<GetApplication Attribute Environment> 
- Environment of the Application, Service, or Workload
- operatorOwners List<GetApplication Attribute Operator Owner> 
- Optional. Operator team that ensures runtime and operations.
- businessOwners GetApplication Attribute Business Owner[] 
- Optional. Business team that ensures user needs are met and value is delivered
- criticalities
GetApplication Attribute Criticality[] 
- Criticality of the Application, Service, or Workload
- developerOwners GetApplication Attribute Developer Owner[] 
- Optional. Developer team that owns development and coding.
- environments
GetApplication Attribute Environment[] 
- Environment of the Application, Service, or Workload
- operatorOwners 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[GetApplication 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[GetApplication Attribute Environment] 
- Environment of the Application, Service, or Workload
- operator_owners Sequence[GetApplication Attribute Operator Owner] 
- Optional. Operator team that ensures runtime and operations.
- businessOwners 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
- developerOwners List<Property Map>
- Optional. Developer team that owns development and coding.
- environments List<Property Map>
- Environment of the Application, Service, or Workload
- operatorOwners List<Property Map>
- Optional. Operator team that ensures runtime and operations.
GetApplicationAttributeBusinessOwner    
- DisplayName string
- Optional. Contact's name.
- Email string
- Required. Email address of the contacts.
- DisplayName string
- Optional. Contact's name.
- Email string
- Required. Email address of the contacts.
- displayName String
- Optional. Contact's name.
- email String
- Required. Email address of the contacts.
- displayName 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.
- displayName 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    
- DisplayName string
- Optional. Contact's name.
- Email string
- Required. Email address of the contacts.
- DisplayName string
- Optional. Contact's name.
- Email string
- Required. Email address of the contacts.
- displayName String
- Optional. Contact's name.
- email String
- Required. Email address of the contacts.
- displayName 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.
- displayName 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    
- DisplayName string
- Optional. Contact's name.
- Email string
- Required. Email address of the contacts.
- DisplayName string
- Optional. Contact's name.
- Email string
- Required. Email address of the contacts.
- displayName String
- Optional. Contact's name.
- email String
- Required. Email address of the contacts.
- displayName 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.
- displayName 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.