1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. apphub
  5. getApplication
Google Cloud Classic v7.32.0 published on Tuesday, Jul 16, 2024 by Pulumi

gcp.apphub.getApplication

Explore with Pulumi AI

gcp logo
Google Cloud Classic v7.32.0 published on Tuesday, Jul 16, 2024 by Pulumi

    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/v7/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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: gcp:apphub/getApplication:getApplication
      arguments:
        # arguments dictionary

    The 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
    applicationId String
    location String
    project String

    getApplication Result

    The following output properties are available:

    ApplicationId string
    Attributes List<GetApplicationAttribute>
    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<GetApplicationScope>
    State string
    Uid string
    UpdateTime string
    ApplicationId string
    Attributes []GetApplicationAttribute
    CreateTime string
    Description string
    DisplayName string
    Id string
    The provider-assigned unique ID for this managed resource.
    Location string
    Name string
    Project string
    Scopes []GetApplicationScope
    State string
    Uid string
    UpdateTime string
    applicationId String
    attributes List<GetApplicationAttribute>
    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<GetApplicationScope>
    state String
    uid String
    updateTime String
    applicationId string
    attributes GetApplicationAttribute[]
    createTime string
    description string
    displayName string
    id string
    The provider-assigned unique ID for this managed resource.
    location string
    name string
    project string
    scopes GetApplicationScope[]
    state string
    uid string
    updateTime string
    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<GetApplicationAttributeBusinessOwner>
    Optional. Business team that ensures user needs are met and value is delivered
    Criticalities List<GetApplicationAttributeCriticality>
    Criticality of the Application, Service, or Workload
    DeveloperOwners List<GetApplicationAttributeDeveloperOwner>
    Optional. Developer team that owns development and coding.
    Environments List<GetApplicationAttributeEnvironment>
    Environment of the Application, Service, or Workload
    OperatorOwners List<GetApplicationAttributeOperatorOwner>
    Optional. Operator team that ensures runtime and operations.
    BusinessOwners []GetApplicationAttributeBusinessOwner
    Optional. Business team that ensures user needs are met and value is delivered
    Criticalities []GetApplicationAttributeCriticality
    Criticality of the Application, Service, or Workload
    DeveloperOwners []GetApplicationAttributeDeveloperOwner
    Optional. Developer team that owns development and coding.
    Environments []GetApplicationAttributeEnvironment
    Environment of the Application, Service, or Workload
    OperatorOwners []GetApplicationAttributeOperatorOwner
    Optional. Operator team that ensures runtime and operations.
    businessOwners List<GetApplicationAttributeBusinessOwner>
    Optional. Business team that ensures user needs are met and value is delivered
    criticalities List<GetApplicationAttributeCriticality>
    Criticality of the Application, Service, or Workload
    developerOwners List<GetApplicationAttributeDeveloperOwner>
    Optional. Developer team that owns development and coding.
    environments List<GetApplicationAttributeEnvironment>
    Environment of the Application, Service, or Workload
    operatorOwners List<GetApplicationAttributeOperatorOwner>
    Optional. Operator team that ensures runtime and operations.
    businessOwners GetApplicationAttributeBusinessOwner[]
    Optional. Business team that ensures user needs are met and value is delivered
    criticalities GetApplicationAttributeCriticality[]
    Criticality of the Application, Service, or Workload
    developerOwners GetApplicationAttributeDeveloperOwner[]
    Optional. Developer team that owns development and coding.
    environments GetApplicationAttributeEnvironment[]
    Environment of the Application, Service, or Workload
    operatorOwners GetApplicationAttributeOperatorOwner[]
    Optional. Operator team that ensures runtime and operations.
    business_owners Sequence[GetApplicationAttributeBusinessOwner]
    Optional. Business team that ensures user needs are met and value is delivered
    criticalities Sequence[GetApplicationAttributeCriticality]
    Criticality of the Application, Service, or Workload
    developer_owners Sequence[GetApplicationAttributeDeveloperOwner]
    Optional. Developer team that owns development and coding.
    environments Sequence[GetApplicationAttributeEnvironment]
    Environment of the Application, Service, or Workload
    operator_owners Sequence[GetApplicationAttributeOperatorOwner]
    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 Possible values: ["REGIONAL"]
    Type string
    Required. Scope Type. Possible values: REGIONAL Possible values: ["REGIONAL"]
    type String
    Required. Scope Type. Possible values: REGIONAL Possible values: ["REGIONAL"]
    type string
    Required. Scope Type. Possible values: REGIONAL Possible values: ["REGIONAL"]
    type str
    Required. Scope Type. Possible values: REGIONAL Possible values: ["REGIONAL"]
    type String
    Required. Scope Type. Possible values: REGIONAL Possible values: ["REGIONAL"]

    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.32.0 published on Tuesday, Jul 16, 2024 by Pulumi