Viewing docs for Oracle Cloud Infrastructure v4.4.0
published on Thursday, Mar 26, 2026 by Pulumi
published on Thursday, Mar 26, 2026 by Pulumi
Viewing docs for Oracle Cloud Infrastructure v4.4.0
published on Thursday, Mar 26, 2026 by Pulumi
published on Thursday, Mar 26, 2026 by Pulumi
This data source provides details about a specific Model resource in Oracle Cloud Infrastructure Generative AI service.
Gets information about a custom model.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testModel = oci.GenerativeAi.getModel({
modelId: testModelOciGenerativeAiModel.id,
});
import pulumi
import pulumi_oci as oci
test_model = oci.GenerativeAi.get_model(model_id=test_model_oci_generative_ai_model["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v4/go/oci/generativeai"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := generativeai.GetModel(ctx, &generativeai.GetModelArgs{
ModelId: testModelOciGenerativeAiModel.Id,
}, 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 testModel = Oci.GenerativeAi.GetModel.Invoke(new()
{
ModelId = testModelOciGenerativeAiModel.Id,
});
});
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.GetModelArgs;
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 testModel = GenerativeAiFunctions.getModel(GetModelArgs.builder()
.modelId(testModelOciGenerativeAiModel.id())
.build());
}
}
variables:
testModel:
fn::invoke:
function: oci:GenerativeAi:getModel
arguments:
modelId: ${testModelOciGenerativeAiModel.id}
Using getModel
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 getModel(args: GetModelArgs, opts?: InvokeOptions): Promise<GetModelResult>
function getModelOutput(args: GetModelOutputArgs, opts?: InvokeOptions): Output<GetModelResult>def get_model(model_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetModelResult
def get_model_output(model_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetModelResult]func LookupModel(ctx *Context, args *LookupModelArgs, opts ...InvokeOption) (*LookupModelResult, error)
func LookupModelOutput(ctx *Context, args *LookupModelOutputArgs, opts ...InvokeOption) LookupModelResultOutput> Note: This function is named LookupModel in the Go SDK.
public static class GetModel
{
public static Task<GetModelResult> InvokeAsync(GetModelArgs args, InvokeOptions? opts = null)
public static Output<GetModelResult> Invoke(GetModelInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetModelResult> getModel(GetModelArgs args, InvokeOptions options)
public static Output<GetModelResult> getModel(GetModelArgs args, InvokeOptions options)
fn::invoke:
function: oci:GenerativeAi/getModel:getModel
arguments:
# arguments dictionaryThe following arguments are supported:
- Model
Id string - The model OCID
- Model
Id string - The model OCID
- model
Id String - The model OCID
- model
Id string - The model OCID
- model_
id str - The model OCID
- model
Id String - The model OCID
getModel Result
The following output properties are available:
- Base
Model stringId - Capabilities List<string>
- Describes what this model can be used for.
- Compartment
Id string - Dictionary<string, string>
- Description string
- An optional description of the model.
- Display
Name string - Fine
Tune List<GetDetails Model Fine Tune Detail> - Dictionary<string, string>
- Id string
- Is
Long boolTerm Supported - Lifecycle
Details string - Model
Id string - Model
Metrics List<GetModel Model Metric> - State string
- The lifecycle state of the model.
- 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
- The provider of the base model.
- Version string
- The version of the model.
- Base
Model stringId - Capabilities []string
- Describes what this model can be used for.
- Compartment
Id string - map[string]string
- Description string
- An optional description of the model.
- Display
Name string - Fine
Tune []GetDetails Model Fine Tune Detail - map[string]string
- Id string
- Is
Long boolTerm Supported - Lifecycle
Details string - Model
Id string - Model
Metrics []GetModel Model Metric - State string
- The lifecycle state of the model.
- 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
- The provider of the base model.
- Version string
- The version of the model.
- base
Model StringId - capabilities List<String>
- Describes what this model can be used for.
- compartment
Id String - Map<String,String>
- description String
- An optional description of the model.
- display
Name String - fine
Tune List<GetDetails Model Fine Tune Detail> - Map<String,String>
- id String
- is
Long BooleanTerm Supported - lifecycle
Details String - model
Id String - model
Metrics List<GetModel Model Metric> - state String
- The lifecycle state of the model.
- 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
- The provider of the base model.
- version String
- The version of the model.
- base
Model stringId - capabilities string[]
- Describes what this model can be used for.
- compartment
Id string - {[key: string]: string}
- description string
- An optional description of the model.
- display
Name string - fine
Tune GetDetails Model Fine Tune Detail[] - {[key: string]: string}
- id string
- is
Long booleanTerm Supported - lifecycle
Details string - model
Id string - model
Metrics GetModel Model Metric[] - state string
- The lifecycle state of the model.
- {[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
- The provider of the base model.
- version string
- The version of the model.
- base_
model_ strid - capabilities Sequence[str]
- Describes what this model can be used for.
- compartment_
id str - Mapping[str, str]
- description str
- An optional description of the model.
- display_
name str - fine_
tune_ Sequence[Getdetails Model Fine Tune Detail] - Mapping[str, str]
- id str
- is_
long_ boolterm_ supported - lifecycle_
details str - model_
id str - model_
metrics Sequence[GetModel Model Metric] - state str
- The lifecycle state of the model.
- 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
- The provider of the base model.
- version str
- The version of the model.
- base
Model StringId - capabilities List<String>
- Describes what this model can be used for.
- compartment
Id String - Map<String>
- description String
- An optional description of the model.
- display
Name String - fine
Tune List<Property Map>Details - Map<String>
- id String
- is
Long BooleanTerm Supported - lifecycle
Details String - model
Id String - model
Metrics List<Property Map> - state String
- The lifecycle state of the model.
- 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
- The provider of the base model.
- version String
- The version of the model.
Supporting Types
GetModelFineTuneDetail
GetModelFineTuneDetailTrainingConfig
- 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
GetModelFineTuneDetailTrainingDataset
- 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
GetModelModelMetric
- 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.
Viewing docs for Oracle Cloud Infrastructure v4.4.0
published on Thursday, Mar 26, 2026 by Pulumi
published on Thursday, Mar 26, 2026 by Pulumi
