Viewing docs for Oracle Cloud Infrastructure v4.22.0
published on Wednesday, Aug 26, 2026 by Pulumi
published on Wednesday, Aug 26, 2026 by Pulumi
Viewing docs for Oracle Cloud Infrastructure v4.22.0
published on Wednesday, Aug 26, 2026 by Pulumi
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 dictionarydata "oci_golden_gate_get_ai_models" "name" {
# arguments
}The following arguments are supported:
- 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<Get
Ai Models Filter> - 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.
- 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
[]Get
Ai Models Filter - 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.
- 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.
- 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<Get
Ai Models Filter> - 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.
- 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
Get
Ai Models Filter[] - 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.
- 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[Get
Ai Models Filter] - 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.
- 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<Property Map>
- 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.
getAiModels Result
The following output properties are available:
- Ai
Model List<GetCollections Ai Models Ai Model Collection> - 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<Get
Ai Models Filter> - Region string
- Tenancy
Id string
- Ai
Model []GetCollections Ai Models Ai Model Collection - 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
[]Get
Ai Models Filter - Region string
- Tenancy
Id string
- ai_
model_ list(object)collections - 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
- ai
Model List<GetCollections Ai Models Ai Model Collection> - 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<Get
Ai Models Filter> - region String
- tenancy
Id String
- ai
Model GetCollections Ai Models Ai Model Collection[] - 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
Get
Ai Models Filter[] - region string
- tenancy
Id string
- ai_
model_ Sequence[Getcollections Ai Models Ai Model Collection] - 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[Get
Ai Models Filter] - region str
- tenancy_
id str
- ai
Model List<Property Map>Collections - 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<Property Map>
- region String
- tenancy
Id String
Supporting Types
GetAiModelsAiModelCollection
- Items
List<Get
Ai Models Ai Model Collection Item> - An array of AI models.
- Items
[]Get
Ai Models Ai Model Collection Item - An array of AI models.
- items list(object)
- An array of AI models.
- items
List<Get
Ai Models Ai Model Collection Item> - An array of AI models.
- items
Get
Ai Models Ai Model Collection Item[] - An array of AI models.
- items
Sequence[Get
Ai Models Ai Model Collection Item] - An array of AI models.
- items List<Property Map>
- An array of AI models.
GetAiModelsAiModelCollectionItem
- 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.
- 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.
- 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.
- 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.
- 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 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.
- 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.
GetAiModelsFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
Viewing docs for Oracle Cloud Infrastructure v4.22.0
published on Wednesday, Aug 26, 2026 by Pulumi
published on Wednesday, Aug 26, 2026 by Pulumi