Oracle Cloud Infrastructure v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi
Oracle Cloud Infrastructure v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi
This data source provides the list of Models in Oracle Cloud Infrastructure Generative AI service.
Lists the models in a specific compartment. Includes pretrained base models and fine-tuned custom models.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testModels = oci.GenerativeAi.getModels({
compartmentId: compartmentId,
capabilities: modelCapability,
displayName: modelDisplayName,
id: modelId,
state: modelState,
vendor: modelVendor,
});
import pulumi
import pulumi_oci as oci
test_models = oci.GenerativeAi.get_models(compartment_id=compartment_id,
capabilities=model_capability,
display_name=model_display_name,
id=model_id,
state=model_state,
vendor=model_vendor)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/generativeai"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := generativeai.GetModels(ctx, &generativeai.GetModelsArgs{
CompartmentId: compartmentId,
Capabilities: modelCapability,
DisplayName: pulumi.StringRef(modelDisplayName),
Id: pulumi.StringRef(modelId),
State: pulumi.StringRef(modelState),
Vendor: pulumi.StringRef(modelVendor),
}, 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 testModels = Oci.GenerativeAi.GetModels.Invoke(new()
{
CompartmentId = compartmentId,
Capabilities = modelCapability,
DisplayName = modelDisplayName,
Id = modelId,
State = modelState,
Vendor = modelVendor,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.GenerativeAi.GenerativeAiFunctions;
import com.pulumi.oci.GenerativeAi.inputs.GetModelsArgs;
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 testModels = GenerativeAiFunctions.getModels(GetModelsArgs.builder()
.compartmentId(compartmentId)
.capabilities(modelCapability)
.displayName(modelDisplayName)
.id(modelId)
.state(modelState)
.vendor(modelVendor)
.build());
}
}
variables:
testModels:
fn::invoke:
function: oci:GenerativeAi:getModels
arguments:
compartmentId: ${compartmentId}
capabilities: ${modelCapability}
displayName: ${modelDisplayName}
id: ${modelId}
state: ${modelState}
vendor: ${modelVendor}
Using getModels
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 getModels(args: GetModelsArgs, opts?: InvokeOptions): Promise<GetModelsResult>
function getModelsOutput(args: GetModelsOutputArgs, opts?: InvokeOptions): Output<GetModelsResult>def get_models(capabilities: Optional[Sequence[str]] = None,
compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[GetModelsFilter]] = None,
id: Optional[str] = None,
state: Optional[str] = None,
vendor: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetModelsResult
def get_models_output(capabilities: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
compartment_id: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetModelsFilterArgs]]]] = None,
id: Optional[pulumi.Input[str]] = None,
state: Optional[pulumi.Input[str]] = None,
vendor: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetModelsResult]func GetModels(ctx *Context, args *GetModelsArgs, opts ...InvokeOption) (*GetModelsResult, error)
func GetModelsOutput(ctx *Context, args *GetModelsOutputArgs, opts ...InvokeOption) GetModelsResultOutput> Note: This function is named GetModels in the Go SDK.
public static class GetModels
{
public static Task<GetModelsResult> InvokeAsync(GetModelsArgs args, InvokeOptions? opts = null)
public static Output<GetModelsResult> Invoke(GetModelsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetModelsResult> getModels(GetModelsArgs args, InvokeOptions options)
public static Output<GetModelsResult> getModels(GetModelsArgs args, InvokeOptions options)
fn::invoke:
function: oci:GenerativeAi/getModels:getModels
arguments:
# arguments dictionaryThe following arguments are supported:
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Capabilities List<string>
- A filter to return only resources their capability matches the given capability.
- Display
Name string - A filter to return only resources that match the given display name exactly.
- Filters
List<Get
Models Filter> - Id string
- The ID of the model.
- State string
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- Vendor string
- A filter to return only resources that match the entire vendor given.
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Capabilities []string
- A filter to return only resources their capability matches the given capability.
- Display
Name string - A filter to return only resources that match the given display name exactly.
- Filters
[]Get
Models Filter - Id string
- The ID of the model.
- State string
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- Vendor string
- A filter to return only resources that match the entire vendor given.
- compartment
Id String - The OCID of the compartment in which to list resources.
- capabilities List<String>
- A filter to return only resources their capability matches the given capability.
- display
Name String - A filter to return only resources that match the given display name exactly.
- filters
List<Get
Models Filter> - id String
- The ID of the model.
- state String
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- vendor String
- A filter to return only resources that match the entire vendor given.
- compartment
Id string - The OCID of the compartment in which to list resources.
- capabilities string[]
- A filter to return only resources their capability matches the given capability.
- display
Name string - A filter to return only resources that match the given display name exactly.
- filters
Get
Models Filter[] - id string
- The ID of the model.
- state string
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- vendor string
- A filter to return only resources that match the entire vendor given.
- compartment_
id str - The OCID of the compartment in which to list resources.
- capabilities Sequence[str]
- A filter to return only resources their capability matches the given capability.
- display_
name str - A filter to return only resources that match the given display name exactly.
- filters
Sequence[Get
Models Filter] - id str
- The ID of the model.
- state str
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- vendor str
- A filter to return only resources that match the entire vendor given.
- compartment
Id String - The OCID of the compartment in which to list resources.
- capabilities List<String>
- A filter to return only resources their capability matches the given capability.
- display
Name String - A filter to return only resources that match the given display name exactly.
- filters List<Property Map>
- id String
- The ID of the model.
- state String
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- vendor String
- A filter to return only resources that match the entire vendor given.
getModels Result
The following output properties are available:
- Compartment
Id string - Model
Collections List<GetModels Model Collection> - The list of model_collection.
- Capabilities List<string>
- Display
Name string - Filters
List<Get
Models Filter> - Id string
- State string
- The lifecycle state of the model.
- Vendor string
- The provider of the base model.
- Compartment
Id string - Model
Collections []GetModels Model Collection - The list of model_collection.
- Capabilities []string
- Display
Name string - Filters
[]Get
Models Filter - Id string
- State string
- The lifecycle state of the model.
- Vendor string
- The provider of the base model.
- compartment
Id String - model
Collections List<GetModels Model Collection> - The list of model_collection.
- capabilities List<String>
- display
Name String - filters
List<Get
Models Filter> - id String
- state String
- The lifecycle state of the model.
- vendor String
- The provider of the base model.
- compartment
Id string - model
Collections GetModels Model Collection[] - The list of model_collection.
- capabilities string[]
- display
Name string - filters
Get
Models Filter[] - id string
- state string
- The lifecycle state of the model.
- vendor string
- The provider of the base model.
- compartment_
id str - model_
collections Sequence[GetModels Model Collection] - The list of model_collection.
- capabilities Sequence[str]
- display_
name str - filters
Sequence[Get
Models Filter] - id str
- state str
- The lifecycle state of the model.
- vendor str
- The provider of the base model.
- compartment
Id String - model
Collections List<Property Map> - The list of model_collection.
- capabilities List<String>
- display
Name String - filters List<Property Map>
- id String
- state String
- The lifecycle state of the model.
- vendor String
- The provider of the base model.
Supporting Types
GetModelsFilter
GetModelsModelCollection
GetModelsModelCollectionItem
- Base
Model stringId - Capabilities List<string>
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Dictionary<string, string>
- Description string
- An optional description of the model.
- Display
Name string - A filter to return only resources that match the given display name exactly.
- Fine
Tune List<GetDetails Models Model Collection Item Fine Tune Detail> - Dictionary<string, string>
- Id string
- The ID of the model.
- Is
Long boolTerm Supported - Lifecycle
Details string - Model
Metrics List<GetModels Model Collection Item Model Metric> - State string
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - Time
Deprecated string - Time
Updated string - Type string
- Vendor string
- A filter to return only resources that match the entire vendor given.
- Version string
- The version of the model.
- Base
Model stringId - Capabilities []string
- Compartment
Id string - The OCID of the compartment in which to list resources.
- map[string]string
- Description string
- An optional description of the model.
- Display
Name string - A filter to return only resources that match the given display name exactly.
- Fine
Tune []GetDetails Models Model Collection Item Fine Tune Detail - map[string]string
- Id string
- The ID of the model.
- Is
Long boolTerm Supported - Lifecycle
Details string - Model
Metrics []GetModels Model Collection Item Model Metric - State string
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - Time
Deprecated string - Time
Updated string - Type string
- Vendor string
- A filter to return only resources that match the entire vendor given.
- Version string
- The version of the model.
- base
Model StringId - capabilities List<String>
- compartment
Id String - The OCID of the compartment in which to list resources.
- Map<String,String>
- description String
- An optional description of the model.
- display
Name String - A filter to return only resources that match the given display name exactly.
- fine
Tune List<GetDetails Models Model Collection Item Fine Tune Detail> - Map<String,String>
- id String
- The ID of the model.
- is
Long BooleanTerm Supported - lifecycle
Details String - model
Metrics List<GetModels Model Collection Item Model Metric> - state String
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - time
Deprecated String - time
Updated String - type String
- vendor String
- A filter to return only resources that match the entire vendor given.
- version String
- The version of the model.
- base
Model stringId - capabilities string[]
- compartment
Id string - The OCID of the compartment in which to list resources.
- {[key: string]: string}
- description string
- An optional description of the model.
- display
Name string - A filter to return only resources that match the given display name exactly.
- fine
Tune GetDetails Models Model Collection Item Fine Tune Detail[] - {[key: string]: string}
- id string
- The ID of the model.
- is
Long booleanTerm Supported - lifecycle
Details string - model
Metrics GetModels Model Collection Item Model Metric[] - state string
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created string - time
Deprecated string - time
Updated string - type string
- vendor string
- A filter to return only resources that match the entire vendor given.
- version string
- The version of the model.
- base_
model_ strid - capabilities Sequence[str]
- compartment_
id str - The OCID of the compartment in which to list resources.
- Mapping[str, str]
- description str
- An optional description of the model.
- display_
name str - A filter to return only resources that match the given display name exactly.
- fine_
tune_ Sequence[Getdetails Models Model Collection Item Fine Tune Detail] - Mapping[str, str]
- id str
- The ID of the model.
- is_
long_ boolterm_ supported - lifecycle_
details str - model_
metrics Sequence[GetModels Model Collection Item Model Metric] - state str
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time_
created str - time_
deprecated str - time_
updated str - type str
- vendor str
- A filter to return only resources that match the entire vendor given.
- version str
- The version of the model.
- base
Model StringId - capabilities List<String>
- compartment
Id String - The OCID of the compartment in which to list resources.
- Map<String>
- description String
- An optional description of the model.
- display
Name String - A filter to return only resources that match the given display name exactly.
- fine
Tune List<Property Map>Details - Map<String>
- id String
- The ID of the model.
- is
Long BooleanTerm Supported - lifecycle
Details String - model
Metrics List<Property Map> - state String
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - time
Deprecated String - time
Updated String - type String
- vendor String
- A filter to return only resources that match the entire vendor given.
- version String
- The version of the model.
GetModelsModelCollectionItemFineTuneDetail
GetModelsModelCollectionItemFineTuneDetailTrainingConfig
- Early
Stopping intPatience - Early
Stopping doubleThreshold - Learning
Rate double - Log
Model intMetrics Interval In Steps - Lora
Alpha int - Lora
Dropout double - Lora
R int - Num
Of intLast Layers - Total
Training intEpochs - Training
Batch intSize - Training
Config stringType
- Early
Stopping intPatience - Early
Stopping float64Threshold - Learning
Rate float64 - Log
Model intMetrics Interval In Steps - Lora
Alpha int - Lora
Dropout float64 - Lora
R int - Num
Of intLast Layers - Total
Training intEpochs - Training
Batch intSize - Training
Config stringType
- early
Stopping IntegerPatience - early
Stopping DoubleThreshold - learning
Rate Double - log
Model IntegerMetrics Interval In Steps - lora
Alpha Integer - lora
Dropout Double - lora
R Integer - num
Of IntegerLast Layers - total
Training IntegerEpochs - training
Batch IntegerSize - training
Config StringType
- early
Stopping numberPatience - early
Stopping numberThreshold - learning
Rate number - log
Model numberMetrics Interval In Steps - lora
Alpha number - lora
Dropout number - lora
R number - num
Of numberLast Layers - total
Training numberEpochs - training
Batch numberSize - training
Config stringType
- early
Stopping NumberPatience - early
Stopping NumberThreshold - learning
Rate Number - log
Model NumberMetrics Interval In Steps - lora
Alpha Number - lora
Dropout Number - lora
R Number - num
Of NumberLast Layers - total
Training NumberEpochs - training
Batch NumberSize - training
Config StringType
GetModelsModelCollectionItemFineTuneDetailTrainingDataset
- Bucket string
- Dataset
Type string - Namespace string
- Object string
- Bucket string
- Dataset
Type string - Namespace string
- Object string
- bucket String
- dataset
Type String - namespace String
- object String
- bucket string
- dataset
Type string - namespace string
- object string
- bucket str
- dataset_
type str - namespace str
- object str
- bucket String
- dataset
Type String - namespace String
- object String
GetModelsModelCollectionItemModelMetric
- Final
Accuracy double - Final
Loss double - Model
Metrics stringType
- Final
Accuracy float64 - Final
Loss float64 - Model
Metrics stringType
- final
Accuracy Double - final
Loss Double - model
Metrics StringType
- final
Accuracy number - final
Loss number - model
Metrics stringType
- final_
accuracy float - final_
loss float - model_
metrics_ strtype
- final
Accuracy Number - final
Loss Number - model
Metrics StringType
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
Oracle Cloud Infrastructure v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi
