Oracle Cloud Infrastructure v3.15.0 published on Thursday, Jan 22, 2026 by Pulumi
Oracle Cloud Infrastructure v3.15.0 published on Thursday, Jan 22, 2026 by Pulumi
This data source provides the list of Imported Models in Oracle Cloud Infrastructure Generative AI service.
Lists imported models in a specific compartment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testImportedModels = oci.GenerativeAi.getImportedModels({
compartmentId: compartmentId,
capabilities: importedModelCapability,
displayName: importedModelDisplayName,
id: importedModelId,
state: importedModelState,
vendor: importedModelVendor,
});
import pulumi
import pulumi_oci as oci
test_imported_models = oci.GenerativeAi.get_imported_models(compartment_id=compartment_id,
capabilities=imported_model_capability,
display_name=imported_model_display_name,
id=imported_model_id,
state=imported_model_state,
vendor=imported_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.GetImportedModels(ctx, &generativeai.GetImportedModelsArgs{
CompartmentId: compartmentId,
Capabilities: importedModelCapability,
DisplayName: pulumi.StringRef(importedModelDisplayName),
Id: pulumi.StringRef(importedModelId),
State: pulumi.StringRef(importedModelState),
Vendor: pulumi.StringRef(importedModelVendor),
}, 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 testImportedModels = Oci.GenerativeAi.GetImportedModels.Invoke(new()
{
CompartmentId = compartmentId,
Capabilities = importedModelCapability,
DisplayName = importedModelDisplayName,
Id = importedModelId,
State = importedModelState,
Vendor = importedModelVendor,
});
});
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.GetImportedModelsArgs;
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 testImportedModels = GenerativeAiFunctions.getImportedModels(GetImportedModelsArgs.builder()
.compartmentId(compartmentId)
.capabilities(importedModelCapability)
.displayName(importedModelDisplayName)
.id(importedModelId)
.state(importedModelState)
.vendor(importedModelVendor)
.build());
}
}
variables:
testImportedModels:
fn::invoke:
function: oci:GenerativeAi:getImportedModels
arguments:
compartmentId: ${compartmentId}
capabilities: ${importedModelCapability}
displayName: ${importedModelDisplayName}
id: ${importedModelId}
state: ${importedModelState}
vendor: ${importedModelVendor}
Using getImportedModels
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 getImportedModels(args: GetImportedModelsArgs, opts?: InvokeOptions): Promise<GetImportedModelsResult>
function getImportedModelsOutput(args: GetImportedModelsOutputArgs, opts?: InvokeOptions): Output<GetImportedModelsResult>def get_imported_models(capabilities: Optional[Sequence[str]] = None,
compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[GetImportedModelsFilter]] = None,
id: Optional[str] = None,
state: Optional[str] = None,
vendor: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetImportedModelsResult
def get_imported_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[GetImportedModelsFilterArgs]]]] = None,
id: Optional[pulumi.Input[str]] = None,
state: Optional[pulumi.Input[str]] = None,
vendor: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetImportedModelsResult]func GetImportedModels(ctx *Context, args *GetImportedModelsArgs, opts ...InvokeOption) (*GetImportedModelsResult, error)
func GetImportedModelsOutput(ctx *Context, args *GetImportedModelsOutputArgs, opts ...InvokeOption) GetImportedModelsResultOutput> Note: This function is named GetImportedModels in the Go SDK.
public static class GetImportedModels
{
public static Task<GetImportedModelsResult> InvokeAsync(GetImportedModelsArgs args, InvokeOptions? opts = null)
public static Output<GetImportedModelsResult> Invoke(GetImportedModelsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetImportedModelsResult> getImportedModels(GetImportedModelsArgs args, InvokeOptions options)
public static Output<GetImportedModelsResult> getImportedModels(GetImportedModelsArgs args, InvokeOptions options)
fn::invoke:
function: oci:GenerativeAi/getImportedModels:getImportedModels
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
Imported Models Filter> - Id string
- The ID of the importedModel.
- 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
Imported Models Filter - Id string
- The ID of the importedModel.
- 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
Imported Models Filter> - id String
- The ID of the importedModel.
- 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
Imported Models Filter[] - id string
- The ID of the importedModel.
- 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
Imported Models Filter] - id str
- The ID of the importedModel.
- 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 importedModel.
- 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.
getImportedModels Result
The following output properties are available:
- Compartment
Id string - Imported
Model List<GetCollections Imported Models Imported Model Collection> - The list of imported_model_collection.
- Capabilities List<string>
- Display
Name string - Filters
List<Get
Imported Models Filter> - Id string
- State string
- Vendor string
- Compartment
Id string - Imported
Model []GetCollections Imported Models Imported Model Collection - The list of imported_model_collection.
- Capabilities []string
- Display
Name string - Filters
[]Get
Imported Models Filter - Id string
- State string
- Vendor string
- compartment
Id String - imported
Model List<GetCollections Imported Models Imported Model Collection> - The list of imported_model_collection.
- capabilities List<String>
- display
Name String - filters
List<Get
Imported Models Filter> - id String
- state String
- vendor String
- compartment
Id string - imported
Model GetCollections Imported Models Imported Model Collection[] - The list of imported_model_collection.
- capabilities string[]
- display
Name string - filters
Get
Imported Models Filter[] - id string
- state string
- vendor string
- compartment_
id str - imported_
model_ Sequence[Getcollections Imported Models Imported Model Collection] - The list of imported_model_collection.
- capabilities Sequence[str]
- display_
name str - filters
Sequence[Get
Imported Models Filter] - id str
- state str
- vendor str
- compartment
Id String - imported
Model List<Property Map>Collections - The list of imported_model_collection.
- capabilities List<String>
- display
Name String - filters List<Property Map>
- id String
- state String
- vendor String
Supporting Types
GetImportedModelsFilter
GetImportedModelsImportedModelCollection
GetImportedModelsImportedModelCollectionItem
- Capabilities List<string>
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Data
Sources List<GetImported Models Imported Model Collection Item Data Source> - Dictionary<string, string>
- Description string
- Display
Name string - A filter to return only resources that match the given display name exactly.
- Dictionary<string, string>
- Id string
- The ID of the importedModel.
- Lifecycle
Details string - Previous
State string - State string
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- Dictionary<string, string>
- Time
Created string - Time
Updated string - Vendor string
- A filter to return only resources that match the entire vendor given.
- Version string
- Capabilities []string
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Data
Sources []GetImported Models Imported Model Collection Item Data Source - map[string]string
- Description string
- Display
Name string - A filter to return only resources that match the given display name exactly.
- map[string]string
- Id string
- The ID of the importedModel.
- Lifecycle
Details string - Previous
State string - State string
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- map[string]string
- Time
Created string - Time
Updated string - Vendor string
- A filter to return only resources that match the entire vendor given.
- Version string
- capabilities List<String>
- compartment
Id String - The OCID of the compartment in which to list resources.
- data
Sources List<GetImported Models Imported Model Collection Item Data Source> - Map<String,String>
- description String
- display
Name String - A filter to return only resources that match the given display name exactly.
- Map<String,String>
- id String
- The ID of the importedModel.
- lifecycle
Details String - previous
State String - state String
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- Map<String,String>
- time
Created String - time
Updated String - vendor String
- A filter to return only resources that match the entire vendor given.
- version String
- capabilities string[]
- compartment
Id string - The OCID of the compartment in which to list resources.
- data
Sources GetImported Models Imported Model Collection Item Data Source[] - {[key: string]: string}
- description string
- display
Name string - A filter to return only resources that match the given display name exactly.
- {[key: string]: string}
- id string
- The ID of the importedModel.
- lifecycle
Details string - previous
State string - state string
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- {[key: string]: string}
- time
Created string - time
Updated string - vendor string
- A filter to return only resources that match the entire vendor given.
- version string
- capabilities Sequence[str]
- compartment_
id str - The OCID of the compartment in which to list resources.
- data_
sources Sequence[GetImported Models Imported Model Collection Item Data Source] - Mapping[str, str]
- description str
- display_
name str - A filter to return only resources that match the given display name exactly.
- Mapping[str, str]
- id str
- The ID of the importedModel.
- lifecycle_
details str - previous_
state str - state str
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- Mapping[str, str]
- time_
created str - time_
updated str - vendor str
- A filter to return only resources that match the entire vendor given.
- version str
- capabilities List<String>
- compartment
Id String - The OCID of the compartment in which to list resources.
- data
Sources List<Property Map> - Map<String>
- description String
- display
Name String - A filter to return only resources that match the given display name exactly.
- Map<String>
- id String
- The ID of the importedModel.
- lifecycle
Details String - previous
State String - state String
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- Map<String>
- time
Created String - time
Updated String - vendor String
- A filter to return only resources that match the entire vendor given.
- version String
GetImportedModelsImportedModelCollectionItemDataSource
- 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.
Oracle Cloud Infrastructure v3.15.0 published on Thursday, Jan 22, 2026 by Pulumi
