1. Registry
  2. Packages
  3. Oracle Cloud Infrastructure
  4. API Docs
  5. GoldenGate
  6. getAiModels
Viewing docs for Oracle Cloud Infrastructure v4.22.0
published on Wednesday, Aug 26, 2026 by Pulumi
oci logo oci logo
Viewing docs for Oracle Cloud Infrastructure v4.22.0
published on Wednesday, Aug 26, 2026 by Pulumi

    This data source provides the list of Ai Models in Oracle Cloud Infrastructure Golden Gate service.

    Returns the list of AI models for the specified provider. If the provider requires additional context to resolve its supported models, that context must be supplied in the request.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testAiModels = oci.goldengate.getAiModels({
        compartmentId: compartmentId,
        providerType: aiModelProviderType,
        region: aiModelRegion,
        tenancyId: testTenancy.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_ai_models = oci.goldengate.get_ai_models(compartment_id=compartment_id,
        provider_type=ai_model_provider_type,
        region=ai_model_region,
        tenancy_id=test_tenancy["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v4/go/oci/goldengate"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := goldengate.GetAiModels(ctx, &goldengate.GetAiModelsArgs{
    			CompartmentId: compartmentId,
    			ProviderType:  aiModelProviderType,
    			Region:        pulumi.StringRef(aiModelRegion),
    			TenancyId:     pulumi.StringRef(testTenancy.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 testAiModels = Oci.GoldenGate.GetAiModels.Invoke(new()
        {
            CompartmentId = compartmentId,
            ProviderType = aiModelProviderType,
            Region = aiModelRegion,
            TenancyId = testTenancy.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.GoldenGate.GoldenGateFunctions;
    import com.pulumi.oci.GoldenGate.inputs.GetAiModelsArgs;
    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 testAiModels = GoldenGateFunctions.getAiModels(GetAiModelsArgs.builder()
                .compartmentId(compartmentId)
                .providerType(aiModelProviderType)
                .region(aiModelRegion)
                .tenancyId(testTenancy.id())
                .build());
    
        }
    }
    
    variables:
      testAiModels:
        fn::invoke:
          function: oci:GoldenGate:getAiModels
          arguments:
            compartmentId: ${compartmentId}
            providerType: ${aiModelProviderType}
            region: ${aiModelRegion}
            tenancyId: ${testTenancy.id}
    
    pulumi {
      required_providers {
        oci = {
          source = "pulumi/oci"
        }
      }
    }
    
    data "oci_goldengate_getaimodels" "testAiModels" {
      compartment_id = compartmentId
      provider_type  = aiModelProviderType
      region         = aiModelRegion
      tenancy_id     = testTenancy.id
    }
    

    Using getAiModels

    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 getAiModels(args: GetAiModelsArgs, opts?: InvokeOptions): Promise<GetAiModelsResult>
    function getAiModelsOutput(args: GetAiModelsOutputArgs, opts?: InvokeOutputOptions): Output<GetAiModelsResult>
    def get_ai_models(compartment_id: Optional[str] = None,
                      filters: Optional[Sequence[GetAiModelsFilter]] = None,
                      provider_type: Optional[str] = None,
                      region: Optional[str] = None,
                      tenancy_id: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetAiModelsResult
    def get_ai_models_output(compartment_id: pulumi.Input[Optional[str]] = None,
                      filters: pulumi.Input[Optional[Sequence[pulumi.Input[GetAiModelsFilterArgs]]]] = None,
                      provider_type: pulumi.Input[Optional[str]] = None,
                      region: pulumi.Input[Optional[str]] = None,
                      tenancy_id: pulumi.Input[Optional[str]] = None,
                      opts: Optional[InvokeOutputOptions] = None) -> Output[GetAiModelsResult]
    func GetAiModels(ctx *Context, args *GetAiModelsArgs, opts ...InvokeOption) (*GetAiModelsResult, error)
    func GetAiModelsOutput(ctx *Context, args *GetAiModelsOutputArgs, opts ...InvokeOption) GetAiModelsResultOutput

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

    public static class GetAiModels 
    {
        public static Task<GetAiModelsResult> InvokeAsync(GetAiModelsArgs args, InvokeOptions? opts = null)
        public static Output<GetAiModelsResult> Invoke(GetAiModelsInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetAiModelsResult> Invoke(GetAiModelsInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetAiModelsResult> getAiModels(GetAiModelsArgs args, InvokeOptions options)
    public static Output<GetAiModelsResult> getAiModels(GetAiModelsArgs args, InvokeOptions options)
    public static Output<GetAiModelsResult> getAiModels(GetAiModelsArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: oci:GoldenGate/getAiModels:getAiModels
      arguments:
        # arguments dictionary
    data "oci_golden_gate_get_ai_models" "name" {
        # arguments
    }

    The following arguments are supported:

    CompartmentId string
    The OCID of the compartment that contains the work request. Work requests should be scoped to the same compartment as the resource the work request affects. If the work request concerns multiple resources, and those resources are not in the same compartment, it is up to the service team to pick the primary resource whose compartment should be used.
    ProviderType string
    The AI provider type for which model information is requested.
    Filters List<GetAiModelsFilter>
    Region string
    Oracle Cloud Infrastructure region identifier, for example us-ashburn-1.
    TenancyId string
    Oracle Cloud Infrastructure tenancy OCID to use when resolving provider models, for example for Oracle Cloud Infrastructure Generative AI model discovery across a specific tenancy.
    CompartmentId string
    The OCID of the compartment that contains the work request. Work requests should be scoped to the same compartment as the resource the work request affects. If the work request concerns multiple resources, and those resources are not in the same compartment, it is up to the service team to pick the primary resource whose compartment should be used.
    ProviderType string
    The AI provider type for which model information is requested.
    Filters []GetAiModelsFilter
    Region string
    Oracle Cloud Infrastructure region identifier, for example us-ashburn-1.
    TenancyId string
    Oracle Cloud Infrastructure tenancy OCID to use when resolving provider models, for example for Oracle Cloud Infrastructure Generative AI model discovery across a specific tenancy.
    compartment_id string
    The OCID of the compartment that contains the work request. Work requests should be scoped to the same compartment as the resource the work request affects. If the work request concerns multiple resources, and those resources are not in the same compartment, it is up to the service team to pick the primary resource whose compartment should be used.
    provider_type string
    The AI provider type for which model information is requested.
    filters list(object)
    region string
    Oracle Cloud Infrastructure region identifier, for example us-ashburn-1.
    tenancy_id string
    Oracle Cloud Infrastructure tenancy OCID to use when resolving provider models, for example for Oracle Cloud Infrastructure Generative AI model discovery across a specific tenancy.
    compartmentId String
    The OCID of the compartment that contains the work request. Work requests should be scoped to the same compartment as the resource the work request affects. If the work request concerns multiple resources, and those resources are not in the same compartment, it is up to the service team to pick the primary resource whose compartment should be used.
    providerType String
    The AI provider type for which model information is requested.
    filters List<GetAiModelsFilter>
    region String
    Oracle Cloud Infrastructure region identifier, for example us-ashburn-1.
    tenancyId String
    Oracle Cloud Infrastructure tenancy OCID to use when resolving provider models, for example for Oracle Cloud Infrastructure Generative AI model discovery across a specific tenancy.
    compartmentId string
    The OCID of the compartment that contains the work request. Work requests should be scoped to the same compartment as the resource the work request affects. If the work request concerns multiple resources, and those resources are not in the same compartment, it is up to the service team to pick the primary resource whose compartment should be used.
    providerType string
    The AI provider type for which model information is requested.
    filters GetAiModelsFilter[]
    region string
    Oracle Cloud Infrastructure region identifier, for example us-ashburn-1.
    tenancyId string
    Oracle Cloud Infrastructure tenancy OCID to use when resolving provider models, for example for Oracle Cloud Infrastructure Generative AI model discovery across a specific tenancy.
    compartment_id str
    The OCID of the compartment that contains the work request. Work requests should be scoped to the same compartment as the resource the work request affects. If the work request concerns multiple resources, and those resources are not in the same compartment, it is up to the service team to pick the primary resource whose compartment should be used.
    provider_type str
    The AI provider type for which model information is requested.
    filters Sequence[GetAiModelsFilter]
    region str
    Oracle Cloud Infrastructure region identifier, for example us-ashburn-1.
    tenancy_id str
    Oracle Cloud Infrastructure tenancy OCID to use when resolving provider models, for example for Oracle Cloud Infrastructure Generative AI model discovery across a specific tenancy.
    compartmentId String
    The OCID of the compartment that contains the work request. Work requests should be scoped to the same compartment as the resource the work request affects. If the work request concerns multiple resources, and those resources are not in the same compartment, it is up to the service team to pick the primary resource whose compartment should be used.
    providerType String
    The AI provider type for which model information is requested.
    filters List<Property Map>
    region String
    Oracle Cloud Infrastructure region identifier, for example us-ashburn-1.
    tenancyId String
    Oracle Cloud Infrastructure tenancy OCID to use when resolving provider models, for example for Oracle Cloud Infrastructure Generative AI model discovery across a specific tenancy.

    getAiModels Result

    The following output properties are available:

    AiModelCollections List<GetAiModelsAiModelCollection>
    The list of ai_model_collection.
    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    ProviderType string
    AI Provider type used by the AI Model Connection.
    Filters List<GetAiModelsFilter>
    Region string
    TenancyId string
    AiModelCollections []GetAiModelsAiModelCollection
    The list of ai_model_collection.
    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    ProviderType string
    AI Provider type used by the AI Model Connection.
    Filters []GetAiModelsFilter
    Region string
    TenancyId string
    ai_model_collections list(object)
    The list of ai_model_collection.
    compartment_id string
    id string
    The provider-assigned unique ID for this managed resource.
    provider_type string
    AI Provider type used by the AI Model Connection.
    filters list(object)
    region string
    tenancy_id string
    aiModelCollections List<GetAiModelsAiModelCollection>
    The list of ai_model_collection.
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    providerType String
    AI Provider type used by the AI Model Connection.
    filters List<GetAiModelsFilter>
    region String
    tenancyId String
    aiModelCollections GetAiModelsAiModelCollection[]
    The list of ai_model_collection.
    compartmentId string
    id string
    The provider-assigned unique ID for this managed resource.
    providerType string
    AI Provider type used by the AI Model Connection.
    filters GetAiModelsFilter[]
    region string
    tenancyId string
    ai_model_collections Sequence[GetAiModelsAiModelCollection]
    The list of ai_model_collection.
    compartment_id str
    id str
    The provider-assigned unique ID for this managed resource.
    provider_type str
    AI Provider type used by the AI Model Connection.
    filters Sequence[GetAiModelsFilter]
    region str
    tenancy_id str
    aiModelCollections List<Property Map>
    The list of ai_model_collection.
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    providerType String
    AI Provider type used by the AI Model Connection.
    filters List<Property Map>
    region String
    tenancyId String

    Supporting Types

    GetAiModelsAiModelCollection

    items list(object)
    An array of AI models.
    items List<Property Map>
    An array of AI models.

    GetAiModelsAiModelCollectionItem

    Description string
    Metadata about this specific object.
    DisplayName string
    An object's Display Name.
    Key string
    The identifier of the AI model offered by a provider.
    ProviderType string
    The AI provider type for which model information is requested.
    Description string
    Metadata about this specific object.
    DisplayName string
    An object's Display Name.
    Key string
    The identifier of the AI model offered by a provider.
    ProviderType string
    The AI provider type for which model information is requested.
    description string
    Metadata about this specific object.
    display_name string
    An object's Display Name.
    key string
    The identifier of the AI model offered by a provider.
    provider_type string
    The AI provider type for which model information is requested.
    description String
    Metadata about this specific object.
    displayName String
    An object's Display Name.
    key String
    The identifier of the AI model offered by a provider.
    providerType String
    The AI provider type for which model information is requested.
    description string
    Metadata about this specific object.
    displayName string
    An object's Display Name.
    key string
    The identifier of the AI model offered by a provider.
    providerType string
    The AI provider type for which model information is requested.
    description str
    Metadata about this specific object.
    display_name str
    An object's Display Name.
    key str
    The identifier of the AI model offered by a provider.
    provider_type str
    The AI provider type for which model information is requested.
    description String
    Metadata about this specific object.
    displayName String
    An object's Display Name.
    key String
    The identifier of the AI model offered by a provider.
    providerType String
    The AI provider type for which model information is requested.

    GetAiModelsFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name string
    values list(string)
    regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    Package Details

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

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial