1. Packages
  2. Dynatrace
  3. API Docs
  4. getMobileApplication
Dynatrace v0.21.0 published on Sunday, Nov 17, 2024 by Pulumiverse

dynatrace.getMobileApplication

Explore with Pulumi AI

dynatrace logo
Dynatrace v0.21.0 published on Sunday, Nov 17, 2024 by Pulumiverse

    The dynatrace.MobileApplication data source allows the mobile application ID to be retrieved by its name.

    • name (String) - The name of the mobile application

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as dynatrace from "@pulumi/dynatrace";
    
    const example = dynatrace.getMobileApplication({
        name: "Terraform",
    });
    export const id = example.then(example => example.id);
    
    import pulumi
    import pulumi_dynatrace as dynatrace
    
    example = dynatrace.get_mobile_application(name="Terraform")
    pulumi.export("id", example.id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-dynatrace/sdk/go/dynatrace"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := dynatrace.LookupMobileApplication(ctx, &dynatrace.LookupMobileApplicationArgs{
    			Name: "Terraform",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("id", example.Id)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Dynatrace = Pulumi.Dynatrace;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Dynatrace.GetMobileApplication.Invoke(new()
        {
            Name = "Terraform",
        });
    
        return new Dictionary<string, object?>
        {
            ["id"] = example.Apply(getMobileApplicationResult => getMobileApplicationResult.Id),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.dynatrace.DynatraceFunctions;
    import com.pulumi.dynatrace.inputs.GetMobileApplicationArgs;
    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 example = DynatraceFunctions.getMobileApplication(GetMobileApplicationArgs.builder()
                .name("Terraform")
                .build());
    
            ctx.export("id", example.applyValue(getMobileApplicationResult -> getMobileApplicationResult.id()));
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: dynatrace:getMobileApplication
          Arguments:
            name: Terraform
    outputs:
      id: ${example.id}
    

    Using getMobileApplication

    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 getMobileApplication(args: GetMobileApplicationArgs, opts?: InvokeOptions): Promise<GetMobileApplicationResult>
    function getMobileApplicationOutput(args: GetMobileApplicationOutputArgs, opts?: InvokeOptions): Output<GetMobileApplicationResult>
    def get_mobile_application(name: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetMobileApplicationResult
    def get_mobile_application_output(name: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetMobileApplicationResult]
    func LookupMobileApplication(ctx *Context, args *LookupMobileApplicationArgs, opts ...InvokeOption) (*LookupMobileApplicationResult, error)
    func LookupMobileApplicationOutput(ctx *Context, args *LookupMobileApplicationOutputArgs, opts ...InvokeOption) LookupMobileApplicationResultOutput

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

    public static class GetMobileApplication 
    {
        public static Task<GetMobileApplicationResult> InvokeAsync(GetMobileApplicationArgs args, InvokeOptions? opts = null)
        public static Output<GetMobileApplicationResult> Invoke(GetMobileApplicationInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMobileApplicationResult> getMobileApplication(GetMobileApplicationArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: dynatrace:index/getMobileApplication:getMobileApplication
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Name string
    name String
    name string
    name str
    name String

    getMobileApplication Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    id String
    The provider-assigned unique ID for this managed resource.
    name String

    Package Details

    Repository
    dynatrace pulumiverse/pulumi-dynatrace
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the dynatrace Terraform Provider.
    dynatrace logo
    Dynatrace v0.21.0 published on Sunday, Nov 17, 2024 by Pulumiverse