Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi
published on Friday, Mar 6, 2026 by Pulumi
Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi
published on Friday, Mar 6, 2026 by Pulumi
This data source provides details about a specific Imported Model resource in Oracle Cloud Infrastructure Generative AI service.
Gets information about an imported model.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testImportedModel = oci.GenerativeAi.getImportedModel({
importedModelId: testImportedModelOciGenerativeAiImportedModel.id,
});
import pulumi
import pulumi_oci as oci
test_imported_model = oci.GenerativeAi.get_imported_model(imported_model_id=test_imported_model_oci_generative_ai_imported_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.GetImportedModel(ctx, &generativeai.GetImportedModelArgs{
ImportedModelId: testImportedModelOciGenerativeAiImportedModel.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 testImportedModel = Oci.GenerativeAi.GetImportedModel.Invoke(new()
{
ImportedModelId = testImportedModelOciGenerativeAiImportedModel.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.GetImportedModelArgs;
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 testImportedModel = GenerativeAiFunctions.getImportedModel(GetImportedModelArgs.builder()
.importedModelId(testImportedModelOciGenerativeAiImportedModel.id())
.build());
}
}
variables:
testImportedModel:
fn::invoke:
function: oci:GenerativeAi:getImportedModel
arguments:
importedModelId: ${testImportedModelOciGenerativeAiImportedModel.id}
Using getImportedModel
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 getImportedModel(args: GetImportedModelArgs, opts?: InvokeOptions): Promise<GetImportedModelResult>
function getImportedModelOutput(args: GetImportedModelOutputArgs, opts?: InvokeOptions): Output<GetImportedModelResult>def get_imported_model(imported_model_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetImportedModelResult
def get_imported_model_output(imported_model_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetImportedModelResult]func LookupImportedModel(ctx *Context, args *LookupImportedModelArgs, opts ...InvokeOption) (*LookupImportedModelResult, error)
func LookupImportedModelOutput(ctx *Context, args *LookupImportedModelOutputArgs, opts ...InvokeOption) LookupImportedModelResultOutput> Note: This function is named LookupImportedModel in the Go SDK.
public static class GetImportedModel
{
public static Task<GetImportedModelResult> InvokeAsync(GetImportedModelArgs args, InvokeOptions? opts = null)
public static Output<GetImportedModelResult> Invoke(GetImportedModelInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetImportedModelResult> getImportedModel(GetImportedModelArgs args, InvokeOptions options)
public static Output<GetImportedModelResult> getImportedModel(GetImportedModelArgs args, InvokeOptions options)
fn::invoke:
function: oci:GenerativeAi/getImportedModel:getImportedModel
arguments:
# arguments dictionaryThe following arguments are supported:
- Imported
Model stringId - The importedModel OCID
- Imported
Model stringId - The importedModel OCID
- imported
Model StringId - The importedModel OCID
- imported
Model stringId - The importedModel OCID
- imported_
model_ strid - The importedModel OCID
- imported
Model StringId - The importedModel OCID
getImportedModel Result
The following output properties are available:
- Capabilities List<string>
- Compartment
Id string - Data
Sources List<GetImported Model Data Source> - Dictionary<string, string>
- Description string
- Display
Name string - Dictionary<string, string>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - Id string
- Imported
Model stringId - Lifecycle
Details string - Additional information about the current state of the imported model, providing more detailed and actionable context.
- Previous
State string - State string
- Dictionary<string, string>
- Time
Created string - The date and time that the imported model was created in the format of an RFC3339 datetime string.
- Time
Updated string - Vendor string
- Version string
- Capabilities []string
- Compartment
Id string - Data
Sources []GetImported Model Data Source - map[string]string
- Description string
- Display
Name string - map[string]string
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - Id string
- Imported
Model stringId - Lifecycle
Details string - Additional information about the current state of the imported model, providing more detailed and actionable context.
- Previous
State string - State string
- map[string]string
- Time
Created string - The date and time that the imported model was created in the format of an RFC3339 datetime string.
- Time
Updated string - Vendor string
- Version string
- capabilities List<String>
- compartment
Id String - data
Sources List<GetImported Model Data Source> - Map<String,String>
- description String
- display
Name String - Map<String,String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - id String
- imported
Model StringId - lifecycle
Details String - Additional information about the current state of the imported model, providing more detailed and actionable context.
- previous
State String - state String
- Map<String,String>
- time
Created String - The date and time that the imported model was created in the format of an RFC3339 datetime string.
- time
Updated String - vendor String
- version String
- capabilities string[]
- compartment
Id string - data
Sources GetImported Model Data Source[] - {[key: string]: string}
- description string
- display
Name string - {[key: string]: string}
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - id string
- imported
Model stringId - lifecycle
Details string - Additional information about the current state of the imported model, providing more detailed and actionable context.
- previous
State string - state string
- {[key: string]: string}
- time
Created string - The date and time that the imported model was created in the format of an RFC3339 datetime string.
- time
Updated string - vendor string
- version string
- capabilities Sequence[str]
- compartment_
id str - data_
sources Sequence[GetImported Model Data Source] - Mapping[str, str]
- description str
- display_
name str - Mapping[str, str]
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - id str
- imported_
model_ strid - lifecycle_
details str - Additional information about the current state of the imported model, providing more detailed and actionable context.
- previous_
state str - state str
- Mapping[str, str]
- time_
created str - The date and time that the imported model was created in the format of an RFC3339 datetime string.
- time_
updated str - vendor str
- version str
- capabilities List<String>
- compartment
Id String - data
Sources List<Property Map> - Map<String>
- description String
- display
Name String - Map<String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - id String
- imported
Model StringId - lifecycle
Details String - Additional information about the current state of the imported model, providing more detailed and actionable context.
- previous
State String - state String
- Map<String>
- time
Created String - The date and time that the imported model was created in the format of an RFC3339 datetime string.
- time
Updated String - vendor String
- version String
Supporting Types
GetImportedModelDataSource
- Access
Token string - Branch string
- Bucket string
- Commit string
- Model
Id string - Namespace string
- Prefix
Name string - Region string
- Source
Type string
- Access
Token string - Branch string
- Bucket string
- Commit string
- Model
Id string - Namespace string
- Prefix
Name string - Region string
- Source
Type string
- access
Token String - branch String
- bucket String
- commit String
- model
Id String - namespace String
- prefix
Name String - region String
- source
Type String
- access
Token string - branch string
- bucket string
- commit string
- model
Id string - namespace string
- prefix
Name string - region string
- source
Type string
- access_
token str - branch str
- bucket str
- commit str
- model_
id str - namespace str
- prefix_
name str - region str
- source_
type str
- access
Token String - branch String
- bucket String
- commit String
- model
Id String - namespace String
- prefix
Name String - region String
- source
Type String
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.2.0
published on Friday, Mar 6, 2026 by Pulumi
published on Friday, Mar 6, 2026 by Pulumi
