Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi
oci.AiDocument.getModelType
Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi
This data source provides details about a specific Model Type resource in Oracle Cloud Infrastructure Ai Document service.
Gets model capabilities
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testModelType = oci.AiDocument.getModelType({
modelType: modelTypeModelType,
compartmentId: compartmentId,
modelSubType: modelTypeModelSubType,
});
import pulumi
import pulumi_oci as oci
test_model_type = oci.AiDocument.get_model_type(model_type=model_type_model_type,
compartment_id=compartment_id,
model_sub_type=model_type_model_sub_type)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/aidocument"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := aidocument.GetModelType(ctx, &aidocument.GetModelTypeArgs{
ModelType: modelTypeModelType,
CompartmentId: pulumi.StringRef(compartmentId),
ModelSubType: pulumi.StringRef(modelTypeModelSubType),
}, 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 testModelType = Oci.AiDocument.GetModelType.Invoke(new()
{
ModelType = modelTypeModelType,
CompartmentId = compartmentId,
ModelSubType = modelTypeModelSubType,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.AiDocument.AiDocumentFunctions;
import com.pulumi.oci.AiDocument.inputs.GetModelTypeArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var testModelType = AiDocumentFunctions.getModelType(GetModelTypeArgs.builder()
.modelType(modelTypeModelType)
.compartmentId(compartmentId)
.modelSubType(modelTypeModelSubType)
.build());
}
}
variables:
testModelType:
fn::invoke:
function: oci:AiDocument:getModelType
arguments:
modelType: ${modelTypeModelType}
compartmentId: ${compartmentId}
modelSubType: ${modelTypeModelSubType}
Using getModelType
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 getModelType(args: GetModelTypeArgs, opts?: InvokeOptions): Promise<GetModelTypeResult>
function getModelTypeOutput(args: GetModelTypeOutputArgs, opts?: InvokeOptions): Output<GetModelTypeResult>def get_model_type(compartment_id: Optional[str] = None,
model_sub_type: Optional[str] = None,
model_type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetModelTypeResult
def get_model_type_output(compartment_id: Optional[pulumi.Input[str]] = None,
model_sub_type: Optional[pulumi.Input[str]] = None,
model_type: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetModelTypeResult]func GetModelType(ctx *Context, args *GetModelTypeArgs, opts ...InvokeOption) (*GetModelTypeResult, error)
func GetModelTypeOutput(ctx *Context, args *GetModelTypeOutputArgs, opts ...InvokeOption) GetModelTypeResultOutput> Note: This function is named GetModelType in the Go SDK.
public static class GetModelType
{
public static Task<GetModelTypeResult> InvokeAsync(GetModelTypeArgs args, InvokeOptions? opts = null)
public static Output<GetModelTypeResult> Invoke(GetModelTypeInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetModelTypeResult> getModelType(GetModelTypeArgs args, InvokeOptions options)
public static Output<GetModelTypeResult> getModelType(GetModelTypeArgs args, InvokeOptions options)
fn::invoke:
function: oci:AiDocument/getModelType:getModelType
arguments:
# arguments dictionaryThe following arguments are supported:
- Model
Type string - The type of the Document model.
- Compartment
Id string - The ID of the compartment in which to list resources.
- Model
Sub stringType - The sub type based upon model selected.
- Model
Type string - The type of the Document model.
- Compartment
Id string - The ID of the compartment in which to list resources.
- Model
Sub stringType - The sub type based upon model selected.
- model
Type String - The type of the Document model.
- compartment
Id String - The ID of the compartment in which to list resources.
- model
Sub StringType - The sub type based upon model selected.
- model
Type string - The type of the Document model.
- compartment
Id string - The ID of the compartment in which to list resources.
- model
Sub stringType - The sub type based upon model selected.
- model_
type str - The type of the Document model.
- compartment_
id str - The ID of the compartment in which to list resources.
- model_
sub_ strtype - The sub type based upon model selected.
- model
Type String - The type of the Document model.
- compartment
Id String - The ID of the compartment in which to list resources.
- model
Sub StringType - The sub type based upon model selected.
getModelType Result
The following output properties are available:
- Capabilities string
- Model information capabilities related to version
- Id string
- The provider-assigned unique ID for this managed resource.
- Model
Type string - Versions List<string>
- Model versions available for this model and submodel type
- Compartment
Id string - Model
Sub stringType
- Capabilities string
- Model information capabilities related to version
- Id string
- The provider-assigned unique ID for this managed resource.
- Model
Type string - Versions []string
- Model versions available for this model and submodel type
- Compartment
Id string - Model
Sub stringType
- capabilities String
- Model information capabilities related to version
- id String
- The provider-assigned unique ID for this managed resource.
- model
Type String - versions List<String>
- Model versions available for this model and submodel type
- compartment
Id String - model
Sub StringType
- capabilities string
- Model information capabilities related to version
- id string
- The provider-assigned unique ID for this managed resource.
- model
Type string - versions string[]
- Model versions available for this model and submodel type
- compartment
Id string - model
Sub stringType
- capabilities str
- Model information capabilities related to version
- id str
- The provider-assigned unique ID for this managed resource.
- model_
type str - versions Sequence[str]
- Model versions available for this model and submodel type
- compartment_
id str - model_
sub_ strtype
- capabilities String
- Model information capabilities related to version
- id String
- The provider-assigned unique ID for this managed resource.
- model
Type String - versions List<String>
- Model versions available for this model and submodel type
- compartment
Id String - model
Sub StringType
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi
