1. Registry
  2. Packages
  3. Cloudfoundry Provider
  4. API Docs
  5. getMta
Viewing docs for cloudfoundry 1.19.0
published on Friday, Nov 13, 2026 by cloudfoundry
cloudfoundry
Viewing docs for cloudfoundry 1.19.0
published on Friday, Nov 13, 2026 by cloudfoundry

    Gets information on a Multi Target Application present in a space.

    Further documentation: Multitarget Applications in the Cloud Foundry Environment

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudfoundry from "@pulumi/cloudfoundry";
    
    const mta = cloudfoundry.getMta({
        space: "02c0cc92-6ecc-44b1-b7b2-096ca19ee143",
        id: "a.cf.app",
    });
    export const data = mta;
    
    import pulumi
    import pulumi_cloudfoundry as cloudfoundry
    
    mta = cloudfoundry.get_mta(space="02c0cc92-6ecc-44b1-b7b2-096ca19ee143",
        id="a.cf.app")
    pulumi.export("data", mta)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/cloudfoundry/cloudfoundry"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		mta, err := cloudfoundry.LookupMta(ctx, &cloudfoundry.LookupMtaArgs{
    			Space: "02c0cc92-6ecc-44b1-b7b2-096ca19ee143",
    			Id:    "a.cf.app",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("data", mta)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Cloudfoundry = Pulumi.Cloudfoundry;
    
    return await Deployment.RunAsync(() => 
    {
        var mta = Cloudfoundry.GetMta.Invoke(new()
        {
            Space = "02c0cc92-6ecc-44b1-b7b2-096ca19ee143",
            Id = "a.cf.app",
        });
    
        return new Dictionary<string, object?>
        {
            ["data"] = mta,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudfoundry.CloudfoundryFunctions;
    import com.pulumi.cloudfoundry.inputs.GetMtaArgs;
    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 mta = CloudfoundryFunctions.getMta(GetMtaArgs.builder()
                .space("02c0cc92-6ecc-44b1-b7b2-096ca19ee143")
                .id("a.cf.app")
                .build());
    
            ctx.export("data", mta);
        }
    }
    
    variables:
      mta:
        fn::invoke:
          function: cloudfoundry:getMta
          arguments:
            space: 02c0cc92-6ecc-44b1-b7b2-096ca19ee143
            id: a.cf.app
    outputs:
      data: ${mta}
    
    Example coming soon!
    

    Using getMta

    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 getMta(args: GetMtaArgs, opts?: InvokeOptions): Promise<GetMtaResult>
    function getMtaOutput(args: GetMtaOutputArgs, opts?: InvokeOutputOptions): Output<GetMtaResult>
    def get_mta(deploy_url: Optional[str] = None,
                id: Optional[str] = None,
                namespace: Optional[str] = None,
                space: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetMtaResult
    def get_mta_output(deploy_url: pulumi.Input[Optional[str]] = None,
                id: pulumi.Input[Optional[str]] = None,
                namespace: pulumi.Input[Optional[str]] = None,
                space: pulumi.Input[Optional[str]] = None,
                opts: Optional[InvokeOutputOptions] = None) -> Output[GetMtaResult]
    func LookupMta(ctx *Context, args *LookupMtaArgs, opts ...InvokeOption) (*LookupMtaResult, error)
    func LookupMtaOutput(ctx *Context, args *LookupMtaOutputArgs, opts ...InvokeOption) LookupMtaResultOutput

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

    public static class GetMta 
    {
        public static Task<GetMtaResult> InvokeAsync(GetMtaArgs args, InvokeOptions? opts = null)
        public static Output<GetMtaResult> Invoke(GetMtaInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetMtaResult> Invoke(GetMtaInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetMtaResult> getMta(GetMtaArgs args, InvokeOptions options)
    public static Output<GetMtaResult> getMta(GetMtaArgs args, InvokeOptions options)
    public static Output<GetMtaResult> getMta(GetMtaArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: cloudfoundry:index/getMta:getMta
      arguments:
        # arguments dictionary
    data "cloudfoundry_get_mta" "name" {
        # arguments
    }

    The following arguments are supported:

    Id string
    The MTA ID to search for
    Space string
    The GUID of the space where the MTA's are deployed
    DeployUrl string
    The URL of the deploy service, if a custom one has been used(should be present in the same landscape). By default 'deploy-service.\n\n'
    Namespace string
    The namespace of the MTA to filter by
    Id string
    The MTA ID to search for
    Space string
    The GUID of the space where the MTA's are deployed
    DeployUrl string
    The URL of the deploy service, if a custom one has been used(should be present in the same landscape). By default 'deploy-service.\n\n'
    Namespace string
    The namespace of the MTA to filter by
    id string
    The MTA ID to search for
    space string
    The GUID of the space where the MTA's are deployed
    deploy_url string
    The URL of the deploy service, if a custom one has been used(should be present in the same landscape). By default 'deploy-service.\n\n'
    namespace string
    The namespace of the MTA to filter by
    id String
    The MTA ID to search for
    space String
    The GUID of the space where the MTA's are deployed
    deployUrl String
    The URL of the deploy service, if a custom one has been used(should be present in the same landscape). By default 'deploy-service.\n\n'
    namespace String
    The namespace of the MTA to filter by
    id string
    The MTA ID to search for
    space string
    The GUID of the space where the MTA's are deployed
    deployUrl string
    The URL of the deploy service, if a custom one has been used(should be present in the same landscape). By default 'deploy-service.\n\n'
    namespace string
    The namespace of the MTA to filter by
    id str
    The MTA ID to search for
    space str
    The GUID of the space where the MTA's are deployed
    deploy_url str
    The URL of the deploy service, if a custom one has been used(should be present in the same landscape). By default 'deploy-service.\n\n'
    namespace str
    The namespace of the MTA to filter by
    id String
    The MTA ID to search for
    space String
    The GUID of the space where the MTA's are deployed
    deployUrl String
    The URL of the deploy service, if a custom one has been used(should be present in the same landscape). By default 'deploy-service.\n\n'
    namespace String
    The namespace of the MTA to filter by

    getMta Result

    The following output properties are available:

    Id string
    The MTA ID to search for
    Mta GetMtaMta
    contains the details of the MTA object
    Space string
    The GUID of the space where the MTA's are deployed
    DeployUrl string
    The URL of the deploy service, if a custom one has been used(should be present in the same landscape). By default 'deploy-service.\n\n'
    Namespace string
    The namespace of the MTA to filter by
    Id string
    The MTA ID to search for
    Mta GetMtaMta
    contains the details of the MTA object
    Space string
    The GUID of the space where the MTA's are deployed
    DeployUrl string
    The URL of the deploy service, if a custom one has been used(should be present in the same landscape). By default 'deploy-service.\n\n'
    Namespace string
    The namespace of the MTA to filter by
    id string
    The MTA ID to search for
    mta object
    contains the details of the MTA object
    space string
    The GUID of the space where the MTA's are deployed
    deploy_url string
    The URL of the deploy service, if a custom one has been used(should be present in the same landscape). By default 'deploy-service.\n\n'
    namespace string
    The namespace of the MTA to filter by
    id String
    The MTA ID to search for
    mta GetMtaMta
    contains the details of the MTA object
    space String
    The GUID of the space where the MTA's are deployed
    deployUrl String
    The URL of the deploy service, if a custom one has been used(should be present in the same landscape). By default 'deploy-service.\n\n'
    namespace String
    The namespace of the MTA to filter by
    id string
    The MTA ID to search for
    mta GetMtaMta
    contains the details of the MTA object
    space string
    The GUID of the space where the MTA's are deployed
    deployUrl string
    The URL of the deploy service, if a custom one has been used(should be present in the same landscape). By default 'deploy-service.\n\n'
    namespace string
    The namespace of the MTA to filter by
    id str
    The MTA ID to search for
    mta GetMtaMta
    contains the details of the MTA object
    space str
    The GUID of the space where the MTA's are deployed
    deploy_url str
    The URL of the deploy service, if a custom one has been used(should be present in the same landscape). By default 'deploy-service.\n\n'
    namespace str
    The namespace of the MTA to filter by
    id String
    The MTA ID to search for
    mta Property Map
    contains the details of the MTA object
    space String
    The GUID of the space where the MTA's are deployed
    deployUrl String
    The URL of the deploy service, if a custom one has been used(should be present in the same landscape). By default 'deploy-service.\n\n'
    namespace String
    The namespace of the MTA to filter by

    Supporting Types

    GetMtaMta

    Metadata GetMtaMtaMetadata
    an identifier, version and namespace that uniquely identify the MTA
    Modules List<GetMtaMtaModule>
    the deployable parts contained in the MTA deployment archive, most commonly Cloud Foundry applications or content
    Services List<string>
    Metadata GetMtaMtaMetadata
    an identifier, version and namespace that uniquely identify the MTA
    Modules []GetMtaMtaModule
    the deployable parts contained in the MTA deployment archive, most commonly Cloud Foundry applications or content
    Services []string
    metadata object
    an identifier, version and namespace that uniquely identify the MTA
    modules list(object)
    the deployable parts contained in the MTA deployment archive, most commonly Cloud Foundry applications or content
    services list(string)
    metadata GetMtaMtaMetadata
    an identifier, version and namespace that uniquely identify the MTA
    modules List<GetMtaMtaModule>
    the deployable parts contained in the MTA deployment archive, most commonly Cloud Foundry applications or content
    services List<String>
    metadata GetMtaMtaMetadata
    an identifier, version and namespace that uniquely identify the MTA
    modules GetMtaMtaModule[]
    the deployable parts contained in the MTA deployment archive, most commonly Cloud Foundry applications or content
    services string[]
    metadata GetMtaMtaMetadata
    an identifier, version and namespace that uniquely identify the MTA
    modules Sequence[GetMtaMtaModule]
    the deployable parts contained in the MTA deployment archive, most commonly Cloud Foundry applications or content
    services Sequence[str]
    metadata Property Map
    an identifier, version and namespace that uniquely identify the MTA
    modules List<Property Map>
    the deployable parts contained in the MTA deployment archive, most commonly Cloud Foundry applications or content
    services List<String>

    GetMtaMtaMetadata

    Id string
    Namespace string
    Version string
    Id string
    Namespace string
    Version string
    id string
    namespace string
    version string
    id String
    namespace String
    version String
    id string
    namespace string
    version string
    id str
    namespace str
    version str
    id String
    namespace String
    version String

    GetMtaMtaModule

    AppName string
    CreatedOn string
    ModuleName string
    ProvidedDendencyNames List<string>
    Services List<string>
    UpdatedOn string
    Uris List<string>
    AppName string
    CreatedOn string
    ModuleName string
    ProvidedDendencyNames []string
    Services []string
    UpdatedOn string
    Uris []string
    app_name string
    created_on string
    module_name string
    provided_dendency_names list(string)
    services list(string)
    updated_on string
    uris list(string)
    appName String
    createdOn String
    moduleName String
    providedDendencyNames List<String>
    services List<String>
    updatedOn String
    uris List<String>
    appName string
    createdOn string
    moduleName string
    providedDendencyNames string[]
    services string[]
    updatedOn string
    uris string[]
    app_name str
    created_on str
    module_name str
    provided_dendency_names Sequence[str]
    services Sequence[str]
    updated_on str
    uris Sequence[str]
    appName String
    createdOn String
    moduleName String
    providedDendencyNames List<String>
    services List<String>
    updatedOn String
    uris List<String>

    Package Details

    Repository
    cloudfoundry cloudfoundry/terraform-provider-cloudfoundry
    License
    Notes
    This Pulumi package is based on the cloudfoundry Terraform Provider.
    cloudfoundry
    Viewing docs for cloudfoundry 1.19.0
    published on Friday, Nov 13, 2026 by cloudfoundry

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial