1. Registry
  2. Packages
  3. Konnect Provider
  4. API Docs
  5. CatalogAiModelVersion
Viewing docs for konnect 3.23.0
published on Friday, Sep 18, 2026 by kong
Viewing docs for konnect 3.23.0
published on Friday, Sep 18, 2026 by kong

    CatalogAiModelVersion Resource

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as konnect from "@pulumi/konnect";
    
    const myCatalogaimodelversion = new konnect.CatalogAiModelVersion("my_catalogaimodelversion", {
        catalogAiModelId: "123e4567-e89b-12d3-a456-426614174000",
        targetModels: [{
            name: "gpt-4o",
            provider: "openai",
        }],
        version: "1.0.0",
    });
    
    import pulumi
    import pulumi_konnect as konnect
    
    my_catalogaimodelversion = konnect.CatalogAiModelVersion("my_catalogaimodelversion",
        catalog_ai_model_id="123e4567-e89b-12d3-a456-426614174000",
        target_models=[{
            "name": "gpt-4o",
            "provider": "openai",
        }],
        version="1.0.0")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/konnect/v3/konnect"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := konnect.NewCatalogAiModelVersion(ctx, "my_catalogaimodelversion", &konnect.CatalogAiModelVersionArgs{
    			CatalogAiModelId: pulumi.String("123e4567-e89b-12d3-a456-426614174000"),
    			TargetModels: konnect.CatalogAiModelVersionTargetModelArray{
    				&konnect.CatalogAiModelVersionTargetModelArgs{
    					Name:     pulumi.String("gpt-4o"),
    					Provider: pulumi.String("openai"),
    				},
    			},
    			Version: pulumi.String("1.0.0"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Konnect = Pulumi.Konnect;
    
    return await Deployment.RunAsync(() => 
    {
        var myCatalogaimodelversion = new Konnect.CatalogAiModelVersion("my_catalogaimodelversion", new()
        {
            CatalogAiModelId = "123e4567-e89b-12d3-a456-426614174000",
            TargetModels = new[]
            {
                new Konnect.Inputs.CatalogAiModelVersionTargetModelArgs
                {
                    Name = "gpt-4o",
                    Provider = "openai",
                },
            },
            Version = "1.0.0",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.konnect.CatalogAiModelVersion;
    import com.pulumi.konnect.CatalogAiModelVersionArgs;
    import com.pulumi.konnect.inputs.CatalogAiModelVersionTargetModelArgs;
    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 myCatalogaimodelversion = new CatalogAiModelVersion("myCatalogaimodelversion", CatalogAiModelVersionArgs.builder()
                .catalogAiModelId("123e4567-e89b-12d3-a456-426614174000")
                .targetModels(CatalogAiModelVersionTargetModelArgs.builder()
                    .name("gpt-4o")
                    .provider("openai")
                    .build())
                .version("1.0.0")
                .build());
    
        }
    }
    
    resources:
      myCatalogaimodelversion:
        type: konnect:CatalogAiModelVersion
        name: my_catalogaimodelversion
        properties:
          catalogAiModelId: 123e4567-e89b-12d3-a456-426614174000
          targetModels:
            - name: gpt-4o
              provider: openai
          version: 1.0.0
    
    Example coming soon!
    

    Create CatalogAiModelVersion Resource

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

    Constructor syntax

    new CatalogAiModelVersion(name: string, args: CatalogAiModelVersionArgs, opts?: CustomResourceOptions);
    @overload
    def CatalogAiModelVersion(resource_name: str,
                              args: CatalogAiModelVersionArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def CatalogAiModelVersion(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              catalog_ai_model_id: Optional[str] = None,
                              target_models: Optional[Sequence[CatalogAiModelVersionTargetModelArgs]] = None,
                              version: Optional[str] = None)
    func NewCatalogAiModelVersion(ctx *Context, name string, args CatalogAiModelVersionArgs, opts ...ResourceOption) (*CatalogAiModelVersion, error)
    public CatalogAiModelVersion(string name, CatalogAiModelVersionArgs args, CustomResourceOptions? opts = null)
    public CatalogAiModelVersion(String name, CatalogAiModelVersionArgs args)
    public CatalogAiModelVersion(String name, CatalogAiModelVersionArgs args, CustomResourceOptions options)
    
    type: konnect:CatalogAiModelVersion
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "konnect_catalog_ai_model_version" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args CatalogAiModelVersionArgs
    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 CatalogAiModelVersionArgs
    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 CatalogAiModelVersionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CatalogAiModelVersionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CatalogAiModelVersionArgs
    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 catalogAiModelVersionResource = new Konnect.CatalogAiModelVersion("catalogAiModelVersionResource", new()
    {
        CatalogAiModelId = "string",
        TargetModels = new[]
        {
            new Konnect.Inputs.CatalogAiModelVersionTargetModelArgs
            {
                Name = "string",
                Provider = "string",
            },
        },
        Version = "string",
    });
    
    example, err := konnect.NewCatalogAiModelVersion(ctx, "catalogAiModelVersionResource", &konnect.CatalogAiModelVersionArgs{
    	CatalogAiModelId: pulumi.String("string"),
    	TargetModels: konnect.CatalogAiModelVersionTargetModelArray{
    		&konnect.CatalogAiModelVersionTargetModelArgs{
    			Name:     pulumi.String("string"),
    			Provider: pulumi.String("string"),
    		},
    	},
    	Version: pulumi.String("string"),
    })
    
    resource "konnect_catalog_ai_model_version" "catalogAiModelVersionResource" {
      lifecycle {
        create_before_destroy = true
      }
      catalog_ai_model_id = "string"
      target_models {
        name     = "string"
        provider = "string"
      }
      version = "string"
    }
    
    var catalogAiModelVersionResource = new CatalogAiModelVersion("catalogAiModelVersionResource", CatalogAiModelVersionArgs.builder()
        .catalogAiModelId("string")
        .targetModels(CatalogAiModelVersionTargetModelArgs.builder()
            .name("string")
            .provider("string")
            .build())
        .version("string")
        .build());
    
    catalog_ai_model_version_resource = konnect.CatalogAiModelVersion("catalogAiModelVersionResource",
        catalog_ai_model_id="string",
        target_models=[{
            "name": "string",
            "provider": "string",
        }],
        version="string")
    
    const catalogAiModelVersionResource = new konnect.CatalogAiModelVersion("catalogAiModelVersionResource", {
        catalogAiModelId: "string",
        targetModels: [{
            name: "string",
            provider: "string",
        }],
        version: "string",
    });
    
    type: konnect:CatalogAiModelVersion
    properties:
        catalogAiModelId: string
        targetModels:
            - name: string
              provider: string
        version: string
    

    CatalogAiModelVersion 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 CatalogAiModelVersion resource accepts the following input properties:

    CatalogAiModelId string
    The unique identifier of the AI Model.
    TargetModels List<CatalogAiModelVersionTargetModel>
    The upstream LLM targets (full set).
    Version string
    An optional user-supplied version label.
    CatalogAiModelId string
    The unique identifier of the AI Model.
    TargetModels []CatalogAiModelVersionTargetModelArgs
    The upstream LLM targets (full set).
    Version string
    An optional user-supplied version label.
    catalog_ai_model_id string
    The unique identifier of the AI Model.
    target_models list(object)
    The upstream LLM targets (full set).
    version string
    An optional user-supplied version label.
    catalogAiModelId String
    The unique identifier of the AI Model.
    targetModels List<CatalogAiModelVersionTargetModel>
    The upstream LLM targets (full set).
    version String
    An optional user-supplied version label.
    catalogAiModelId string
    The unique identifier of the AI Model.
    targetModels CatalogAiModelVersionTargetModel[]
    The upstream LLM targets (full set).
    version string
    An optional user-supplied version label.
    catalog_ai_model_id str
    The unique identifier of the AI Model.
    target_models Sequence[CatalogAiModelVersionTargetModelArgs]
    The upstream LLM targets (full set).
    version str
    An optional user-supplied version label.
    catalogAiModelId String
    The unique identifier of the AI Model.
    targetModels List<Property Map>
    The upstream LLM targets (full set).
    version String
    An optional user-supplied version label.

    Outputs

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

    AiModelId string
    The identifier of the parent AI Model.
    CreatedAt string
    An ISO-8601 timestamp representation of entity creation date.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    An ISO-8601 timestamp representation of entity update date.
    AiModelId string
    The identifier of the parent AI Model.
    CreatedAt string
    An ISO-8601 timestamp representation of entity creation date.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    An ISO-8601 timestamp representation of entity update date.
    ai_model_id string
    The identifier of the parent AI Model.
    created_at string
    An ISO-8601 timestamp representation of entity creation date.
    id string
    The provider-assigned unique ID for this managed resource.
    updated_at string
    An ISO-8601 timestamp representation of entity update date.
    aiModelId String
    The identifier of the parent AI Model.
    createdAt String
    An ISO-8601 timestamp representation of entity creation date.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    An ISO-8601 timestamp representation of entity update date.
    aiModelId string
    The identifier of the parent AI Model.
    createdAt string
    An ISO-8601 timestamp representation of entity creation date.
    id string
    The provider-assigned unique ID for this managed resource.
    updatedAt string
    An ISO-8601 timestamp representation of entity update date.
    ai_model_id str
    The identifier of the parent AI Model.
    created_at str
    An ISO-8601 timestamp representation of entity creation date.
    id str
    The provider-assigned unique ID for this managed resource.
    updated_at str
    An ISO-8601 timestamp representation of entity update date.
    aiModelId String
    The identifier of the parent AI Model.
    createdAt String
    An ISO-8601 timestamp representation of entity creation date.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    An ISO-8601 timestamp representation of entity update date.

    Look up Existing CatalogAiModelVersion Resource

    Get an existing CatalogAiModelVersion 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?: CatalogAiModelVersionState, opts?: CustomResourceOptions): CatalogAiModelVersion
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            ai_model_id: Optional[str] = None,
            catalog_ai_model_id: Optional[str] = None,
            created_at: Optional[str] = None,
            target_models: Optional[Sequence[CatalogAiModelVersionTargetModelArgs]] = None,
            updated_at: Optional[str] = None,
            version: Optional[str] = None) -> CatalogAiModelVersion
    func GetCatalogAiModelVersion(ctx *Context, name string, id IDInput, state *CatalogAiModelVersionState, opts ...ResourceOption) (*CatalogAiModelVersion, error)
    public static CatalogAiModelVersion Get(string name, Input<string> id, CatalogAiModelVersionState? state, CustomResourceOptions? opts = null)
    public static CatalogAiModelVersion get(String name, Output<String> id, CatalogAiModelVersionState state, CustomResourceOptions options)
    resources:  _:    type: konnect:CatalogAiModelVersion    get:      id: ${id}
    import {
      to = konnect_catalog_ai_model_version.example
      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:
    AiModelId string
    The identifier of the parent AI Model.
    CatalogAiModelId string
    The unique identifier of the AI Model.
    CreatedAt string
    An ISO-8601 timestamp representation of entity creation date.
    TargetModels List<CatalogAiModelVersionTargetModel>
    The upstream LLM targets (full set).
    UpdatedAt string
    An ISO-8601 timestamp representation of entity update date.
    Version string
    An optional user-supplied version label.
    AiModelId string
    The identifier of the parent AI Model.
    CatalogAiModelId string
    The unique identifier of the AI Model.
    CreatedAt string
    An ISO-8601 timestamp representation of entity creation date.
    TargetModels []CatalogAiModelVersionTargetModelArgs
    The upstream LLM targets (full set).
    UpdatedAt string
    An ISO-8601 timestamp representation of entity update date.
    Version string
    An optional user-supplied version label.
    ai_model_id string
    The identifier of the parent AI Model.
    catalog_ai_model_id string
    The unique identifier of the AI Model.
    created_at string
    An ISO-8601 timestamp representation of entity creation date.
    target_models list(object)
    The upstream LLM targets (full set).
    updated_at string
    An ISO-8601 timestamp representation of entity update date.
    version string
    An optional user-supplied version label.
    aiModelId String
    The identifier of the parent AI Model.
    catalogAiModelId String
    The unique identifier of the AI Model.
    createdAt String
    An ISO-8601 timestamp representation of entity creation date.
    targetModels List<CatalogAiModelVersionTargetModel>
    The upstream LLM targets (full set).
    updatedAt String
    An ISO-8601 timestamp representation of entity update date.
    version String
    An optional user-supplied version label.
    aiModelId string
    The identifier of the parent AI Model.
    catalogAiModelId string
    The unique identifier of the AI Model.
    createdAt string
    An ISO-8601 timestamp representation of entity creation date.
    targetModels CatalogAiModelVersionTargetModel[]
    The upstream LLM targets (full set).
    updatedAt string
    An ISO-8601 timestamp representation of entity update date.
    version string
    An optional user-supplied version label.
    ai_model_id str
    The identifier of the parent AI Model.
    catalog_ai_model_id str
    The unique identifier of the AI Model.
    created_at str
    An ISO-8601 timestamp representation of entity creation date.
    target_models Sequence[CatalogAiModelVersionTargetModelArgs]
    The upstream LLM targets (full set).
    updated_at str
    An ISO-8601 timestamp representation of entity update date.
    version str
    An optional user-supplied version label.
    aiModelId String
    The identifier of the parent AI Model.
    catalogAiModelId String
    The unique identifier of the AI Model.
    createdAt String
    An ISO-8601 timestamp representation of entity creation date.
    targetModels List<Property Map>
    The upstream LLM targets (full set).
    updatedAt String
    An ISO-8601 timestamp representation of entity update date.
    version String
    An optional user-supplied version label.

    Supporting Types

    CatalogAiModelVersionTargetModel, CatalogAiModelVersionTargetModelArgs

    Name string
    The upstream model name for the given provider. Not Null
    Provider string
    The upstream model provider. Not Null
    Name string
    The upstream model name for the given provider. Not Null
    Provider string
    The upstream model provider. Not Null
    name string
    The upstream model name for the given provider. Not Null
    provider string
    The upstream model provider. Not Null
    name String
    The upstream model name for the given provider. Not Null
    provider String
    The upstream model provider. Not Null
    name string
    The upstream model name for the given provider. Not Null
    provider string
    The upstream model provider. Not Null
    name str
    The upstream model name for the given provider. Not Null
    provider str
    The upstream model provider. Not Null
    name String
    The upstream model name for the given provider. Not Null
    provider String
    The upstream model provider. Not Null

    Import

    In Terraform v1.5.0 and later, the import block can be used with the id attribute, for example:

    terraform

    import {

    to = konnect_catalog_ai_model_version.my_konnect_catalog_ai_model_version

    id = “123e4567-e89b-12d3-a456-426614174000”

    }

    The pulumi import command can be used, for example:

    $ pulumi import konnect:index/catalogAiModelVersion:CatalogAiModelVersion my_konnect_catalog_ai_model_version "123e4567-e89b-12d3-a456-426614174000"
    

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

    Package Details

    Repository
    konnect kong/terraform-provider-konnect
    License
    Notes
    This Pulumi package is based on the konnect Terraform Provider.
    Viewing docs for konnect 3.23.0
    published on Friday, Sep 18, 2026 by kong

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial