1. Packages
  2. Packages
  3. Oracle Cloud Infrastructure
  4. API Docs
  5. GenerativeAi
  6. getProject
Viewing docs for Oracle Cloud Infrastructure v4.20.0
published on Wednesday, Jul 15, 2026 by Pulumi
oci logo
Viewing docs for Oracle Cloud Infrastructure v4.20.0
published on Wednesday, Jul 15, 2026 by Pulumi

    This data source provides details about a specific Project resource in Oracle Cloud Infrastructure Generative AI service.

    Gets information about a generativeAiProject.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testProject = oci.generativeai.getProject({
        projectId: testProjectOciGenerativeAiProject.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_project = oci.generativeai.get_project(project_id=test_project_oci_generative_ai_project["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.GetProject(ctx, &generativeai.GetProjectArgs{
    			ProjectId: testProjectOciGenerativeAiProject.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 testProject = Oci.GenerativeAi.GetProject.Invoke(new()
        {
            ProjectId = testProjectOciGenerativeAiProject.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.GetProjectArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 testProject = GenerativeAiFunctions.getProject(GetProjectArgs.builder()
                .projectId(testProjectOciGenerativeAiProject.id())
                .build());
    
        }
    }
    
    variables:
      testProject:
        fn::invoke:
          function: oci:GenerativeAi:getProject
          arguments:
            projectId: ${testProjectOciGenerativeAiProject.id}
    
    pulumi {
      required_providers {
        oci = {
          source = "pulumi/oci"
        }
      }
    }
    
    data "oci_generativeai_getproject" "testProject" {
      project_id = testProjectOciGenerativeAiProject.id
    }
    

    Using getProject

    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 getProject(args: GetProjectArgs, opts?: InvokeOptions): Promise<GetProjectResult>
    function getProjectOutput(args: GetProjectOutputArgs, opts?: InvokeOptions): Output<GetProjectResult>
    def get_project(project_id: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetProjectResult
    def get_project_output(project_id: pulumi.Input[Optional[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetProjectResult]
    func LookupProject(ctx *Context, args *LookupProjectArgs, opts ...InvokeOption) (*LookupProjectResult, error)
    func LookupProjectOutput(ctx *Context, args *LookupProjectOutputArgs, opts ...InvokeOption) LookupProjectResultOutput

    > Note: This function is named LookupProject in the Go SDK.

    public static class GetProject 
    {
        public static Task<GetProjectResult> InvokeAsync(GetProjectArgs args, InvokeOptions? opts = null)
        public static Output<GetProjectResult> Invoke(GetProjectInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetProjectResult> getProject(GetProjectArgs args, InvokeOptions options)
    public static Output<GetProjectResult> getProject(GetProjectArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:GenerativeAi/getProject:getProject
      arguments:
        # arguments dictionary
    data "oci_generative_ai_get_project" "name" {
        # arguments
    }

    The following arguments are supported:

    ProjectId string
    The OCID of the generativeAiProject.
    ProjectId string
    The OCID of the generativeAiProject.
    project_id string
    The OCID of the generativeAiProject.
    projectId String
    The OCID of the generativeAiProject.
    projectId string
    The OCID of the generativeAiProject.
    project_id str
    The OCID of the generativeAiProject.
    projectId String
    The OCID of the generativeAiProject.

    getProject Result

    The following output properties are available:

    CompartmentId string
    Owning compartment OCID for a GenerativeAiProject.
    ConversationConfigs List<GetProjectConversationConfig>
    Holds configuration related to conversation retention
    DefinedTags Dictionary<string, string>
    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
    An optional description of the GenerativeAiProject.
    DisplayName string
    A user-friendly name.
    FreeformTags 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
    An OCID that uniquely identifies a GenerativeAiProject.
    LifecycleDetails string
    A message describing the current state in more detail that can provide actionable information.
    LongTermMemoryConfigs List<GetProjectLongTermMemoryConfig>
    Configuration settings for long-term memory behavior.
    ProjectId string
    ShortTermMemoryOptimizationConfigs List<GetProjectShortTermMemoryOptimizationConfig>
    Configuration settings for short-term memory optimization.
    State string
    The lifecycle state of a GenerativeAiProject.
    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 generativeAiProject was created in the format of an RFC3339 datetime string.
    TimeUpdated string
    The date and time that the generativeAiProject was updated in the format of an RFC3339 datetime string.
    CompartmentId string
    Owning compartment OCID for a GenerativeAiProject.
    ConversationConfigs []GetProjectConversationConfig
    Holds configuration related to conversation retention
    DefinedTags map[string]string
    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
    An optional description of the GenerativeAiProject.
    DisplayName string
    A user-friendly name.
    FreeformTags 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
    An OCID that uniquely identifies a GenerativeAiProject.
    LifecycleDetails string
    A message describing the current state in more detail that can provide actionable information.
    LongTermMemoryConfigs []GetProjectLongTermMemoryConfig
    Configuration settings for long-term memory behavior.
    ProjectId string
    ShortTermMemoryOptimizationConfigs []GetProjectShortTermMemoryOptimizationConfig
    Configuration settings for short-term memory optimization.
    State string
    The lifecycle state of a GenerativeAiProject.
    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 generativeAiProject was created in the format of an RFC3339 datetime string.
    TimeUpdated string
    The date and time that the generativeAiProject was updated in the format of an RFC3339 datetime string.
    compartment_id string
    Owning compartment OCID for a GenerativeAiProject.
    conversation_configs list(object)
    Holds configuration related to conversation retention
    defined_tags map(string)
    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
    An optional description of the GenerativeAiProject.
    display_name string
    A user-friendly name.
    freeform_tags 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
    An OCID that uniquely identifies a GenerativeAiProject.
    lifecycle_details string
    A message describing the current state in more detail that can provide actionable information.
    long_term_memory_configs list(object)
    Configuration settings for long-term memory behavior.
    project_id string
    short_term_memory_optimization_configs list(object)
    Configuration settings for short-term memory optimization.
    state string
    The lifecycle state of a GenerativeAiProject.
    system_tags 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
    The date and time that the generativeAiProject was created in the format of an RFC3339 datetime string.
    time_updated string
    The date and time that the generativeAiProject was updated in the format of an RFC3339 datetime string.
    compartmentId String
    Owning compartment OCID for a GenerativeAiProject.
    conversationConfigs List<GetProjectConversationConfig>
    Holds configuration related to conversation retention
    definedTags Map<String,String>
    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
    An optional description of the GenerativeAiProject.
    displayName String
    A user-friendly name.
    freeformTags 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
    An OCID that uniquely identifies a GenerativeAiProject.
    lifecycleDetails String
    A message describing the current state in more detail that can provide actionable information.
    longTermMemoryConfigs List<GetProjectLongTermMemoryConfig>
    Configuration settings for long-term memory behavior.
    projectId String
    shortTermMemoryOptimizationConfigs List<GetProjectShortTermMemoryOptimizationConfig>
    Configuration settings for short-term memory optimization.
    state String
    The lifecycle state of a GenerativeAiProject.
    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 generativeAiProject was created in the format of an RFC3339 datetime string.
    timeUpdated String
    The date and time that the generativeAiProject was updated in the format of an RFC3339 datetime string.
    compartmentId string
    Owning compartment OCID for a GenerativeAiProject.
    conversationConfigs GetProjectConversationConfig[]
    Holds configuration related to conversation retention
    definedTags {[key: string]: string}
    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
    An optional description of the GenerativeAiProject.
    displayName string
    A user-friendly name.
    freeformTags {[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
    An OCID that uniquely identifies a GenerativeAiProject.
    lifecycleDetails string
    A message describing the current state in more detail that can provide actionable information.
    longTermMemoryConfigs GetProjectLongTermMemoryConfig[]
    Configuration settings for long-term memory behavior.
    projectId string
    shortTermMemoryOptimizationConfigs GetProjectShortTermMemoryOptimizationConfig[]
    Configuration settings for short-term memory optimization.
    state string
    The lifecycle state of a GenerativeAiProject.
    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 generativeAiProject was created in the format of an RFC3339 datetime string.
    timeUpdated string
    The date and time that the generativeAiProject was updated in the format of an RFC3339 datetime string.
    compartment_id str
    Owning compartment OCID for a GenerativeAiProject.
    conversation_configs Sequence[GetProjectConversationConfig]
    Holds configuration related to conversation retention
    defined_tags Mapping[str, str]
    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
    An optional description of the GenerativeAiProject.
    display_name str
    A user-friendly name.
    freeform_tags 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
    An OCID that uniquely identifies a GenerativeAiProject.
    lifecycle_details str
    A message describing the current state in more detail that can provide actionable information.
    long_term_memory_configs Sequence[GetProjectLongTermMemoryConfig]
    Configuration settings for long-term memory behavior.
    project_id str
    short_term_memory_optimization_configs Sequence[GetProjectShortTermMemoryOptimizationConfig]
    Configuration settings for short-term memory optimization.
    state str
    The lifecycle state of a GenerativeAiProject.
    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 generativeAiProject was created in the format of an RFC3339 datetime string.
    time_updated str
    The date and time that the generativeAiProject was updated in the format of an RFC3339 datetime string.
    compartmentId String
    Owning compartment OCID for a GenerativeAiProject.
    conversationConfigs List<Property Map>
    Holds configuration related to conversation retention
    definedTags Map<String>
    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
    An optional description of the GenerativeAiProject.
    displayName String
    A user-friendly name.
    freeformTags 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
    An OCID that uniquely identifies a GenerativeAiProject.
    lifecycleDetails String
    A message describing the current state in more detail that can provide actionable information.
    longTermMemoryConfigs List<Property Map>
    Configuration settings for long-term memory behavior.
    projectId String
    shortTermMemoryOptimizationConfigs List<Property Map>
    Configuration settings for short-term memory optimization.
    state String
    The lifecycle state of a GenerativeAiProject.
    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 generativeAiProject was created in the format of an RFC3339 datetime string.
    timeUpdated String
    The date and time that the generativeAiProject was updated in the format of an RFC3339 datetime string.

    Supporting Types

    GetProjectConversationConfig

    ConversationsRetentionInHours int
    Retention period (in hours) for conversations. The TTL starts from the time the conversation was last updated.
    ResponsesRetentionInHours int
    Retention period (in hours) for responses. The TTL starts from the time the response was created.
    ConversationsRetentionInHours int
    Retention period (in hours) for conversations. The TTL starts from the time the conversation was last updated.
    ResponsesRetentionInHours int
    Retention period (in hours) for responses. The TTL starts from the time the response was created.
    conversations_retention_in_hours number
    Retention period (in hours) for conversations. The TTL starts from the time the conversation was last updated.
    responses_retention_in_hours number
    Retention period (in hours) for responses. The TTL starts from the time the response was created.
    conversationsRetentionInHours Integer
    Retention period (in hours) for conversations. The TTL starts from the time the conversation was last updated.
    responsesRetentionInHours Integer
    Retention period (in hours) for responses. The TTL starts from the time the response was created.
    conversationsRetentionInHours number
    Retention period (in hours) for conversations. The TTL starts from the time the conversation was last updated.
    responsesRetentionInHours number
    Retention period (in hours) for responses. The TTL starts from the time the response was created.
    conversations_retention_in_hours int
    Retention period (in hours) for conversations. The TTL starts from the time the conversation was last updated.
    responses_retention_in_hours int
    Retention period (in hours) for responses. The TTL starts from the time the response was created.
    conversationsRetentionInHours Number
    Retention period (in hours) for conversations. The TTL starts from the time the conversation was last updated.
    responsesRetentionInHours Number
    Retention period (in hours) for responses. The TTL starts from the time the response was created.

    GetProjectLongTermMemoryConfig

    standard_long_term_memory_strategies list(object)
    Standard strategy settings for long-term memory.
    standardLongTermMemoryStrategies List<Property Map>
    Standard strategy settings for long-term memory.

    GetProjectLongTermMemoryConfigStandardLongTermMemoryStrategy

    EmbeddingConfigs List<GetProjectLongTermMemoryConfigStandardLongTermMemoryStrategyEmbeddingConfig>
    Configuration for generating embeddings from extracted information.
    ExtractionConfigs List<GetProjectLongTermMemoryConfigStandardLongTermMemoryStrategyExtractionConfig>
    Configuration for information extraction from conversation content.
    IsEnabled bool
    Indicates whether short-term memory optimization is enabled.
    EmbeddingConfigs []GetProjectLongTermMemoryConfigStandardLongTermMemoryStrategyEmbeddingConfig
    Configuration for generating embeddings from extracted information.
    ExtractionConfigs []GetProjectLongTermMemoryConfigStandardLongTermMemoryStrategyExtractionConfig
    Configuration for information extraction from conversation content.
    IsEnabled bool
    Indicates whether short-term memory optimization is enabled.
    embedding_configs list(object)
    Configuration for generating embeddings from extracted information.
    extraction_configs list(object)
    Configuration for information extraction from conversation content.
    is_enabled bool
    Indicates whether short-term memory optimization is enabled.
    embeddingConfigs List<GetProjectLongTermMemoryConfigStandardLongTermMemoryStrategyEmbeddingConfig>
    Configuration for generating embeddings from extracted information.
    extractionConfigs List<GetProjectLongTermMemoryConfigStandardLongTermMemoryStrategyExtractionConfig>
    Configuration for information extraction from conversation content.
    isEnabled Boolean
    Indicates whether short-term memory optimization is enabled.
    embeddingConfigs GetProjectLongTermMemoryConfigStandardLongTermMemoryStrategyEmbeddingConfig[]
    Configuration for generating embeddings from extracted information.
    extractionConfigs GetProjectLongTermMemoryConfigStandardLongTermMemoryStrategyExtractionConfig[]
    Configuration for information extraction from conversation content.
    isEnabled boolean
    Indicates whether short-term memory optimization is enabled.
    embedding_configs Sequence[GetProjectLongTermMemoryConfigStandardLongTermMemoryStrategyEmbeddingConfig]
    Configuration for generating embeddings from extracted information.
    extraction_configs Sequence[GetProjectLongTermMemoryConfigStandardLongTermMemoryStrategyExtractionConfig]
    Configuration for information extraction from conversation content.
    is_enabled bool
    Indicates whether short-term memory optimization is enabled.
    embeddingConfigs List<Property Map>
    Configuration for generating embeddings from extracted information.
    extractionConfigs List<Property Map>
    Configuration for information extraction from conversation content.
    isEnabled Boolean
    Indicates whether short-term memory optimization is enabled.

    GetProjectLongTermMemoryConfigStandardLongTermMemoryStrategyEmbeddingConfig

    llm_selections list(object)
    LLM selection configuration.
    llmSelections List<Property Map>
    LLM selection configuration.

    GetProjectLongTermMemoryConfigStandardLongTermMemoryStrategyEmbeddingConfigLlmSelection

    LlmSelectionType string
    The type of LLM selection.
    ModelId string
    The id of the GenAI model
    LlmSelectionType string
    The type of LLM selection.
    ModelId string
    The id of the GenAI model
    llm_selection_type string
    The type of LLM selection.
    model_id string
    The id of the GenAI model
    llmSelectionType String
    The type of LLM selection.
    modelId String
    The id of the GenAI model
    llmSelectionType string
    The type of LLM selection.
    modelId string
    The id of the GenAI model
    llm_selection_type str
    The type of LLM selection.
    model_id str
    The id of the GenAI model
    llmSelectionType String
    The type of LLM selection.
    modelId String
    The id of the GenAI model

    GetProjectLongTermMemoryConfigStandardLongTermMemoryStrategyExtractionConfig

    llm_selections list(object)
    LLM selection configuration.
    llmSelections List<Property Map>
    LLM selection configuration.

    GetProjectLongTermMemoryConfigStandardLongTermMemoryStrategyExtractionConfigLlmSelection

    LlmSelectionType string
    The type of LLM selection.
    ModelId string
    The id of the GenAI model
    LlmSelectionType string
    The type of LLM selection.
    ModelId string
    The id of the GenAI model
    llm_selection_type string
    The type of LLM selection.
    model_id string
    The id of the GenAI model
    llmSelectionType String
    The type of LLM selection.
    modelId String
    The id of the GenAI model
    llmSelectionType string
    The type of LLM selection.
    modelId string
    The id of the GenAI model
    llm_selection_type str
    The type of LLM selection.
    model_id str
    The id of the GenAI model
    llmSelectionType String
    The type of LLM selection.
    modelId String
    The id of the GenAI model

    GetProjectShortTermMemoryOptimizationConfig

    CondenserConfigs List<GetProjectShortTermMemoryOptimizationConfigCondenserConfig>
    Configuration for condensing conversation content.
    IsEnabled bool
    Indicates whether short-term memory optimization is enabled.
    CondenserConfigs []GetProjectShortTermMemoryOptimizationConfigCondenserConfig
    Configuration for condensing conversation content.
    IsEnabled bool
    Indicates whether short-term memory optimization is enabled.
    condenser_configs list(object)
    Configuration for condensing conversation content.
    is_enabled bool
    Indicates whether short-term memory optimization is enabled.
    condenserConfigs List<GetProjectShortTermMemoryOptimizationConfigCondenserConfig>
    Configuration for condensing conversation content.
    isEnabled Boolean
    Indicates whether short-term memory optimization is enabled.
    condenserConfigs GetProjectShortTermMemoryOptimizationConfigCondenserConfig[]
    Configuration for condensing conversation content.
    isEnabled boolean
    Indicates whether short-term memory optimization is enabled.
    condenser_configs Sequence[GetProjectShortTermMemoryOptimizationConfigCondenserConfig]
    Configuration for condensing conversation content.
    is_enabled bool
    Indicates whether short-term memory optimization is enabled.
    condenserConfigs List<Property Map>
    Configuration for condensing conversation content.
    isEnabled Boolean
    Indicates whether short-term memory optimization is enabled.

    GetProjectShortTermMemoryOptimizationConfigCondenserConfig

    llm_selections list(object)
    LLM selection configuration.
    llmSelections List<Property Map>
    LLM selection configuration.

    GetProjectShortTermMemoryOptimizationConfigCondenserConfigLlmSelection

    LlmSelectionType string
    The type of LLM selection.
    ModelId string
    The id of the GenAI model
    LlmSelectionType string
    The type of LLM selection.
    ModelId string
    The id of the GenAI model
    llm_selection_type string
    The type of LLM selection.
    model_id string
    The id of the GenAI model
    llmSelectionType String
    The type of LLM selection.
    modelId String
    The id of the GenAI model
    llmSelectionType string
    The type of LLM selection.
    modelId string
    The id of the GenAI model
    llm_selection_type str
    The type of LLM selection.
    model_id str
    The id of the GenAI model
    llmSelectionType String
    The type of LLM selection.
    modelId String
    The id of the GenAI model

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Viewing docs for Oracle Cloud Infrastructure v4.20.0
    published on Wednesday, Jul 15, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial