1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. GenerativeAi
  5. ImportedModel
Oracle Cloud Infrastructure v3.15.0 published on Thursday, Jan 22, 2026 by Pulumi
oci logo
Oracle Cloud Infrastructure v3.15.0 published on Thursday, Jan 22, 2026 by Pulumi

    This resource provides the Imported Model resource in Oracle Cloud Infrastructure Generative AI service.

    Import a model from ModelDataSource.

    The header contains an opc-work-request-id, which is the id for the WorkRequest that tracks the importedModel creation progress.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testImportedModel = new oci.generativeai.ImportedModel("test_imported_model", {
        compartmentId: compartmentId,
        dataSource: {
            accessToken: importedModelDataSourceAccessToken,
            branch: importedModelDataSourceBranch,
            bucket: importedModelDataSourceBucket,
            commit: importedModelDataSourceCommit,
            modelId: testModel.id,
            namespace: importedModelDataSourceNamespace,
            prefixName: importedModelDataSourcePrefixName,
            region: importedModelDataSourceRegion,
            sourceType: importedModelDataSourceSourceType,
        },
        capabilities: importedModelCapabilities,
        definedTags: {
            "Operations.CostCenter": "42",
        },
        description: importedModelDescription,
        displayName: importedModelDisplayName,
        freeformTags: {
            Department: "Finance",
        },
        vendor: importedModelVendor,
        version: importedModelVersion,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_imported_model = oci.generativeai.ImportedModel("test_imported_model",
        compartment_id=compartment_id,
        data_source={
            "access_token": imported_model_data_source_access_token,
            "branch": imported_model_data_source_branch,
            "bucket": imported_model_data_source_bucket,
            "commit": imported_model_data_source_commit,
            "model_id": test_model["id"],
            "namespace": imported_model_data_source_namespace,
            "prefix_name": imported_model_data_source_prefix_name,
            "region": imported_model_data_source_region,
            "source_type": imported_model_data_source_source_type,
        },
        capabilities=imported_model_capabilities,
        defined_tags={
            "Operations.CostCenter": "42",
        },
        description=imported_model_description,
        display_name=imported_model_display_name,
        freeform_tags={
            "Department": "Finance",
        },
        vendor=imported_model_vendor,
        version=imported_model_version)
    
    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.NewImportedModel(ctx, "test_imported_model", &generativeai.ImportedModelArgs{
    			CompartmentId: pulumi.Any(compartmentId),
    			DataSource: &generativeai.ImportedModelDataSourceArgs{
    				AccessToken: pulumi.Any(importedModelDataSourceAccessToken),
    				Branch:      pulumi.Any(importedModelDataSourceBranch),
    				Bucket:      pulumi.Any(importedModelDataSourceBucket),
    				Commit:      pulumi.Any(importedModelDataSourceCommit),
    				ModelId:     pulumi.Any(testModel.Id),
    				Namespace:   pulumi.Any(importedModelDataSourceNamespace),
    				PrefixName:  pulumi.Any(importedModelDataSourcePrefixName),
    				Region:      pulumi.Any(importedModelDataSourceRegion),
    				SourceType:  pulumi.Any(importedModelDataSourceSourceType),
    			},
    			Capabilities: pulumi.Any(importedModelCapabilities),
    			DefinedTags: pulumi.StringMap{
    				"Operations.CostCenter": pulumi.String("42"),
    			},
    			Description: pulumi.Any(importedModelDescription),
    			DisplayName: pulumi.Any(importedModelDisplayName),
    			FreeformTags: pulumi.StringMap{
    				"Department": pulumi.String("Finance"),
    			},
    			Vendor:  pulumi.Any(importedModelVendor),
    			Version: pulumi.Any(importedModelVersion),
    		})
    		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 = new Oci.GenerativeAi.ImportedModel("test_imported_model", new()
        {
            CompartmentId = compartmentId,
            DataSource = new Oci.GenerativeAi.Inputs.ImportedModelDataSourceArgs
            {
                AccessToken = importedModelDataSourceAccessToken,
                Branch = importedModelDataSourceBranch,
                Bucket = importedModelDataSourceBucket,
                Commit = importedModelDataSourceCommit,
                ModelId = testModel.Id,
                Namespace = importedModelDataSourceNamespace,
                PrefixName = importedModelDataSourcePrefixName,
                Region = importedModelDataSourceRegion,
                SourceType = importedModelDataSourceSourceType,
            },
            Capabilities = importedModelCapabilities,
            DefinedTags = 
            {
                { "Operations.CostCenter", "42" },
            },
            Description = importedModelDescription,
            DisplayName = importedModelDisplayName,
            FreeformTags = 
            {
                { "Department", "Finance" },
            },
            Vendor = importedModelVendor,
            Version = importedModelVersion,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.GenerativeAi.ImportedModel;
    import com.pulumi.oci.GenerativeAi.ImportedModelArgs;
    import com.pulumi.oci.GenerativeAi.inputs.ImportedModelDataSourceArgs;
    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) {
            var testImportedModel = new ImportedModel("testImportedModel", ImportedModelArgs.builder()
                .compartmentId(compartmentId)
                .dataSource(ImportedModelDataSourceArgs.builder()
                    .accessToken(importedModelDataSourceAccessToken)
                    .branch(importedModelDataSourceBranch)
                    .bucket(importedModelDataSourceBucket)
                    .commit(importedModelDataSourceCommit)
                    .modelId(testModel.id())
                    .namespace(importedModelDataSourceNamespace)
                    .prefixName(importedModelDataSourcePrefixName)
                    .region(importedModelDataSourceRegion)
                    .sourceType(importedModelDataSourceSourceType)
                    .build())
                .capabilities(importedModelCapabilities)
                .definedTags(Map.of("Operations.CostCenter", "42"))
                .description(importedModelDescription)
                .displayName(importedModelDisplayName)
                .freeformTags(Map.of("Department", "Finance"))
                .vendor(importedModelVendor)
                .version(importedModelVersion)
                .build());
    
        }
    }
    
    resources:
      testImportedModel:
        type: oci:GenerativeAi:ImportedModel
        name: test_imported_model
        properties:
          compartmentId: ${compartmentId}
          dataSource:
            accessToken: ${importedModelDataSourceAccessToken}
            branch: ${importedModelDataSourceBranch}
            bucket: ${importedModelDataSourceBucket}
            commit: ${importedModelDataSourceCommit}
            modelId: ${testModel.id}
            namespace: ${importedModelDataSourceNamespace}
            prefixName: ${importedModelDataSourcePrefixName}
            region: ${importedModelDataSourceRegion}
            sourceType: ${importedModelDataSourceSourceType}
          capabilities: ${importedModelCapabilities}
          definedTags:
            Operations.CostCenter: '42'
          description: ${importedModelDescription}
          displayName: ${importedModelDisplayName}
          freeformTags:
            Department: Finance
          vendor: ${importedModelVendor}
          version: ${importedModelVersion}
    

    Create ImportedModel Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ImportedModel(name: string, args: ImportedModelArgs, opts?: CustomResourceOptions);
    @overload
    def ImportedModel(resource_name: str,
                      args: ImportedModelArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def ImportedModel(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      compartment_id: Optional[str] = None,
                      data_source: Optional[ImportedModelDataSourceArgs] = None,
                      capabilities: Optional[Sequence[str]] = None,
                      defined_tags: Optional[Mapping[str, str]] = None,
                      description: Optional[str] = None,
                      display_name: Optional[str] = None,
                      freeform_tags: Optional[Mapping[str, str]] = None,
                      vendor: Optional[str] = None,
                      version: Optional[str] = None)
    func NewImportedModel(ctx *Context, name string, args ImportedModelArgs, opts ...ResourceOption) (*ImportedModel, error)
    public ImportedModel(string name, ImportedModelArgs args, CustomResourceOptions? opts = null)
    public ImportedModel(String name, ImportedModelArgs args)
    public ImportedModel(String name, ImportedModelArgs args, CustomResourceOptions options)
    
    type: oci:GenerativeAi:ImportedModel
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ImportedModelArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ImportedModelArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ImportedModelArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ImportedModelArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ImportedModelArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var importedModelResource = new Oci.GenerativeAi.ImportedModel("importedModelResource", new()
    {
        CompartmentId = "string",
        DataSource = new Oci.GenerativeAi.Inputs.ImportedModelDataSourceArgs
        {
            AccessToken = "string",
            Branch = "string",
            Bucket = "string",
            Commit = "string",
            ModelId = "string",
            Namespace = "string",
            PrefixName = "string",
            Region = "string",
            SourceType = "string",
        },
        Capabilities = new[]
        {
            "string",
        },
        DefinedTags = 
        {
            { "string", "string" },
        },
        Description = "string",
        DisplayName = "string",
        FreeformTags = 
        {
            { "string", "string" },
        },
        Vendor = "string",
        Version = "string",
    });
    
    example, err := generativeai.NewImportedModel(ctx, "importedModelResource", &generativeai.ImportedModelArgs{
    	CompartmentId: pulumi.String("string"),
    	DataSource: &generativeai.ImportedModelDataSourceArgs{
    		AccessToken: pulumi.String("string"),
    		Branch:      pulumi.String("string"),
    		Bucket:      pulumi.String("string"),
    		Commit:      pulumi.String("string"),
    		ModelId:     pulumi.String("string"),
    		Namespace:   pulumi.String("string"),
    		PrefixName:  pulumi.String("string"),
    		Region:      pulumi.String("string"),
    		SourceType:  pulumi.String("string"),
    	},
    	Capabilities: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	DefinedTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Description: pulumi.String("string"),
    	DisplayName: pulumi.String("string"),
    	FreeformTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Vendor:  pulumi.String("string"),
    	Version: pulumi.String("string"),
    })
    
    var importedModelResource = new ImportedModel("importedModelResource", ImportedModelArgs.builder()
        .compartmentId("string")
        .dataSource(ImportedModelDataSourceArgs.builder()
            .accessToken("string")
            .branch("string")
            .bucket("string")
            .commit("string")
            .modelId("string")
            .namespace("string")
            .prefixName("string")
            .region("string")
            .sourceType("string")
            .build())
        .capabilities("string")
        .definedTags(Map.of("string", "string"))
        .description("string")
        .displayName("string")
        .freeformTags(Map.of("string", "string"))
        .vendor("string")
        .version("string")
        .build());
    
    imported_model_resource = oci.generativeai.ImportedModel("importedModelResource",
        compartment_id="string",
        data_source={
            "access_token": "string",
            "branch": "string",
            "bucket": "string",
            "commit": "string",
            "model_id": "string",
            "namespace": "string",
            "prefix_name": "string",
            "region": "string",
            "source_type": "string",
        },
        capabilities=["string"],
        defined_tags={
            "string": "string",
        },
        description="string",
        display_name="string",
        freeform_tags={
            "string": "string",
        },
        vendor="string",
        version="string")
    
    const importedModelResource = new oci.generativeai.ImportedModel("importedModelResource", {
        compartmentId: "string",
        dataSource: {
            accessToken: "string",
            branch: "string",
            bucket: "string",
            commit: "string",
            modelId: "string",
            namespace: "string",
            prefixName: "string",
            region: "string",
            sourceType: "string",
        },
        capabilities: ["string"],
        definedTags: {
            string: "string",
        },
        description: "string",
        displayName: "string",
        freeformTags: {
            string: "string",
        },
        vendor: "string",
        version: "string",
    });
    
    type: oci:GenerativeAi:ImportedModel
    properties:
        capabilities:
            - string
        compartmentId: string
        dataSource:
            accessToken: string
            branch: string
            bucket: string
            commit: string
            modelId: string
            namespace: string
            prefixName: string
            region: string
            sourceType: string
        definedTags:
            string: string
        description: string
        displayName: string
        freeformTags:
            string: string
        vendor: string
        version: string
    

    ImportedModel Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ImportedModel resource accepts the following input properties:

    CompartmentId string
    (Updatable) The compartment OCID from which the model is imported.
    DataSource ImportedModelDataSource
    Defines the source location and method used to import the model. Supports importing from Hugging Face, an Object Storage location, or by referencing an already imported model.
    Capabilities List<string>
    Specifies the intended use or supported capabilities of the imported model.
    DefinedTags Dictionary<string, string>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    Description string
    (Updatable) An optional description of the imported model.
    DisplayName string
    (Updatable) A user-friendly name for the imported model.
    FreeformTags Dictionary<string, string>
    (Updatable) 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"}
    Vendor string
    (Updatable) The provider of the imported model.
    Version string

    (Updatable) The version of the imported model.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    CompartmentId string
    (Updatable) The compartment OCID from which the model is imported.
    DataSource ImportedModelDataSourceArgs
    Defines the source location and method used to import the model. Supports importing from Hugging Face, an Object Storage location, or by referencing an already imported model.
    Capabilities []string
    Specifies the intended use or supported capabilities of the imported model.
    DefinedTags map[string]string
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    Description string
    (Updatable) An optional description of the imported model.
    DisplayName string
    (Updatable) A user-friendly name for the imported model.
    FreeformTags map[string]string
    (Updatable) 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"}
    Vendor string
    (Updatable) The provider of the imported model.
    Version string

    (Updatable) The version of the imported model.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    compartmentId String
    (Updatable) The compartment OCID from which the model is imported.
    dataSource ImportedModelDataSource
    Defines the source location and method used to import the model. Supports importing from Hugging Face, an Object Storage location, or by referencing an already imported model.
    capabilities List<String>
    Specifies the intended use or supported capabilities of the imported model.
    definedTags Map<String,String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description String
    (Updatable) An optional description of the imported model.
    displayName String
    (Updatable) A user-friendly name for the imported model.
    freeformTags Map<String,String>
    (Updatable) 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"}
    vendor String
    (Updatable) The provider of the imported model.
    version String

    (Updatable) The version of the imported model.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    compartmentId string
    (Updatable) The compartment OCID from which the model is imported.
    dataSource ImportedModelDataSource
    Defines the source location and method used to import the model. Supports importing from Hugging Face, an Object Storage location, or by referencing an already imported model.
    capabilities string[]
    Specifies the intended use or supported capabilities of the imported model.
    definedTags {[key: string]: string}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description string
    (Updatable) An optional description of the imported model.
    displayName string
    (Updatable) A user-friendly name for the imported model.
    freeformTags {[key: string]: string}
    (Updatable) 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"}
    vendor string
    (Updatable) The provider of the imported model.
    version string

    (Updatable) The version of the imported model.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    compartment_id str
    (Updatable) The compartment OCID from which the model is imported.
    data_source ImportedModelDataSourceArgs
    Defines the source location and method used to import the model. Supports importing from Hugging Face, an Object Storage location, or by referencing an already imported model.
    capabilities Sequence[str]
    Specifies the intended use or supported capabilities of the imported model.
    defined_tags Mapping[str, str]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description str
    (Updatable) An optional description of the imported model.
    display_name str
    (Updatable) A user-friendly name for the imported model.
    freeform_tags Mapping[str, str]
    (Updatable) 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"}
    vendor str
    (Updatable) The provider of the imported model.
    version str

    (Updatable) The version of the imported model.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    compartmentId String
    (Updatable) The compartment OCID from which the model is imported.
    dataSource Property Map
    Defines the source location and method used to import the model. Supports importing from Hugging Face, an Object Storage location, or by referencing an already imported model.
    capabilities List<String>
    Specifies the intended use or supported capabilities of the imported model.
    definedTags Map<String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description String
    (Updatable) An optional description of the imported model.
    displayName String
    (Updatable) A user-friendly name for the imported model.
    freeformTags Map<String>
    (Updatable) 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"}
    vendor String
    (Updatable) The provider of the imported model.
    version String

    (Updatable) The version of the imported model.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ImportedModel resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    LifecycleDetails string
    Additional information about the current state of the imported model, providing more detailed and actionable context.
    PreviousState string
    Represents a model imported into the system based on an external data source, such as Hugging Face or Object Storage.
    State string
    The lifecycle state of the imported model.
    SystemTags Dictionary<string, string>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time that the imported model was created in the format of an RFC3339 datetime string.
    TimeUpdated string
    The date and time that the imported model was updated in the format of an RFC3339 datetime string.
    Id string
    The provider-assigned unique ID for this managed resource.
    LifecycleDetails string
    Additional information about the current state of the imported model, providing more detailed and actionable context.
    PreviousState string
    Represents a model imported into the system based on an external data source, such as Hugging Face or Object Storage.
    State string
    The lifecycle state of the imported model.
    SystemTags map[string]string
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time that the imported model was created in the format of an RFC3339 datetime string.
    TimeUpdated string
    The date and time that the imported model was updated in the format of an RFC3339 datetime string.
    id String
    The provider-assigned unique ID for this managed resource.
    lifecycleDetails String
    Additional information about the current state of the imported model, providing more detailed and actionable context.
    previousState String
    Represents a model imported into the system based on an external data source, such as Hugging Face or Object Storage.
    state String
    The lifecycle state of the imported model.
    systemTags Map<String,String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time that the imported model was created in the format of an RFC3339 datetime string.
    timeUpdated String
    The date and time that the imported model was updated in the format of an RFC3339 datetime string.
    id string
    The provider-assigned unique ID for this managed resource.
    lifecycleDetails string
    Additional information about the current state of the imported model, providing more detailed and actionable context.
    previousState string
    Represents a model imported into the system based on an external data source, such as Hugging Face or Object Storage.
    state string
    The lifecycle state of the imported model.
    systemTags {[key: string]: string}
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The date and time that the imported model was created in the format of an RFC3339 datetime string.
    timeUpdated string
    The date and time that the imported model was updated in the format of an RFC3339 datetime string.
    id str
    The provider-assigned unique ID for this managed resource.
    lifecycle_details str
    Additional information about the current state of the imported model, providing more detailed and actionable context.
    previous_state str
    Represents a model imported into the system based on an external data source, such as Hugging Face or Object Storage.
    state str
    The lifecycle state of the imported model.
    system_tags 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
    The date and time that the imported model was created in the format of an RFC3339 datetime string.
    time_updated str
    The date and time that the imported model was updated in the format of an RFC3339 datetime string.
    id String
    The provider-assigned unique ID for this managed resource.
    lifecycleDetails String
    Additional information about the current state of the imported model, providing more detailed and actionable context.
    previousState String
    Represents a model imported into the system based on an external data source, such as Hugging Face or Object Storage.
    state String
    The lifecycle state of the imported model.
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time that the imported model was created in the format of an RFC3339 datetime string.
    timeUpdated String
    The date and time that the imported model was updated in the format of an RFC3339 datetime string.

    Look up Existing ImportedModel Resource

    Get an existing ImportedModel resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ImportedModelState, opts?: CustomResourceOptions): ImportedModel
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            capabilities: Optional[Sequence[str]] = None,
            compartment_id: Optional[str] = None,
            data_source: Optional[ImportedModelDataSourceArgs] = None,
            defined_tags: Optional[Mapping[str, str]] = None,
            description: Optional[str] = None,
            display_name: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, str]] = None,
            lifecycle_details: Optional[str] = None,
            previous_state: Optional[str] = None,
            state: Optional[str] = None,
            system_tags: Optional[Mapping[str, str]] = None,
            time_created: Optional[str] = None,
            time_updated: Optional[str] = None,
            vendor: Optional[str] = None,
            version: Optional[str] = None) -> ImportedModel
    func GetImportedModel(ctx *Context, name string, id IDInput, state *ImportedModelState, opts ...ResourceOption) (*ImportedModel, error)
    public static ImportedModel Get(string name, Input<string> id, ImportedModelState? state, CustomResourceOptions? opts = null)
    public static ImportedModel get(String name, Output<String> id, ImportedModelState state, CustomResourceOptions options)
    resources:  _:    type: oci:GenerativeAi:ImportedModel    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Capabilities List<string>
    Specifies the intended use or supported capabilities of the imported model.
    CompartmentId string
    (Updatable) The compartment OCID from which the model is imported.
    DataSource ImportedModelDataSource
    Defines the source location and method used to import the model. Supports importing from Hugging Face, an Object Storage location, or by referencing an already imported model.
    DefinedTags Dictionary<string, string>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    Description string
    (Updatable) An optional description of the imported model.
    DisplayName string
    (Updatable) A user-friendly name for the imported model.
    FreeformTags Dictionary<string, string>
    (Updatable) 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"}
    LifecycleDetails string
    Additional information about the current state of the imported model, providing more detailed and actionable context.
    PreviousState string
    Represents a model imported into the system based on an external data source, such as Hugging Face or Object Storage.
    State string
    The lifecycle state of the imported model.
    SystemTags Dictionary<string, string>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time that the imported model was created in the format of an RFC3339 datetime string.
    TimeUpdated string
    The date and time that the imported model was updated in the format of an RFC3339 datetime string.
    Vendor string
    (Updatable) The provider of the imported model.
    Version string

    (Updatable) The version of the imported model.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Capabilities []string
    Specifies the intended use or supported capabilities of the imported model.
    CompartmentId string
    (Updatable) The compartment OCID from which the model is imported.
    DataSource ImportedModelDataSourceArgs
    Defines the source location and method used to import the model. Supports importing from Hugging Face, an Object Storage location, or by referencing an already imported model.
    DefinedTags map[string]string
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    Description string
    (Updatable) An optional description of the imported model.
    DisplayName string
    (Updatable) A user-friendly name for the imported model.
    FreeformTags map[string]string
    (Updatable) 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"}
    LifecycleDetails string
    Additional information about the current state of the imported model, providing more detailed and actionable context.
    PreviousState string
    Represents a model imported into the system based on an external data source, such as Hugging Face or Object Storage.
    State string
    The lifecycle state of the imported model.
    SystemTags map[string]string
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time that the imported model was created in the format of an RFC3339 datetime string.
    TimeUpdated string
    The date and time that the imported model was updated in the format of an RFC3339 datetime string.
    Vendor string
    (Updatable) The provider of the imported model.
    Version string

    (Updatable) The version of the imported model.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    capabilities List<String>
    Specifies the intended use or supported capabilities of the imported model.
    compartmentId String
    (Updatable) The compartment OCID from which the model is imported.
    dataSource ImportedModelDataSource
    Defines the source location and method used to import the model. Supports importing from Hugging Face, an Object Storage location, or by referencing an already imported model.
    definedTags Map<String,String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description String
    (Updatable) An optional description of the imported model.
    displayName String
    (Updatable) A user-friendly name for the imported model.
    freeformTags Map<String,String>
    (Updatable) 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"}
    lifecycleDetails String
    Additional information about the current state of the imported model, providing more detailed and actionable context.
    previousState String
    Represents a model imported into the system based on an external data source, such as Hugging Face or Object Storage.
    state String
    The lifecycle state of the imported model.
    systemTags Map<String,String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time that the imported model was created in the format of an RFC3339 datetime string.
    timeUpdated String
    The date and time that the imported model was updated in the format of an RFC3339 datetime string.
    vendor String
    (Updatable) The provider of the imported model.
    version String

    (Updatable) The version of the imported model.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    capabilities string[]
    Specifies the intended use or supported capabilities of the imported model.
    compartmentId string
    (Updatable) The compartment OCID from which the model is imported.
    dataSource ImportedModelDataSource
    Defines the source location and method used to import the model. Supports importing from Hugging Face, an Object Storage location, or by referencing an already imported model.
    definedTags {[key: string]: string}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description string
    (Updatable) An optional description of the imported model.
    displayName string
    (Updatable) A user-friendly name for the imported model.
    freeformTags {[key: string]: string}
    (Updatable) 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"}
    lifecycleDetails string
    Additional information about the current state of the imported model, providing more detailed and actionable context.
    previousState string
    Represents a model imported into the system based on an external data source, such as Hugging Face or Object Storage.
    state string
    The lifecycle state of the imported model.
    systemTags {[key: string]: string}
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The date and time that the imported model was created in the format of an RFC3339 datetime string.
    timeUpdated string
    The date and time that the imported model was updated in the format of an RFC3339 datetime string.
    vendor string
    (Updatable) The provider of the imported model.
    version string

    (Updatable) The version of the imported model.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    capabilities Sequence[str]
    Specifies the intended use or supported capabilities of the imported model.
    compartment_id str
    (Updatable) The compartment OCID from which the model is imported.
    data_source ImportedModelDataSourceArgs
    Defines the source location and method used to import the model. Supports importing from Hugging Face, an Object Storage location, or by referencing an already imported model.
    defined_tags Mapping[str, str]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description str
    (Updatable) An optional description of the imported model.
    display_name str
    (Updatable) A user-friendly name for the imported model.
    freeform_tags Mapping[str, str]
    (Updatable) 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"}
    lifecycle_details str
    Additional information about the current state of the imported model, providing more detailed and actionable context.
    previous_state str
    Represents a model imported into the system based on an external data source, such as Hugging Face or Object Storage.
    state str
    The lifecycle state of the imported model.
    system_tags 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
    The date and time that the imported model was created in the format of an RFC3339 datetime string.
    time_updated str
    The date and time that the imported model was updated in the format of an RFC3339 datetime string.
    vendor str
    (Updatable) The provider of the imported model.
    version str

    (Updatable) The version of the imported model.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    capabilities List<String>
    Specifies the intended use or supported capabilities of the imported model.
    compartmentId String
    (Updatable) The compartment OCID from which the model is imported.
    dataSource Property Map
    Defines the source location and method used to import the model. Supports importing from Hugging Face, an Object Storage location, or by referencing an already imported model.
    definedTags Map<String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description String
    (Updatable) An optional description of the imported model.
    displayName String
    (Updatable) A user-friendly name for the imported model.
    freeformTags Map<String>
    (Updatable) 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"}
    lifecycleDetails String
    Additional information about the current state of the imported model, providing more detailed and actionable context.
    previousState String
    Represents a model imported into the system based on an external data source, such as Hugging Face or Object Storage.
    state String
    The lifecycle state of the imported model.
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time that the imported model was created in the format of an RFC3339 datetime string.
    timeUpdated String
    The date and time that the imported model was updated in the format of an RFC3339 datetime string.
    vendor String
    (Updatable) The provider of the imported model.
    version String

    (Updatable) The version of the imported model.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Supporting Types

    ImportedModelDataSource, ImportedModelDataSourceArgs

    AccessToken string
    Hugging Face access token to authenticate requests for restricted models. This token will be securely stored in Oracle Cloud Infrastructure Vault.
    Branch string
    The name of the branch in the Hugging Face repository to import the model from. If not specified, "main" will be used by default. If you provide both a branch and a commit hash, the model will be imported from the specified commit.
    Bucket string
    The name of the Object Storage bucket.
    Commit string
    The commit hash in the Hugging Face repository to import the model from. If both a branch and a commit are provided, the commit hash will be used.
    ModelId string
    The full model OCID from Hugging Face, typically in the format "org/model-name" (e.g., "meta-llama/Llama-2-7b").
    Namespace string
    The namespace of the Object Storage where the files are stored.
    PrefixName string
    The prefix path (or folder) within the bucket where files are located.
    Region string
    The full canonical Oracle Cloud region identifier (e.g., "us-ashburn-1") where the object storage bucket containing the files resides.
    SourceType string
    Specifies the source type for model import.
    AccessToken string
    Hugging Face access token to authenticate requests for restricted models. This token will be securely stored in Oracle Cloud Infrastructure Vault.
    Branch string
    The name of the branch in the Hugging Face repository to import the model from. If not specified, "main" will be used by default. If you provide both a branch and a commit hash, the model will be imported from the specified commit.
    Bucket string
    The name of the Object Storage bucket.
    Commit string
    The commit hash in the Hugging Face repository to import the model from. If both a branch and a commit are provided, the commit hash will be used.
    ModelId string
    The full model OCID from Hugging Face, typically in the format "org/model-name" (e.g., "meta-llama/Llama-2-7b").
    Namespace string
    The namespace of the Object Storage where the files are stored.
    PrefixName string
    The prefix path (or folder) within the bucket where files are located.
    Region string
    The full canonical Oracle Cloud region identifier (e.g., "us-ashburn-1") where the object storage bucket containing the files resides.
    SourceType string
    Specifies the source type for model import.
    accessToken String
    Hugging Face access token to authenticate requests for restricted models. This token will be securely stored in Oracle Cloud Infrastructure Vault.
    branch String
    The name of the branch in the Hugging Face repository to import the model from. If not specified, "main" will be used by default. If you provide both a branch and a commit hash, the model will be imported from the specified commit.
    bucket String
    The name of the Object Storage bucket.
    commit String
    The commit hash in the Hugging Face repository to import the model from. If both a branch and a commit are provided, the commit hash will be used.
    modelId String
    The full model OCID from Hugging Face, typically in the format "org/model-name" (e.g., "meta-llama/Llama-2-7b").
    namespace String
    The namespace of the Object Storage where the files are stored.
    prefixName String
    The prefix path (or folder) within the bucket where files are located.
    region String
    The full canonical Oracle Cloud region identifier (e.g., "us-ashburn-1") where the object storage bucket containing the files resides.
    sourceType String
    Specifies the source type for model import.
    accessToken string
    Hugging Face access token to authenticate requests for restricted models. This token will be securely stored in Oracle Cloud Infrastructure Vault.
    branch string
    The name of the branch in the Hugging Face repository to import the model from. If not specified, "main" will be used by default. If you provide both a branch and a commit hash, the model will be imported from the specified commit.
    bucket string
    The name of the Object Storage bucket.
    commit string
    The commit hash in the Hugging Face repository to import the model from. If both a branch and a commit are provided, the commit hash will be used.
    modelId string
    The full model OCID from Hugging Face, typically in the format "org/model-name" (e.g., "meta-llama/Llama-2-7b").
    namespace string
    The namespace of the Object Storage where the files are stored.
    prefixName string
    The prefix path (or folder) within the bucket where files are located.
    region string
    The full canonical Oracle Cloud region identifier (e.g., "us-ashburn-1") where the object storage bucket containing the files resides.
    sourceType string
    Specifies the source type for model import.
    access_token str
    Hugging Face access token to authenticate requests for restricted models. This token will be securely stored in Oracle Cloud Infrastructure Vault.
    branch str
    The name of the branch in the Hugging Face repository to import the model from. If not specified, "main" will be used by default. If you provide both a branch and a commit hash, the model will be imported from the specified commit.
    bucket str
    The name of the Object Storage bucket.
    commit str
    The commit hash in the Hugging Face repository to import the model from. If both a branch and a commit are provided, the commit hash will be used.
    model_id str
    The full model OCID from Hugging Face, typically in the format "org/model-name" (e.g., "meta-llama/Llama-2-7b").
    namespace str
    The namespace of the Object Storage where the files are stored.
    prefix_name str
    The prefix path (or folder) within the bucket where files are located.
    region str
    The full canonical Oracle Cloud region identifier (e.g., "us-ashburn-1") where the object storage bucket containing the files resides.
    source_type str
    Specifies the source type for model import.
    accessToken String
    Hugging Face access token to authenticate requests for restricted models. This token will be securely stored in Oracle Cloud Infrastructure Vault.
    branch String
    The name of the branch in the Hugging Face repository to import the model from. If not specified, "main" will be used by default. If you provide both a branch and a commit hash, the model will be imported from the specified commit.
    bucket String
    The name of the Object Storage bucket.
    commit String
    The commit hash in the Hugging Face repository to import the model from. If both a branch and a commit are provided, the commit hash will be used.
    modelId String
    The full model OCID from Hugging Face, typically in the format "org/model-name" (e.g., "meta-llama/Llama-2-7b").
    namespace String
    The namespace of the Object Storage where the files are stored.
    prefixName String
    The prefix path (or folder) within the bucket where files are located.
    region String
    The full canonical Oracle Cloud region identifier (e.g., "us-ashburn-1") where the object storage bucket containing the files resides.
    sourceType String
    Specifies the source type for model import.

    Import

    ImportedModels can be imported using the id, e.g.

    $ pulumi import oci:GenerativeAi/importedModel:ImportedModel test_imported_model "id"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v3.15.0 published on Thursday, Jan 22, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate