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

    AIGatewayConsumerCredential Resource

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as konnect from "@pulumi/konnect";
    
    const myAigatewayconsumercredential = new konnect.AiGatewayConsumerCredential("my_aigatewayconsumercredential", {
        apiKey: "sk-387788hd3xnej",
        consumerId: "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
        displayName: "Greg's Dev Key",
        gatewayId: "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
        labels: {
            key: "value",
        },
        managedBy: {
            key: "value",
        },
        name: "gregs-dev-key",
        ttl: 86400,
        type: "api-key",
    });
    
    import pulumi
    import pulumi_konnect as konnect
    
    my_aigatewayconsumercredential = konnect.AiGatewayConsumerCredential("my_aigatewayconsumercredential",
        api_key="sk-387788hd3xnej",
        consumer_id="5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
        display_name="Greg's Dev Key",
        gateway_id="5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
        labels={
            "key": "value",
        },
        managed_by={
            "key": "value",
        },
        name="gregs-dev-key",
        ttl=86400,
        type="api-key")
    
    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.NewAiGatewayConsumerCredential(ctx, "my_aigatewayconsumercredential", &konnect.AiGatewayConsumerCredentialArgs{
    			ApiKey:      pulumi.String("sk-387788hd3xnej"),
    			ConsumerId:  pulumi.String("5f9fd312-a987-4628-b4c5-bb4f4fddd5f7"),
    			DisplayName: pulumi.String("Greg's Dev Key"),
    			GatewayId:   pulumi.String("5f9fd312-a987-4628-b4c5-bb4f4fddd5f7"),
    			Labels: pulumi.StringMap{
    				"key": pulumi.String("value"),
    			},
    			ManagedBy: pulumi.StringMap{
    				"key": pulumi.String("value"),
    			},
    			Name: pulumi.String("gregs-dev-key"),
    			Ttl:  pulumi.Float64(86400),
    			Type: pulumi.String("api-key"),
    		})
    		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 myAigatewayconsumercredential = new Konnect.AiGatewayConsumerCredential("my_aigatewayconsumercredential", new()
        {
            ApiKey = "sk-387788hd3xnej",
            ConsumerId = "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
            DisplayName = "Greg's Dev Key",
            GatewayId = "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
            Labels = 
            {
                { "key", "value" },
            },
            ManagedBy = 
            {
                { "key", "value" },
            },
            Name = "gregs-dev-key",
            Ttl = 86400,
            Type = "api-key",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.konnect.AiGatewayConsumerCredential;
    import com.pulumi.konnect.AiGatewayConsumerCredentialArgs;
    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 myAigatewayconsumercredential = new AiGatewayConsumerCredential("myAigatewayconsumercredential", AiGatewayConsumerCredentialArgs.builder()
                .apiKey("sk-387788hd3xnej")
                .consumerId("5f9fd312-a987-4628-b4c5-bb4f4fddd5f7")
                .displayName("Greg's Dev Key")
                .gatewayId("5f9fd312-a987-4628-b4c5-bb4f4fddd5f7")
                .labels(Map.of("key", "value"))
                .managedBy(Map.of("key", "value"))
                .name("gregs-dev-key")
                .ttl(86400.0)
                .type("api-key")
                .build());
    
        }
    }
    
    resources:
      myAigatewayconsumercredential:
        type: konnect:AiGatewayConsumerCredential
        name: my_aigatewayconsumercredential
        properties:
          apiKey: sk-387788hd3xnej
          consumerId: 5f9fd312-a987-4628-b4c5-bb4f4fddd5f7
          displayName: Greg's Dev Key
          gatewayId: 5f9fd312-a987-4628-b4c5-bb4f4fddd5f7
          labels:
            key: value
          managedBy:
            key: value
          name: gregs-dev-key
          ttl: 86400
          type: api-key
    
    Example coming soon!
    

    Create AiGatewayConsumerCredential Resource

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

    Constructor syntax

    new AiGatewayConsumerCredential(name: string, args: AiGatewayConsumerCredentialArgs, opts?: CustomResourceOptions);
    @overload
    def AiGatewayConsumerCredential(resource_name: str,
                                    args: AiGatewayConsumerCredentialArgs,
                                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def AiGatewayConsumerCredential(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    consumer_id: Optional[str] = None,
                                    display_name: Optional[str] = None,
                                    gateway_id: Optional[str] = None,
                                    type: Optional[str] = None,
                                    api_key: Optional[str] = None,
                                    labels: Optional[Mapping[str, str]] = None,
                                    managed_by: Optional[Mapping[str, str]] = None,
                                    name: Optional[str] = None,
                                    ttl: Optional[float] = None)
    func NewAiGatewayConsumerCredential(ctx *Context, name string, args AiGatewayConsumerCredentialArgs, opts ...ResourceOption) (*AiGatewayConsumerCredential, error)
    public AiGatewayConsumerCredential(string name, AiGatewayConsumerCredentialArgs args, CustomResourceOptions? opts = null)
    public AiGatewayConsumerCredential(String name, AiGatewayConsumerCredentialArgs args)
    public AiGatewayConsumerCredential(String name, AiGatewayConsumerCredentialArgs args, CustomResourceOptions options)
    
    type: konnect:AiGatewayConsumerCredential
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "konnect_ai_gateway_consumer_credential" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args AiGatewayConsumerCredentialArgs
    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 AiGatewayConsumerCredentialArgs
    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 AiGatewayConsumerCredentialArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AiGatewayConsumerCredentialArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AiGatewayConsumerCredentialArgs
    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 aiGatewayConsumerCredentialResource = new Konnect.AiGatewayConsumerCredential("aiGatewayConsumerCredentialResource", new()
    {
        ConsumerId = "string",
        DisplayName = "string",
        GatewayId = "string",
        Type = "string",
        ApiKey = "string",
        Labels = 
        {
            { "string", "string" },
        },
        ManagedBy = 
        {
            { "string", "string" },
        },
        Name = "string",
        Ttl = 0.0,
    });
    
    example, err := konnect.NewAiGatewayConsumerCredential(ctx, "aiGatewayConsumerCredentialResource", &konnect.AiGatewayConsumerCredentialArgs{
    	ConsumerId:  pulumi.String("string"),
    	DisplayName: pulumi.String("string"),
    	GatewayId:   pulumi.String("string"),
    	Type:        pulumi.String("string"),
    	ApiKey:      pulumi.String("string"),
    	Labels: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	ManagedBy: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Name: pulumi.String("string"),
    	Ttl:  pulumi.Float64(0),
    })
    
    resource "konnect_ai_gateway_consumer_credential" "aiGatewayConsumerCredentialResource" {
      lifecycle {
        create_before_destroy = true
      }
      consumer_id  = "string"
      display_name = "string"
      gateway_id   = "string"
      type         = "string"
      api_key      = "string"
      labels = {
        "string" = "string"
      }
      managed_by = {
        "string" = "string"
      }
      name = "string"
      ttl  = 0
    }
    
    var aiGatewayConsumerCredentialResource = new AiGatewayConsumerCredential("aiGatewayConsumerCredentialResource", AiGatewayConsumerCredentialArgs.builder()
        .consumerId("string")
        .displayName("string")
        .gatewayId("string")
        .type("string")
        .apiKey("string")
        .labels(Map.of("string", "string"))
        .managedBy(Map.of("string", "string"))
        .name("string")
        .ttl(0.0)
        .build());
    
    ai_gateway_consumer_credential_resource = konnect.AiGatewayConsumerCredential("aiGatewayConsumerCredentialResource",
        consumer_id="string",
        display_name="string",
        gateway_id="string",
        type="string",
        api_key="string",
        labels={
            "string": "string",
        },
        managed_by={
            "string": "string",
        },
        name="string",
        ttl=float(0))
    
    const aiGatewayConsumerCredentialResource = new konnect.AiGatewayConsumerCredential("aiGatewayConsumerCredentialResource", {
        consumerId: "string",
        displayName: "string",
        gatewayId: "string",
        type: "string",
        apiKey: "string",
        labels: {
            string: "string",
        },
        managedBy: {
            string: "string",
        },
        name: "string",
        ttl: 0,
    });
    
    type: konnect:AiGatewayConsumerCredential
    properties:
        apiKey: string
        consumerId: string
        displayName: string
        gatewayId: string
        labels:
            string: string
        managedBy:
            string: string
        name: string
        ttl: 0
        type: string
    

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

    ConsumerId string
    The unique ID of the AI Gateway consumer. Requires replacement if changed.
    DisplayName string
    The display name for this credential instance. Requires replacement if changed.
    GatewayId string
    The unique ID of the AI Gateway. Requires replacement if changed.
    Type string
    must be "api-key"; Requires replacement if changed.
    ApiKey string
    The API Key value. If not provided, then the key will be auto generated by the server and returned in the response. Requires replacement if changed.
    Labels Dictionary<string, string>
    Public labels store information about an entity that can be used for filtering a list of objects.
    ManagedBy Dictionary<string, string>
    Name string
    A user-defined unique identifier for this credential, used as a stable human-readable reference. This value is immutable after creation. Requires replacement if changed.
    Ttl double
    The API Key's time-to-live in seconds. A value of 0 means the API Key never expires. Default: 0; Requires replacement if changed.
    ConsumerId string
    The unique ID of the AI Gateway consumer. Requires replacement if changed.
    DisplayName string
    The display name for this credential instance. Requires replacement if changed.
    GatewayId string
    The unique ID of the AI Gateway. Requires replacement if changed.
    Type string
    must be "api-key"; Requires replacement if changed.
    ApiKey string
    The API Key value. If not provided, then the key will be auto generated by the server and returned in the response. Requires replacement if changed.
    Labels map[string]string
    Public labels store information about an entity that can be used for filtering a list of objects.
    ManagedBy map[string]string
    Name string
    A user-defined unique identifier for this credential, used as a stable human-readable reference. This value is immutable after creation. Requires replacement if changed.
    Ttl float64
    The API Key's time-to-live in seconds. A value of 0 means the API Key never expires. Default: 0; Requires replacement if changed.
    consumer_id string
    The unique ID of the AI Gateway consumer. Requires replacement if changed.
    display_name string
    The display name for this credential instance. Requires replacement if changed.
    gateway_id string
    The unique ID of the AI Gateway. Requires replacement if changed.
    type string
    must be "api-key"; Requires replacement if changed.
    api_key string
    The API Key value. If not provided, then the key will be auto generated by the server and returned in the response. Requires replacement if changed.
    labels map(string)
    Public labels store information about an entity that can be used for filtering a list of objects.
    managed_by map(string)
    name string
    A user-defined unique identifier for this credential, used as a stable human-readable reference. This value is immutable after creation. Requires replacement if changed.
    ttl number
    The API Key's time-to-live in seconds. A value of 0 means the API Key never expires. Default: 0; Requires replacement if changed.
    consumerId String
    The unique ID of the AI Gateway consumer. Requires replacement if changed.
    displayName String
    The display name for this credential instance. Requires replacement if changed.
    gatewayId String
    The unique ID of the AI Gateway. Requires replacement if changed.
    type String
    must be "api-key"; Requires replacement if changed.
    apiKey String
    The API Key value. If not provided, then the key will be auto generated by the server and returned in the response. Requires replacement if changed.
    labels Map<String,String>
    Public labels store information about an entity that can be used for filtering a list of objects.
    managedBy Map<String,String>
    name String
    A user-defined unique identifier for this credential, used as a stable human-readable reference. This value is immutable after creation. Requires replacement if changed.
    ttl Double
    The API Key's time-to-live in seconds. A value of 0 means the API Key never expires. Default: 0; Requires replacement if changed.
    consumerId string
    The unique ID of the AI Gateway consumer. Requires replacement if changed.
    displayName string
    The display name for this credential instance. Requires replacement if changed.
    gatewayId string
    The unique ID of the AI Gateway. Requires replacement if changed.
    type string
    must be "api-key"; Requires replacement if changed.
    apiKey string
    The API Key value. If not provided, then the key will be auto generated by the server and returned in the response. Requires replacement if changed.
    labels {[key: string]: string}
    Public labels store information about an entity that can be used for filtering a list of objects.
    managedBy {[key: string]: string}
    name string
    A user-defined unique identifier for this credential, used as a stable human-readable reference. This value is immutable after creation. Requires replacement if changed.
    ttl number
    The API Key's time-to-live in seconds. A value of 0 means the API Key never expires. Default: 0; Requires replacement if changed.
    consumer_id str
    The unique ID of the AI Gateway consumer. Requires replacement if changed.
    display_name str
    The display name for this credential instance. Requires replacement if changed.
    gateway_id str
    The unique ID of the AI Gateway. Requires replacement if changed.
    type str
    must be "api-key"; Requires replacement if changed.
    api_key str
    The API Key value. If not provided, then the key will be auto generated by the server and returned in the response. Requires replacement if changed.
    labels Mapping[str, str]
    Public labels store information about an entity that can be used for filtering a list of objects.
    managed_by Mapping[str, str]
    name str
    A user-defined unique identifier for this credential, used as a stable human-readable reference. This value is immutable after creation. Requires replacement if changed.
    ttl float
    The API Key's time-to-live in seconds. A value of 0 means the API Key never expires. Default: 0; Requires replacement if changed.
    consumerId String
    The unique ID of the AI Gateway consumer. Requires replacement if changed.
    displayName String
    The display name for this credential instance. Requires replacement if changed.
    gatewayId String
    The unique ID of the AI Gateway. Requires replacement if changed.
    type String
    must be "api-key"; Requires replacement if changed.
    apiKey String
    The API Key value. If not provided, then the key will be auto generated by the server and returned in the response. Requires replacement if changed.
    labels Map<String>
    Public labels store information about an entity that can be used for filtering a list of objects.
    managedBy Map<String>
    name String
    A user-defined unique identifier for this credential, used as a stable human-readable reference. This value is immutable after creation. Requires replacement if changed.
    ttl Number
    The API Key's time-to-live in seconds. A value of 0 means the API Key never expires. Default: 0; Requires replacement if changed.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AiGatewayConsumerCredential 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 AiGatewayConsumerCredential Resource

    Get an existing AiGatewayConsumerCredential 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?: AiGatewayConsumerCredentialState, opts?: CustomResourceOptions): AiGatewayConsumerCredential
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            api_key: Optional[str] = None,
            consumer_id: Optional[str] = None,
            created_at: Optional[str] = None,
            display_name: Optional[str] = None,
            gateway_id: Optional[str] = None,
            labels: Optional[Mapping[str, str]] = None,
            managed_by: Optional[Mapping[str, str]] = None,
            name: Optional[str] = None,
            ttl: Optional[float] = None,
            type: Optional[str] = None,
            updated_at: Optional[str] = None) -> AiGatewayConsumerCredential
    func GetAiGatewayConsumerCredential(ctx *Context, name string, id IDInput, state *AiGatewayConsumerCredentialState, opts ...ResourceOption) (*AiGatewayConsumerCredential, error)
    public static AiGatewayConsumerCredential Get(string name, Input<string> id, AiGatewayConsumerCredentialState? state, CustomResourceOptions? opts = null)
    public static AiGatewayConsumerCredential get(String name, Output<String> id, AiGatewayConsumerCredentialState state, CustomResourceOptions options)
    resources:  _:    type: konnect:AiGatewayConsumerCredential    get:      id: ${id}
    import {
      to = konnect_ai_gateway_consumer_credential.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:
    ApiKey string
    The API Key value. If not provided, then the key will be auto generated by the server and returned in the response. Requires replacement if changed.
    ConsumerId string
    The unique ID of the AI Gateway consumer. Requires replacement if changed.
    CreatedAt string
    An ISO-8601 timestamp representation of entity creation date.
    DisplayName string
    The display name for this credential instance. Requires replacement if changed.
    GatewayId string
    The unique ID of the AI Gateway. Requires replacement if changed.
    Labels Dictionary<string, string>
    Public labels store information about an entity that can be used for filtering a list of objects.
    ManagedBy Dictionary<string, string>
    Name string
    A user-defined unique identifier for this credential, used as a stable human-readable reference. This value is immutable after creation. Requires replacement if changed.
    Ttl double
    The API Key's time-to-live in seconds. A value of 0 means the API Key never expires. Default: 0; Requires replacement if changed.
    Type string
    must be "api-key"; Requires replacement if changed.
    UpdatedAt string
    An ISO-8601 timestamp representation of entity update date.
    ApiKey string
    The API Key value. If not provided, then the key will be auto generated by the server and returned in the response. Requires replacement if changed.
    ConsumerId string
    The unique ID of the AI Gateway consumer. Requires replacement if changed.
    CreatedAt string
    An ISO-8601 timestamp representation of entity creation date.
    DisplayName string
    The display name for this credential instance. Requires replacement if changed.
    GatewayId string
    The unique ID of the AI Gateway. Requires replacement if changed.
    Labels map[string]string
    Public labels store information about an entity that can be used for filtering a list of objects.
    ManagedBy map[string]string
    Name string
    A user-defined unique identifier for this credential, used as a stable human-readable reference. This value is immutable after creation. Requires replacement if changed.
    Ttl float64
    The API Key's time-to-live in seconds. A value of 0 means the API Key never expires. Default: 0; Requires replacement if changed.
    Type string
    must be "api-key"; Requires replacement if changed.
    UpdatedAt string
    An ISO-8601 timestamp representation of entity update date.
    api_key string
    The API Key value. If not provided, then the key will be auto generated by the server and returned in the response. Requires replacement if changed.
    consumer_id string
    The unique ID of the AI Gateway consumer. Requires replacement if changed.
    created_at string
    An ISO-8601 timestamp representation of entity creation date.
    display_name string
    The display name for this credential instance. Requires replacement if changed.
    gateway_id string
    The unique ID of the AI Gateway. Requires replacement if changed.
    labels map(string)
    Public labels store information about an entity that can be used for filtering a list of objects.
    managed_by map(string)
    name string
    A user-defined unique identifier for this credential, used as a stable human-readable reference. This value is immutable after creation. Requires replacement if changed.
    ttl number
    The API Key's time-to-live in seconds. A value of 0 means the API Key never expires. Default: 0; Requires replacement if changed.
    type string
    must be "api-key"; Requires replacement if changed.
    updated_at string
    An ISO-8601 timestamp representation of entity update date.
    apiKey String
    The API Key value. If not provided, then the key will be auto generated by the server and returned in the response. Requires replacement if changed.
    consumerId String
    The unique ID of the AI Gateway consumer. Requires replacement if changed.
    createdAt String
    An ISO-8601 timestamp representation of entity creation date.
    displayName String
    The display name for this credential instance. Requires replacement if changed.
    gatewayId String
    The unique ID of the AI Gateway. Requires replacement if changed.
    labels Map<String,String>
    Public labels store information about an entity that can be used for filtering a list of objects.
    managedBy Map<String,String>
    name String
    A user-defined unique identifier for this credential, used as a stable human-readable reference. This value is immutable after creation. Requires replacement if changed.
    ttl Double
    The API Key's time-to-live in seconds. A value of 0 means the API Key never expires. Default: 0; Requires replacement if changed.
    type String
    must be "api-key"; Requires replacement if changed.
    updatedAt String
    An ISO-8601 timestamp representation of entity update date.
    apiKey string
    The API Key value. If not provided, then the key will be auto generated by the server and returned in the response. Requires replacement if changed.
    consumerId string
    The unique ID of the AI Gateway consumer. Requires replacement if changed.
    createdAt string
    An ISO-8601 timestamp representation of entity creation date.
    displayName string
    The display name for this credential instance. Requires replacement if changed.
    gatewayId string
    The unique ID of the AI Gateway. Requires replacement if changed.
    labels {[key: string]: string}
    Public labels store information about an entity that can be used for filtering a list of objects.
    managedBy {[key: string]: string}
    name string
    A user-defined unique identifier for this credential, used as a stable human-readable reference. This value is immutable after creation. Requires replacement if changed.
    ttl number
    The API Key's time-to-live in seconds. A value of 0 means the API Key never expires. Default: 0; Requires replacement if changed.
    type string
    must be "api-key"; Requires replacement if changed.
    updatedAt string
    An ISO-8601 timestamp representation of entity update date.
    api_key str
    The API Key value. If not provided, then the key will be auto generated by the server and returned in the response. Requires replacement if changed.
    consumer_id str
    The unique ID of the AI Gateway consumer. Requires replacement if changed.
    created_at str
    An ISO-8601 timestamp representation of entity creation date.
    display_name str
    The display name for this credential instance. Requires replacement if changed.
    gateway_id str
    The unique ID of the AI Gateway. Requires replacement if changed.
    labels Mapping[str, str]
    Public labels store information about an entity that can be used for filtering a list of objects.
    managed_by Mapping[str, str]
    name str
    A user-defined unique identifier for this credential, used as a stable human-readable reference. This value is immutable after creation. Requires replacement if changed.
    ttl float
    The API Key's time-to-live in seconds. A value of 0 means the API Key never expires. Default: 0; Requires replacement if changed.
    type str
    must be "api-key"; Requires replacement if changed.
    updated_at str
    An ISO-8601 timestamp representation of entity update date.
    apiKey String
    The API Key value. If not provided, then the key will be auto generated by the server and returned in the response. Requires replacement if changed.
    consumerId String
    The unique ID of the AI Gateway consumer. Requires replacement if changed.
    createdAt String
    An ISO-8601 timestamp representation of entity creation date.
    displayName String
    The display name for this credential instance. Requires replacement if changed.
    gatewayId String
    The unique ID of the AI Gateway. Requires replacement if changed.
    labels Map<String>
    Public labels store information about an entity that can be used for filtering a list of objects.
    managedBy Map<String>
    name String
    A user-defined unique identifier for this credential, used as a stable human-readable reference. This value is immutable after creation. Requires replacement if changed.
    ttl Number
    The API Key's time-to-live in seconds. A value of 0 means the API Key never expires. Default: 0; Requires replacement if changed.
    type String
    must be "api-key"; Requires replacement if changed.
    updatedAt String
    An ISO-8601 timestamp representation of entity update date.

    Import

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

    terraform

    import {

    to = konnect_ai_gateway_consumer_credential.my_konnect_ai_gateway_consumer_credential

    id = jsonencode({

    consumer_id = "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7"
    
    gateway_id  = "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7"
    
    id          = "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7"
    

    })

    }

    The pulumi import command can be used, for example:

    $ pulumi import konnect:index/aiGatewayConsumerCredential:AiGatewayConsumerCredential my_konnect_ai_gateway_consumer_credential '{"consumer_id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7", "gateway_id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7", "id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7"}'
    

    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