published on Friday, Sep 18, 2026 by kong
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:
- Catalog
Ai stringModel Id - 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 CatalogAi Model Version Spec Spec Provider - Optional provenance. Omit (or
null) for a user-uploaded specification.
- Catalog
Ai stringModel Id - 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 CatalogAi Model Version Spec Spec Provider Args - Optional provenance. Omit (or
null) for a user-uploaded specification.
- catalog_
ai_ stringmodel_ id - 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.
- catalog
Ai StringModel Id - 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 CatalogAi Model Version Spec Spec Provider - Optional provenance. Omit (or
null) for a user-uploaded specification.
- catalog
Ai stringModel Id - 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 CatalogAi Model Version Spec Spec Provider - Optional provenance. Omit (or
null) for a user-uploaded specification.
- catalog_
ai_ strmodel_ id - 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 CatalogAi Model Version Spec Spec Provider Args - Optional provenance. Omit (or
null) for a user-uploaded specification.
- catalog
Ai StringModel Id - 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 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:
- 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.
- 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.
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) -> CatalogAiModelVersionSpecfunc 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.
- Catalog
Ai stringModel Id - 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 CatalogAi Model Version Spec Spec Provider - Optional provenance. Omit (or
null) for a user-uploaded specification. - Updated
At string - An ISO-8601 timestamp representation of entity update date.
- Catalog
Ai stringModel Id - 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 CatalogAi Model Version Spec Spec Provider Args - Optional provenance. Omit (or
null) for a user-uploaded specification. - Updated
At string - An ISO-8601 timestamp representation of entity update date.
- catalog_
ai_ stringmodel_ id - 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.
- catalog
Ai StringModel Id - 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 CatalogAi Model Version Spec Spec Provider - Optional provenance. Omit (or
null) for a user-uploaded specification. - updated
At String - An ISO-8601 timestamp representation of entity update date.
- catalog
Ai stringModel Id - 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 CatalogAi Model Version Spec Spec Provider - Optional provenance. Omit (or
null) for a user-uploaded specification. - updated
At string - An ISO-8601 timestamp representation of entity update date.
- catalog_
ai_ strmodel_ id - 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 CatalogAi Model Version Spec Spec Provider Args - Optional provenance. Omit (or
null) for a user-uploaded specification. - updated_
at str - An ISO-8601 timestamp representation of entity update date.
- catalog
Ai StringModel Id - 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 Property Map - Optional provenance. Omit (or
null) for a user-uploaded specification. - updated
At 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
konnectTerraform Provider.
published on Friday, Sep 18, 2026 by kong