1. Registry
  2. Packages
  3. Konnect Provider
  4. API Docs
  5. CatalogAiModelVersionSpec
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

    CatalogAiModelVersionSpec Resource

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as konnect from "@pulumi/konnect";
    
    const myCatalogaimodelversionspec = new konnect.CatalogAiModelVersionSpec("my_catalogaimodelversionspec", {
        catalogAiModelId: "123e4567-e89b-12d3-a456-426614174000",
        specContent: "{\"openapi\":\"3.1.0\",\"info\":{\"title\":\"My AI Model\",\"version\":\"1.0.0\"},\"paths\":{}}",
        specProvider: {
            source: "ai_gateway",
        },
    });
    
    import pulumi
    import pulumi_konnect as konnect
    
    my_catalogaimodelversionspec = konnect.CatalogAiModelVersionSpec("my_catalogaimodelversionspec",
        catalog_ai_model_id="123e4567-e89b-12d3-a456-426614174000",
        spec_content="{\"openapi\":\"3.1.0\",\"info\":{\"title\":\"My AI Model\",\"version\":\"1.0.0\"},\"paths\":{}}",
        spec_provider={
            "source": "ai_gateway",
        })
    
    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.NewCatalogAiModelVersionSpec(ctx, "my_catalogaimodelversionspec", &konnect.CatalogAiModelVersionSpecArgs{
    			CatalogAiModelId: pulumi.String("123e4567-e89b-12d3-a456-426614174000"),
    			SpecContent:      pulumi.String("{\"openapi\":\"3.1.0\",\"info\":{\"title\":\"My AI Model\",\"version\":\"1.0.0\"},\"paths\":{}}"),
    			SpecProvider: &konnect.CatalogAiModelVersionSpecSpecProviderArgs{
    				Source: pulumi.String("ai_gateway"),
    			},
    		})
    		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 myCatalogaimodelversionspec = new Konnect.CatalogAiModelVersionSpec("my_catalogaimodelversionspec", new()
        {
            CatalogAiModelId = "123e4567-e89b-12d3-a456-426614174000",
            SpecContent = "{\"openapi\":\"3.1.0\",\"info\":{\"title\":\"My AI Model\",\"version\":\"1.0.0\"},\"paths\":{}}",
            SpecProvider = new Konnect.Inputs.CatalogAiModelVersionSpecSpecProviderArgs
            {
                Source = "ai_gateway",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.konnect.CatalogAiModelVersionSpec;
    import com.pulumi.konnect.CatalogAiModelVersionSpecArgs;
    import com.pulumi.konnect.inputs.CatalogAiModelVersionSpecSpecProviderArgs;
    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 myCatalogaimodelversionspec = new CatalogAiModelVersionSpec("myCatalogaimodelversionspec", CatalogAiModelVersionSpecArgs.builder()
                .catalogAiModelId("123e4567-e89b-12d3-a456-426614174000")
                .specContent("{\"openapi\":\"3.1.0\",\"info\":{\"title\":\"My AI Model\",\"version\":\"1.0.0\"},\"paths\":{}}")
                .specProvider(CatalogAiModelVersionSpecSpecProviderArgs.builder()
                    .source("ai_gateway")
                    .build())
                .build());
    
        }
    }
    
    resources:
      myCatalogaimodelversionspec:
        type: konnect:CatalogAiModelVersionSpec
        name: my_catalogaimodelversionspec
        properties:
          catalogAiModelId: 123e4567-e89b-12d3-a456-426614174000
          specContent: '{"openapi":"3.1.0","info":{"title":"My AI Model","version":"1.0.0"},"paths":{}}'
          specProvider:
            source: ai_gateway
    
    Example coming soon!
    

    Create CatalogAiModelVersionSpec Resource

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

    Constructor syntax

    new CatalogAiModelVersionSpec(name: string, args: CatalogAiModelVersionSpecArgs, opts?: CustomResourceOptions);
    @overload
    def CatalogAiModelVersionSpec(resource_name: str,
                                  args: CatalogAiModelVersionSpecArgs,
                                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def CatalogAiModelVersionSpec(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  catalog_ai_model_id: Optional[str] = None,
                                  spec_content: Optional[str] = None,
                                  spec_provider: Optional[CatalogAiModelVersionSpecSpecProviderArgs] = None)
    func NewCatalogAiModelVersionSpec(ctx *Context, name string, args CatalogAiModelVersionSpecArgs, opts ...ResourceOption) (*CatalogAiModelVersionSpec, error)
    public CatalogAiModelVersionSpec(string name, CatalogAiModelVersionSpecArgs args, CustomResourceOptions? opts = null)
    public CatalogAiModelVersionSpec(String name, CatalogAiModelVersionSpecArgs args)
    public CatalogAiModelVersionSpec(String name, CatalogAiModelVersionSpecArgs args, CustomResourceOptions options)
    
    type: konnect:CatalogAiModelVersionSpec
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "konnect_catalog_ai_model_version_spec" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args CatalogAiModelVersionSpecArgs
    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 CatalogAiModelVersionSpecArgs
    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 CatalogAiModelVersionSpecArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CatalogAiModelVersionSpecArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CatalogAiModelVersionSpecArgs
    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 catalogAiModelVersionSpecResource = new Konnect.CatalogAiModelVersionSpec("catalogAiModelVersionSpecResource", new()
    {
        CatalogAiModelId = "string",
        SpecContent = "string",
        SpecProvider = new Konnect.Inputs.CatalogAiModelVersionSpecSpecProviderArgs
        {
            Source = "string",
        },
    });
    
    example, err := konnect.NewCatalogAiModelVersionSpec(ctx, "catalogAiModelVersionSpecResource", &konnect.CatalogAiModelVersionSpecArgs{
    	CatalogAiModelId: pulumi.String("string"),
    	SpecContent:      pulumi.String("string"),
    	SpecProvider: &konnect.CatalogAiModelVersionSpecSpecProviderArgs{
    		Source: pulumi.String("string"),
    	},
    })
    
    resource "konnect_catalog_ai_model_version_spec" "catalogAiModelVersionSpecResource" {
      lifecycle {
        create_before_destroy = true
      }
      catalog_ai_model_id = "string"
      spec_content        = "string"
      spec_provider = {
        source = "string"
      }
    }
    
    var catalogAiModelVersionSpecResource = new CatalogAiModelVersionSpec("catalogAiModelVersionSpecResource", CatalogAiModelVersionSpecArgs.builder()
        .catalogAiModelId("string")
        .specContent("string")
        .specProvider(CatalogAiModelVersionSpecSpecProviderArgs.builder()
            .source("string")
            .build())
        .build());
    
    catalog_ai_model_version_spec_resource = konnect.CatalogAiModelVersionSpec("catalogAiModelVersionSpecResource",
        catalog_ai_model_id="string",
        spec_content="string",
        spec_provider={
            "source": "string",
        })
    
    const catalogAiModelVersionSpecResource = new konnect.CatalogAiModelVersionSpec("catalogAiModelVersionSpecResource", {
        catalogAiModelId: "string",
        specContent: "string",
        specProvider: {
            source: "string",
        },
    });
    
    type: konnect:CatalogAiModelVersionSpec
    properties:
        catalogAiModelId: string
        specContent: string
        specProvider:
            source: string
    

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

    CatalogAiModelId string
    The unique identifier of the AI Model.
    SpecContent string
    The raw content of the oas specification, in json or yaml format (for example, an OpenAPI document).
    SpecProvider CatalogAiModelVersionSpecSpecProvider
    Optional provenance. Omit (or null) for a user-uploaded specification.
    CatalogAiModelId string
    The unique identifier of the AI Model.
    SpecContent string
    The raw content of the oas specification, in json or yaml format (for example, an OpenAPI document).
    SpecProvider CatalogAiModelVersionSpecSpecProviderArgs
    Optional provenance. Omit (or null) for a user-uploaded specification.
    catalog_ai_model_id string
    The unique identifier of the AI Model.
    spec_content string
    The raw content of the oas specification, in json or yaml format (for example, an OpenAPI document).
    spec_provider object
    Optional provenance. Omit (or null) for a user-uploaded specification.
    catalogAiModelId String
    The unique identifier of the AI Model.
    specContent String
    The raw content of the oas specification, in json or yaml format (for example, an OpenAPI document).
    specProvider CatalogAiModelVersionSpecSpecProvider
    Optional provenance. Omit (or null) for a user-uploaded specification.
    catalogAiModelId string
    The unique identifier of the AI Model.
    specContent string
    The raw content of the oas specification, in json or yaml format (for example, an OpenAPI document).
    specProvider CatalogAiModelVersionSpecSpecProvider
    Optional provenance. Omit (or null) for a user-uploaded specification.
    catalog_ai_model_id str
    The unique identifier of the AI Model.
    spec_content str
    The raw content of the oas specification, in json or yaml format (for example, an OpenAPI document).
    spec_provider CatalogAiModelVersionSpecSpecProviderArgs
    Optional provenance. Omit (or null) for a user-uploaded specification.
    catalogAiModelId String
    The unique identifier of the AI Model.
    specContent String
    The raw content of the oas specification, in json or yaml format (for example, an OpenAPI document).
    specProvider Property Map
    Optional provenance. Omit (or null) for a user-uploaded specification.

    Outputs

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

    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.
    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.
    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.
    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.
    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.
    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.
    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 CatalogAiModelVersionSpec Resource

    Get an existing CatalogAiModelVersionSpec 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?: CatalogAiModelVersionSpecState, opts?: CustomResourceOptions): CatalogAiModelVersionSpec
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            catalog_ai_model_id: Optional[str] = None,
            created_at: Optional[str] = None,
            spec_content: Optional[str] = None,
            spec_provider: Optional[CatalogAiModelVersionSpecSpecProviderArgs] = None,
            updated_at: Optional[str] = None) -> CatalogAiModelVersionSpec
    func GetCatalogAiModelVersionSpec(ctx *Context, name string, id IDInput, state *CatalogAiModelVersionSpecState, opts ...ResourceOption) (*CatalogAiModelVersionSpec, error)
    public static CatalogAiModelVersionSpec Get(string name, Input<string> id, CatalogAiModelVersionSpecState? state, CustomResourceOptions? opts = null)
    public static CatalogAiModelVersionSpec get(String name, Output<String> id, CatalogAiModelVersionSpecState state, CustomResourceOptions options)
    resources:  _:    type: konnect:CatalogAiModelVersionSpec    get:      id: ${id}
    import {
      to = konnect_catalog_ai_model_version_spec.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:
    CatalogAiModelId string
    The unique identifier of the AI Model.
    CreatedAt string
    An ISO-8601 timestamp representation of entity creation date.
    SpecContent string
    The raw content of the oas specification, in json or yaml format (for example, an OpenAPI document).
    SpecProvider CatalogAiModelVersionSpecSpecProvider
    Optional provenance. Omit (or null) for a user-uploaded specification.
    UpdatedAt string
    An ISO-8601 timestamp representation of entity update date.
    CatalogAiModelId string
    The unique identifier of the AI Model.
    CreatedAt string
    An ISO-8601 timestamp representation of entity creation date.
    SpecContent string
    The raw content of the oas specification, in json or yaml format (for example, an OpenAPI document).
    SpecProvider CatalogAiModelVersionSpecSpecProviderArgs
    Optional provenance. Omit (or null) for a user-uploaded specification.
    UpdatedAt string
    An ISO-8601 timestamp representation of entity update date.
    catalog_ai_model_id string
    The unique identifier of the AI Model.
    created_at string
    An ISO-8601 timestamp representation of entity creation date.
    spec_content string
    The raw content of the oas specification, in json or yaml format (for example, an OpenAPI document).
    spec_provider object
    Optional provenance. Omit (or null) for a user-uploaded specification.
    updated_at string
    An ISO-8601 timestamp representation of entity update date.
    catalogAiModelId String
    The unique identifier of the AI Model.
    createdAt String
    An ISO-8601 timestamp representation of entity creation date.
    specContent String
    The raw content of the oas specification, in json or yaml format (for example, an OpenAPI document).
    specProvider CatalogAiModelVersionSpecSpecProvider
    Optional provenance. Omit (or null) for a user-uploaded specification.
    updatedAt String
    An ISO-8601 timestamp representation of entity update date.
    catalogAiModelId string
    The unique identifier of the AI Model.
    createdAt string
    An ISO-8601 timestamp representation of entity creation date.
    specContent string
    The raw content of the oas specification, in json or yaml format (for example, an OpenAPI document).
    specProvider CatalogAiModelVersionSpecSpecProvider
    Optional provenance. Omit (or null) for a user-uploaded specification.
    updatedAt string
    An ISO-8601 timestamp representation of entity update date.
    catalog_ai_model_id str
    The unique identifier of the AI Model.
    created_at str
    An ISO-8601 timestamp representation of entity creation date.
    spec_content str
    The raw content of the oas specification, in json or yaml format (for example, an OpenAPI document).
    spec_provider CatalogAiModelVersionSpecSpecProviderArgs
    Optional provenance. Omit (or null) for a user-uploaded specification.
    updated_at str
    An ISO-8601 timestamp representation of entity update date.
    catalogAiModelId String
    The unique identifier of the AI Model.
    createdAt String
    An ISO-8601 timestamp representation of entity creation date.
    specContent String
    The raw content of the oas specification, in json or yaml format (for example, an OpenAPI document).
    specProvider Property Map
    Optional provenance. Omit (or null) for a user-uploaded specification.
    updatedAt String
    An ISO-8601 timestamp representation of entity update date.

    Supporting Types

    CatalogAiModelVersionSpecSpecProvider, CatalogAiModelVersionSpecSpecProviderArgs

    Source string
    possible known values include one of ["ai_gateway", "provider"]
    Source string
    possible known values include one of ["ai_gateway", "provider"]
    source string
    possible known values include one of ["ai_gateway", "provider"]
    source String
    possible known values include one of ["ai_gateway", "provider"]
    source string
    possible known values include one of ["ai_gateway", "provider"]
    source str
    possible known values include one of ["ai_gateway", "provider"]
    source String
    possible known values include one of ["ai_gateway", "provider"]

    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_spec.my_konnect_catalog_ai_model_version_spec

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

    }

    The pulumi import command can be used, for example:

    $ pulumi import konnect:index/catalogAiModelVersionSpec:CatalogAiModelVersionSpec my_konnect_catalog_ai_model_version_spec "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