1. Registry
  2. Packages
  3. Cloudfoundry Provider
  4. API Docs
  5. getMtas
Viewing docs for cloudfoundry 1.18.0
published on Monday, Nov 2, 2026 by cloudfoundry
cloudfoundry
Viewing docs for cloudfoundry 1.18.0
published on Monday, Nov 2, 2026 by cloudfoundry

    Gets information on Multi Target Applications 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 mtas = cloudfoundry.getMtas({
        space: "02c0cc92-6ecc-44b1-b7b2-096ca19ee143",
        namespace: "test",
    });
    export const data = mtas;
    
    import pulumi
    import pulumi_cloudfoundry as cloudfoundry
    
    mtas = cloudfoundry.get_mtas(space="02c0cc92-6ecc-44b1-b7b2-096ca19ee143",
        namespace="test")
    pulumi.export("data", mtas)
    
    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 {
    		mtas, err := cloudfoundry.GetMtas(ctx, &cloudfoundry.GetMtasArgs{
    			Space:     "02c0cc92-6ecc-44b1-b7b2-096ca19ee143",
    			Namespace: pulumi.StringRef("test"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("data", mtas)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Cloudfoundry = Pulumi.Cloudfoundry;
    
    return await Deployment.RunAsync(() => 
    {
        var mtas = Cloudfoundry.GetMtas.Invoke(new()
        {
            Space = "02c0cc92-6ecc-44b1-b7b2-096ca19ee143",
            Namespace = "test",
        });
    
        return new Dictionary<string, object?>
        {
            ["data"] = mtas,
        };
    });
    
    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.GetMtasArgs;
    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 mtas = CloudfoundryFunctions.getMtas(GetMtasArgs.builder()
                .space("02c0cc92-6ecc-44b1-b7b2-096ca19ee143")
                .namespace("test")
                .build());
    
            ctx.export("data", mtas);
        }
    }
    
    variables:
      mtas:
        fn::invoke:
          function: cloudfoundry:getMtas
          arguments:
            space: 02c0cc92-6ecc-44b1-b7b2-096ca19ee143
            namespace: test
    outputs:
      data: ${mtas}
    
    Example coming soon!
    

    Using getMtas

    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 getMtas(args: GetMtasArgs, opts?: InvokeOptions): Promise<GetMtasResult>
    function getMtasOutput(args: GetMtasOutputArgs, opts?: InvokeOutputOptions): Output<GetMtasResult>
    def get_mtas(deploy_url: Optional[str] = None,
                 id: Optional[str] = None,
                 namespace: Optional[str] = None,
                 space: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetMtasResult
    def get_mtas_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[GetMtasResult]
    func GetMtas(ctx *Context, args *GetMtasArgs, opts ...InvokeOption) (*GetMtasResult, error)
    func GetMtasOutput(ctx *Context, args *GetMtasOutputArgs, opts ...InvokeOption) GetMtasResultOutput

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

    public static class GetMtas 
    {
        public static Task<GetMtasResult> InvokeAsync(GetMtasArgs args, InvokeOptions? opts = null)
        public static Output<GetMtasResult> Invoke(GetMtasInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetMtasResult> Invoke(GetMtasInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetMtasResult> getMtas(GetMtasArgs args, InvokeOptions options)
    public static Output<GetMtasResult> getMtas(GetMtasArgs args, InvokeOptions options)
    public static Output<GetMtasResult> getMtas(GetMtasArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: cloudfoundry:index/getMtas:getMtas
      arguments:
        # arguments dictionary
    data "cloudfoundry_get_mtas" "name" {
        # arguments
    }

    The following arguments are supported:

    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'
    Id string
    The MTA ID to filter by
    Namespace string
    The namespace of the MTA to filter by
    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'
    Id string
    The MTA ID to filter by
    Namespace string
    The namespace of the MTA to filter by
    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'
    id string
    The MTA ID to filter by
    namespace string
    The namespace of the MTA to filter by
    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'
    id String
    The MTA ID to filter by
    namespace String
    The namespace of the MTA to filter by
    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'
    id string
    The MTA ID to filter by
    namespace string
    The namespace of the MTA to filter by
    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'
    id str
    The MTA ID to filter by
    namespace str
    The namespace of the MTA to filter by
    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'
    id String
    The MTA ID to filter by
    namespace String
    The namespace of the MTA to filter by

    getMtas Result

    The following output properties are available:

    Mtas List<GetMtasMta>
    The list of MTA's
    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'
    Id string
    The MTA ID to filter by
    Namespace string
    The namespace of the MTA to filter by
    Mtas []GetMtasMta
    The list of MTA's
    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'
    Id string
    The MTA ID to filter by
    Namespace string
    The namespace of the MTA to filter by
    mtas list(object)
    The list of MTA's
    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'
    id string
    The MTA ID to filter by
    namespace string
    The namespace of the MTA to filter by
    mtas List<GetMtasMta>
    The list of MTA's
    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'
    id String
    The MTA ID to filter by
    namespace String
    The namespace of the MTA to filter by
    mtas GetMtasMta[]
    The list of MTA's
    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'
    id string
    The MTA ID to filter by
    namespace string
    The namespace of the MTA to filter by
    mtas Sequence[GetMtasMta]
    The list of MTA's
    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'
    id str
    The MTA ID to filter by
    namespace str
    The namespace of the MTA to filter by
    mtas List<Property Map>
    The list of MTA's
    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'
    id String
    The MTA ID to filter by
    namespace String
    The namespace of the MTA to filter by

    Supporting Types

    GetMtasMta

    Metadata GetMtasMtaMetadata
    an identifier, version and namespace that uniquely identify the MTA
    Modules List<GetMtasMtaModule>
    the deployable parts contained in the MTA deployment archive, most commonly Cloud Foundry applications or content
    Services List<string>
    Metadata GetMtasMtaMetadata
    an identifier, version and namespace that uniquely identify the MTA
    Modules []GetMtasMtaModule
    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 GetMtasMtaMetadata
    an identifier, version and namespace that uniquely identify the MTA
    modules List<GetMtasMtaModule>
    the deployable parts contained in the MTA deployment archive, most commonly Cloud Foundry applications or content
    services List<String>
    metadata GetMtasMtaMetadata
    an identifier, version and namespace that uniquely identify the MTA
    modules GetMtasMtaModule[]
    the deployable parts contained in the MTA deployment archive, most commonly Cloud Foundry applications or content
    services string[]
    metadata GetMtasMtaMetadata
    an identifier, version and namespace that uniquely identify the MTA
    modules Sequence[GetMtasMtaModule]
    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>

    GetMtasMtaMetadata

    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

    GetMtasMtaModule

    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.18.0
    published on Monday, Nov 2, 2026 by cloudfoundry

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial