Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.DataScience.getMlApplications
Explore with Pulumi AI
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[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[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 dictionaryThe following arguments are supported:
- CompartmentId string
- Filter results by the OCID of the compartment.
- CompartmentId boolIn Subtree 
- 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<GetMl Applications Filter> 
- MlApplication stringId 
- 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.
- CompartmentId boolIn Subtree 
- If it is true search must include all results from descendant compartments. Value true is allowed only if compartmentId refers to root compartment.
- Filters
[]GetMl Applications Filter 
- MlApplication stringId 
- 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.
- compartmentId BooleanIn Subtree 
- 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<GetMl Applications Filter> 
- mlApplication StringId 
- 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.
- compartmentId booleanIn Subtree 
- If it is true search must include all results from descendant compartments. Value true is allowed only if compartmentId refers to root compartment.
- filters
GetMl Applications Filter[] 
- mlApplication stringId 
- 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_ boolin_ subtree 
- 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[GetMl Applications Filter] 
- ml_application_ strid 
- 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.
- compartmentId BooleanIn Subtree 
- 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>
- mlApplication StringId 
- 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.
- MlApplication List<GetCollections Ml Applications Ml Application Collection> 
- The list of ml_application_collection.
- CompartmentId boolIn Subtree 
- Filters
List<GetMl Applications Filter> 
- MlApplication stringId 
- 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.
- MlApplication []GetCollections Ml Applications Ml Application Collection 
- The list of ml_application_collection.
- CompartmentId boolIn Subtree 
- Filters
[]GetMl Applications Filter 
- MlApplication stringId 
- 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.
- mlApplication List<GetCollections Ml Applications Ml Application Collection> 
- The list of ml_application_collection.
- compartmentId BooleanIn Subtree 
- filters
List<GetMl Applications Filter> 
- mlApplication StringId 
- 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.
- mlApplication GetCollections Ml Applications Ml Application Collection[] 
- The list of ml_application_collection.
- compartmentId booleanIn Subtree 
- filters
GetMl Applications Filter[] 
- mlApplication stringId 
- 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_ Sequence[Getcollections Ml Applications Ml Application Collection] 
- The list of ml_application_collection.
- compartment_id_ boolin_ subtree 
- filters
Sequence[GetMl Applications Filter] 
- ml_application_ strid 
- 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.
- mlApplication List<Property Map>Collections 
- The list of ml_application_collection.
- compartmentId BooleanIn Subtree 
- filters List<Property Map>
- mlApplication StringId 
- name String
- The name of MlApplication. It is unique in a given tenancy.
- state String
- The current state of the MlApplication.
Supporting Types
GetMlApplicationsFilter   
GetMlApplicationsMlApplicationCollection     
GetMlApplicationsMlApplicationCollectionItem      
- CompartmentId string
- Filter results by the OCID of the compartment.
- 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
- 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.
- 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.
- 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
- 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.
- 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.
- 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
- 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.
- 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.
- {[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
- {[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.
- {[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.
- 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
- 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.
- 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.
- 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
- 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.
- 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 ociTerraform Provider.