Oracle Cloud Infrastructure v3.9.0 published on Wednesday, Sep 24, 2025 by Pulumi
oci.DataScience.getMlApplications
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/v3/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:
- Compartment
Id string - 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
List<Get
Ml Applications Filter> - Ml
Application 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 string - 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
[]Get
Ml Applications Filter - Ml
Application 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 String - Filter results by the OCID of the compartment.
- compartment
Id 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<Get
Ml Applications Filter> - ml
Application 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 string - Filter results by the OCID of the compartment.
- compartment
Id 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
Get
Ml Applications Filter[] - ml
Application 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[Get
Ml 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.
- compartment
Id String - Filter results by the OCID of the compartment.
- compartment
Id 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>
- ml
Application 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:
- Compartment
Id string - The OCID of the compartment where the MlApplication is created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ml
Application List<GetCollections Ml Applications Ml Application Collection> - The list of ml_application_collection.
- Compartment
Id boolIn Subtree - Filters
List<Get
Ml Applications Filter> - Ml
Application stringId - Name string
- The name of MlApplication. It is unique in a given tenancy.
- State string
- The current state of the MlApplication.
- Compartment
Id string - The OCID of the compartment where the MlApplication is created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ml
Application []GetCollections Ml Applications Ml Application Collection - The list of ml_application_collection.
- Compartment
Id boolIn Subtree - Filters
[]Get
Ml Applications Filter - Ml
Application stringId - Name string
- The name of MlApplication. It is unique in a given tenancy.
- State string
- The current state of the MlApplication.
- compartment
Id String - The OCID of the compartment where the MlApplication is created.
- id String
- The provider-assigned unique ID for this managed resource.
- ml
Application List<GetCollections Ml Applications Ml Application Collection> - The list of ml_application_collection.
- compartment
Id BooleanIn Subtree - filters
List<Get
Ml Applications Filter> - ml
Application StringId - name String
- The name of MlApplication. It is unique in a given tenancy.
- state String
- The current state of the MlApplication.
- compartment
Id string - The OCID of the compartment where the MlApplication is created.
- id string
- The provider-assigned unique ID for this managed resource.
- ml
Application GetCollections Ml Applications Ml Application Collection[] - The list of ml_application_collection.
- compartment
Id booleanIn Subtree - filters
Get
Ml Applications Filter[] - ml
Application 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[Get
Ml 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.
- compartment
Id String - The OCID of the compartment where the MlApplication is created.
- id String
- The provider-assigned unique ID for this managed resource.
- ml
Application List<Property Map>Collections - The list of ml_application_collection.
- compartment
Id BooleanIn Subtree - filters List<Property Map>
- ml
Application 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
- Compartment
Id 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.
- Lifecycle
Details 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"} - Time
Created string - Creation time of MlApplication in the format defined by RFC 3339.
- Time
Updated string - Time of last MlApplication update in the format defined by RFC 3339.
- Compartment
Id 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.
- Lifecycle
Details 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"} - Time
Created string - Creation time of MlApplication in the format defined by RFC 3339.
- Time
Updated string - Time of last MlApplication update in the format defined by RFC 3339.
- compartment
Id 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.
- lifecycle
Details 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"} - time
Created String - Creation time of MlApplication in the format defined by RFC 3339.
- time
Updated String - Time of last MlApplication update in the format defined by RFC 3339.
- compartment
Id 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.
- lifecycle
Details 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"} - time
Created string - Creation time of MlApplication in the format defined by RFC 3339.
- time
Updated 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.
- compartment
Id 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.
- lifecycle
Details 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"} - time
Created String - Creation time of MlApplication in the format defined by RFC 3339.
- time
Updated 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.
