published on Friday, Sep 18, 2026 by kong
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:
- 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 Dictionary<string, string>
- Public labels store information about an entity that can be used for filtering a list of objects.
- Managed
By 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.
- 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]string
- Public labels store information about an entity that can be used for filtering a list of objects.
- Managed
By 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.
- 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,String>
- Public labels store information about an entity that can be used for filtering a list of objects.
- managed
By 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.
- 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 {[key: string]: string}
- Public labels store information about an entity that can be used for filtering a list of objects.
- managed
By {[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.
- 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the AiGatewayConsumerCredential 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 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) -> AiGatewayConsumerCredentialfunc 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.
- 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 Dictionary<string, string>
- Public labels store information about an entity that can be used for filtering a list of objects.
- Managed
By 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.
- Updated
At 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]string
- Public labels store information about an entity that can be used for filtering a list of objects.
- Managed
By 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.
- Updated
At 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.
- 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,String>
- Public labels store information about an entity that can be used for filtering a list of objects.
- managed
By 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.
- updated
At 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 {[key: string]: string}
- Public labels store information about an entity that can be used for filtering a list of objects.
- managed
By {[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.
- updated
At 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.
- 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.
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
konnectTerraform Provider.
published on Friday, Sep 18, 2026 by kong