1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataScience
  5. getMlApplications
Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 2025 by Pulumi

oci.DataScience.getMlApplications

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 2025 by Pulumi

    This data source provides the list of Ml Applications in Oracle Cloud Infrastructure Data Science service.

    Returns a list of MlApplications.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testMlApplications = oci.DataScience.getMlApplications({
        compartmentId: compartmentId,
        compartmentIdInSubtree: mlApplicationCompartmentIdInSubtree,
        mlApplicationId: testMlApplication.id,
        name: mlApplicationName,
        state: mlApplicationState,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_ml_applications = oci.DataScience.get_ml_applications(compartment_id=compartment_id,
        compartment_id_in_subtree=ml_application_compartment_id_in_subtree,
        ml_application_id=test_ml_application["id"],
        name=ml_application_name,
        state=ml_application_state)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/datascience"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := datascience.GetMlApplications(ctx, &datascience.GetMlApplicationsArgs{
    			CompartmentId:          compartmentId,
    			CompartmentIdInSubtree: pulumi.BoolRef(mlApplicationCompartmentIdInSubtree),
    			MlApplicationId:        pulumi.StringRef(testMlApplication.Id),
    			Name:                   pulumi.StringRef(mlApplicationName),
    			State:                  pulumi.StringRef(mlApplicationState),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testMlApplications = Oci.DataScience.GetMlApplications.Invoke(new()
        {
            CompartmentId = compartmentId,
            CompartmentIdInSubtree = mlApplicationCompartmentIdInSubtree,
            MlApplicationId = testMlApplication.Id,
            Name = mlApplicationName,
            State = mlApplicationState,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.DataScience.DataScienceFunctions;
    import com.pulumi.oci.DataScience.inputs.GetMlApplicationsArgs;
    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 testMlApplications = DataScienceFunctions.getMlApplications(GetMlApplicationsArgs.builder()
                .compartmentId(compartmentId)
                .compartmentIdInSubtree(mlApplicationCompartmentIdInSubtree)
                .mlApplicationId(testMlApplication.id())
                .name(mlApplicationName)
                .state(mlApplicationState)
                .build());
    
        }
    }
    
    variables:
      testMlApplications:
        fn::invoke:
          function: oci:DataScience:getMlApplications
          arguments:
            compartmentId: ${compartmentId}
            compartmentIdInSubtree: ${mlApplicationCompartmentIdInSubtree}
            mlApplicationId: ${testMlApplication.id}
            name: ${mlApplicationName}
            state: ${mlApplicationState}
    

    Using getMlApplications

    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 getMlApplications(args: GetMlApplicationsArgs, opts?: InvokeOptions): Promise<GetMlApplicationsResult>
    function getMlApplicationsOutput(args: GetMlApplicationsOutputArgs, opts?: InvokeOptions): Output<GetMlApplicationsResult>
    def get_ml_applications(compartment_id: Optional[str] = None,
                            compartment_id_in_subtree: Optional[bool] = None,
                            filters: Optional[Sequence[_datascience.GetMlApplicationsFilter]] = None,
                            ml_application_id: Optional[str] = None,
                            name: Optional[str] = None,
                            state: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetMlApplicationsResult
    def get_ml_applications_output(compartment_id: Optional[pulumi.Input[str]] = None,
                            compartment_id_in_subtree: Optional[pulumi.Input[bool]] = None,
                            filters: Optional[pulumi.Input[Sequence[pulumi.Input[_datascience.GetMlApplicationsFilterArgs]]]] = None,
                            ml_application_id: Optional[pulumi.Input[str]] = None,
                            name: Optional[pulumi.Input[str]] = None,
                            state: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetMlApplicationsResult]
    func GetMlApplications(ctx *Context, args *GetMlApplicationsArgs, opts ...InvokeOption) (*GetMlApplicationsResult, error)
    func GetMlApplicationsOutput(ctx *Context, args *GetMlApplicationsOutputArgs, opts ...InvokeOption) GetMlApplicationsResultOutput

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

    public static class GetMlApplications 
    {
        public static Task<GetMlApplicationsResult> InvokeAsync(GetMlApplicationsArgs args, InvokeOptions? opts = null)
        public static Output<GetMlApplicationsResult> Invoke(GetMlApplicationsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMlApplicationsResult> getMlApplications(GetMlApplicationsArgs args, InvokeOptions options)
    public static Output<GetMlApplicationsResult> getMlApplications(GetMlApplicationsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:DataScience/getMlApplications:getMlApplications
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    Filter results by the OCID of the compartment.
    CompartmentIdInSubtree bool
    If it is true search must include all results from descendant compartments. Value true is allowed only if compartmentId refers to root compartment.
    Filters List<GetMlApplicationsFilter>
    MlApplicationId string
    unique MlApplication identifier
    Name string
    A filter to return only resources that match the entire name given.
    State string
    A filter to return only resources with lifecycleState matching the given lifecycleState.
    CompartmentId string
    Filter results by the OCID of the compartment.
    CompartmentIdInSubtree bool
    If it is true search must include all results from descendant compartments. Value true is allowed only if compartmentId refers to root compartment.
    Filters []GetMlApplicationsFilter
    MlApplicationId string
    unique MlApplication identifier
    Name string
    A filter to return only resources that match the entire name given.
    State string
    A filter to return only resources with lifecycleState matching the given lifecycleState.
    compartmentId String
    Filter results by the OCID of the compartment.
    compartmentIdInSubtree Boolean
    If it is true search must include all results from descendant compartments. Value true is allowed only if compartmentId refers to root compartment.
    filters List<GetMlApplicationsFilter>
    mlApplicationId String
    unique MlApplication identifier
    name String
    A filter to return only resources that match the entire name given.
    state String
    A filter to return only resources with lifecycleState matching the given lifecycleState.
    compartmentId string
    Filter results by the OCID of the compartment.
    compartmentIdInSubtree boolean
    If it is true search must include all results from descendant compartments. Value true is allowed only if compartmentId refers to root compartment.
    filters GetMlApplicationsFilter[]
    mlApplicationId string
    unique MlApplication identifier
    name string
    A filter to return only resources that match the entire name given.
    state string
    A filter to return only resources with lifecycleState matching the given lifecycleState.
    compartment_id str
    Filter results by the OCID of the compartment.
    compartment_id_in_subtree bool
    If it is true search must include all results from descendant compartments. Value true is allowed only if compartmentId refers to root compartment.
    filters Sequence[datascience.GetMlApplicationsFilter]
    ml_application_id str
    unique MlApplication identifier
    name str
    A filter to return only resources that match the entire name given.
    state str
    A filter to return only resources with lifecycleState matching the given lifecycleState.
    compartmentId String
    Filter results by the OCID of the compartment.
    compartmentIdInSubtree Boolean
    If it is true search must include all results from descendant compartments. Value true is allowed only if compartmentId refers to root compartment.
    filters List<Property Map>
    mlApplicationId String
    unique MlApplication identifier
    name String
    A filter to return only resources that match the entire name given.
    state String
    A filter to return only resources with lifecycleState matching the given lifecycleState.

    getMlApplications Result

    The following output properties are available:

    CompartmentId string
    The OCID of the compartment where the MlApplication is created.
    Id string
    The provider-assigned unique ID for this managed resource.
    MlApplicationCollections List<GetMlApplicationsMlApplicationCollection>
    The list of ml_application_collection.
    CompartmentIdInSubtree bool
    Filters List<GetMlApplicationsFilter>
    MlApplicationId string
    Name string
    The name of MlApplication. It is unique in a given tenancy.
    State string
    The current state of the MlApplication.
    CompartmentId string
    The OCID of the compartment where the MlApplication is created.
    Id string
    The provider-assigned unique ID for this managed resource.
    MlApplicationCollections []GetMlApplicationsMlApplicationCollection
    The list of ml_application_collection.
    CompartmentIdInSubtree bool
    Filters []GetMlApplicationsFilter
    MlApplicationId string
    Name string
    The name of MlApplication. It is unique in a given tenancy.
    State string
    The current state of the MlApplication.
    compartmentId String
    The OCID of the compartment where the MlApplication is created.
    id String
    The provider-assigned unique ID for this managed resource.
    mlApplicationCollections List<GetMlApplicationsMlApplicationCollection>
    The list of ml_application_collection.
    compartmentIdInSubtree Boolean
    filters List<GetMlApplicationsFilter>
    mlApplicationId String
    name String
    The name of MlApplication. It is unique in a given tenancy.
    state String
    The current state of the MlApplication.
    compartmentId string
    The OCID of the compartment where the MlApplication is created.
    id string
    The provider-assigned unique ID for this managed resource.
    mlApplicationCollections GetMlApplicationsMlApplicationCollection[]
    The list of ml_application_collection.
    compartmentIdInSubtree boolean
    filters GetMlApplicationsFilter[]
    mlApplicationId string
    name string
    The name of MlApplication. It is unique in a given tenancy.
    state string
    The current state of the MlApplication.
    compartment_id str
    The OCID of the compartment where the MlApplication is created.
    id str
    The provider-assigned unique ID for this managed resource.
    ml_application_collections Sequence[datascience.GetMlApplicationsMlApplicationCollection]
    The list of ml_application_collection.
    compartment_id_in_subtree bool
    filters Sequence[datascience.GetMlApplicationsFilter]
    ml_application_id str
    name str
    The name of MlApplication. It is unique in a given tenancy.
    state str
    The current state of the MlApplication.
    compartmentId String
    The OCID of the compartment where the MlApplication is created.
    id String
    The provider-assigned unique ID for this managed resource.
    mlApplicationCollections List<Property Map>
    The list of ml_application_collection.
    compartmentIdInSubtree Boolean
    filters List<Property Map>
    mlApplicationId String
    name String
    The name of MlApplication. It is unique in a given tenancy.
    state String
    The current state of the MlApplication.

    Supporting Types

    GetMlApplicationsFilter

    Name string
    A filter to return only resources that match the entire name given.
    Values List<string>
    Regex bool
    Name string
    A filter to return only resources that match the entire name given.
    Values []string
    Regex bool
    name String
    A filter to return only resources that match the entire name given.
    values List<String>
    regex Boolean
    name string
    A filter to return only resources that match the entire name given.
    values string[]
    regex boolean
    name str
    A filter to return only resources that match the entire name given.
    values Sequence[str]
    regex bool
    name String
    A filter to return only resources that match the entire name given.
    values List<String>
    regex Boolean

    GetMlApplicationsMlApplicationCollection

    GetMlApplicationsMlApplicationCollectionItem

    CompartmentId string
    Filter results by the OCID of the compartment.
    DefinedTags Dictionary<string, string>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}
    Description string
    Optional description of the ML Application
    FreeformTags Dictionary<string, string>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example: {"Department": "Finance"}
    Id string
    The OCID of the MlApplication. Unique identifier that is immutable after creation.
    LifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    Name string
    A filter to return only resources that match the entire name given.
    State string
    A filter to return only resources with lifecycleState matching the given lifecycleState.
    SystemTags Dictionary<string, string>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    Creation time of MlApplication in the format defined by RFC 3339.
    TimeUpdated string
    Time of last MlApplication update in the format defined by RFC 3339.
    CompartmentId string
    Filter results by the OCID of the compartment.
    DefinedTags map[string]string
    Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}
    Description string
    Optional description of the ML Application
    FreeformTags map[string]string
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example: {"Department": "Finance"}
    Id string
    The OCID of the MlApplication. Unique identifier that is immutable after creation.
    LifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    Name string
    A filter to return only resources that match the entire name given.
    State string
    A filter to return only resources with lifecycleState matching the given lifecycleState.
    SystemTags map[string]string
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    Creation time of MlApplication in the format defined by RFC 3339.
    TimeUpdated string
    Time of last MlApplication update in the format defined by RFC 3339.
    compartmentId String
    Filter results by the OCID of the compartment.
    definedTags Map<String,String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}
    description String
    Optional description of the ML Application
    freeformTags Map<String,String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example: {"Department": "Finance"}
    id String
    The OCID of the MlApplication. Unique identifier that is immutable after creation.
    lifecycleDetails String
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    name String
    A filter to return only resources that match the entire name given.
    state String
    A filter to return only resources with lifecycleState matching the given lifecycleState.
    systemTags Map<String,String>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    Creation time of MlApplication in the format defined by RFC 3339.
    timeUpdated String
    Time of last MlApplication update in the format defined by RFC 3339.
    compartmentId string
    Filter results by the OCID of the compartment.
    definedTags {[key: string]: string}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}
    description string
    Optional description of the ML Application
    freeformTags {[key: string]: string}
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example: {"Department": "Finance"}
    id string
    The OCID of the MlApplication. Unique identifier that is immutable after creation.
    lifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    name string
    A filter to return only resources that match the entire name given.
    state string
    A filter to return only resources with lifecycleState matching the given lifecycleState.
    systemTags {[key: string]: string}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    Creation time of MlApplication in the format defined by RFC 3339.
    timeUpdated string
    Time of last MlApplication update in the format defined by RFC 3339.
    compartment_id str
    Filter results by the OCID of the compartment.
    defined_tags Mapping[str, str]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}
    description str
    Optional description of the ML Application
    freeform_tags Mapping[str, str]
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example: {"Department": "Finance"}
    id str
    The OCID of the MlApplication. Unique identifier that is immutable after creation.
    lifecycle_details str
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    name str
    A filter to return only resources that match the entire name given.
    state str
    A filter to return only resources with lifecycleState matching the given lifecycleState.
    system_tags Mapping[str, str]
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    Creation time of MlApplication in the format defined by RFC 3339.
    time_updated str
    Time of last MlApplication update in the format defined by RFC 3339.
    compartmentId String
    Filter results by the OCID of the compartment.
    definedTags Map<String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}
    description String
    Optional description of the ML Application
    freeformTags Map<String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example: {"Department": "Finance"}
    id String
    The OCID of the MlApplication. Unique identifier that is immutable after creation.
    lifecycleDetails String
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    name String
    A filter to return only resources that match the entire name given.
    state String
    A filter to return only resources with lifecycleState matching the given lifecycleState.
    systemTags Map<String>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    Creation time of MlApplication in the format defined by RFC 3339.
    timeUpdated String
    Time of last MlApplication update in the format defined by RFC 3339.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 2025 by Pulumi