published on Wednesday, Sep 9, 2026 by Pydantic
published on Wednesday, Sep 9, 2026 by Pydantic
Manages a project-scoped AI Gateway API key (project:gateway_proxy scope). Do not confuse this with logfire.GatewayProvider, which configures an upstream LLM provider credential. The provider credential needs organization:create_api_key plus project:gateway_proxy delegation.
Create GatewayApiKey Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new GatewayApiKey(name: string, args: GatewayApiKeyArgs, opts?: CustomResourceOptions);@overload
def GatewayApiKey(resource_name: str,
args: GatewayApiKeyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def GatewayApiKey(resource_name: str,
opts: Optional[ResourceOptions] = None,
project_id: Optional[str] = None,
cache_enabled: Optional[bool] = None,
description: Optional[str] = None,
expires_at: Optional[str] = None,
name: Optional[str] = None,
spending_limit_daily: Optional[int] = None,
spending_limit_monthly: Optional[int] = None,
spending_limit_total: Optional[int] = None,
spending_limit_weekly: Optional[int] = None)func NewGatewayApiKey(ctx *Context, name string, args GatewayApiKeyArgs, opts ...ResourceOption) (*GatewayApiKey, error)public GatewayApiKey(string name, GatewayApiKeyArgs args, CustomResourceOptions? opts = null)
public GatewayApiKey(String name, GatewayApiKeyArgs args)
public GatewayApiKey(String name, GatewayApiKeyArgs args, CustomResourceOptions options)
type: logfire:GatewayApiKey
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "logfire_gateway_api_key" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args GatewayApiKeyArgs
- 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 GatewayApiKeyArgs
- 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 GatewayApiKeyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GatewayApiKeyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GatewayApiKeyArgs
- 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 gatewayApiKeyResource = new Logfire.GatewayApiKey("gatewayApiKeyResource", new()
{
ProjectId = "string",
CacheEnabled = false,
Description = "string",
ExpiresAt = "string",
Name = "string",
SpendingLimitDaily = 0,
SpendingLimitMonthly = 0,
SpendingLimitTotal = 0,
SpendingLimitWeekly = 0,
});
example, err := logfire.NewGatewayApiKey(ctx, "gatewayApiKeyResource", &logfire.GatewayApiKeyArgs{
ProjectId: pulumi.String("string"),
CacheEnabled: pulumi.Bool(false),
Description: pulumi.String("string"),
ExpiresAt: pulumi.String("string"),
Name: pulumi.String("string"),
SpendingLimitDaily: pulumi.Int(0),
SpendingLimitMonthly: pulumi.Int(0),
SpendingLimitTotal: pulumi.Int(0),
SpendingLimitWeekly: pulumi.Int(0),
})
resource "logfire_gateway_api_key" "gatewayApiKeyResource" {
lifecycle {
create_before_destroy = true
}
project_id = "string"
cache_enabled = false
description = "string"
expires_at = "string"
name = "string"
spending_limit_daily = 0
spending_limit_monthly = 0
spending_limit_total = 0
spending_limit_weekly = 0
}
var gatewayApiKeyResource = new GatewayApiKey("gatewayApiKeyResource", GatewayApiKeyArgs.builder()
.projectId("string")
.cacheEnabled(false)
.description("string")
.expiresAt("string")
.name("string")
.spendingLimitDaily(0)
.spendingLimitMonthly(0)
.spendingLimitTotal(0)
.spendingLimitWeekly(0)
.build());
gateway_api_key_resource = logfire.GatewayApiKey("gatewayApiKeyResource",
project_id="string",
cache_enabled=False,
description="string",
expires_at="string",
name="string",
spending_limit_daily=0,
spending_limit_monthly=0,
spending_limit_total=0,
spending_limit_weekly=0)
const gatewayApiKeyResource = new logfire.GatewayApiKey("gatewayApiKeyResource", {
projectId: "string",
cacheEnabled: false,
description: "string",
expiresAt: "string",
name: "string",
spendingLimitDaily: 0,
spendingLimitMonthly: 0,
spendingLimitTotal: 0,
spendingLimitWeekly: 0,
});
type: logfire:GatewayApiKey
properties:
cacheEnabled: false
description: string
expiresAt: string
name: string
projectId: string
spendingLimitDaily: 0
spendingLimitMonthly: 0
spendingLimitTotal: 0
spendingLimitWeekly: 0
GatewayApiKey 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 GatewayApiKey resource accepts the following input properties:
- Project
Id string - UUID of the project the key proxies for. Gateway keys always require a project. Changing it replaces the key.
- Cache
Enabled bool - Whether gateway responses are cached. Null inherits the project default. Can be updated in place; setting it to null restores the default.
- Description string
- Free-form description. Can be updated in place; setting it to null clears it.
- Expires
At string - Optional RFC3339 expiration timestamp (for example
2026-12-31T23:59:59Z). If omitted, the key does not expire. Changing it replaces the key. - Name string
- Display name for the key. Can be updated in place.
- Spending
Limit intDaily - Maximum gateway spend in whole US dollars per day. Null means no limit. Can be updated in place; setting it to null clears it.
- Spending
Limit intMonthly - Maximum gateway spend in whole US dollars per month. Null means no limit. Can be updated in place; setting it to null clears it.
- Spending
Limit intTotal - Maximum gateway spend in whole US dollars per lifetime. Null means no limit. Can be updated in place; setting it to null clears it.
- Spending
Limit intWeekly - Maximum gateway spend in whole US dollars per week. Null means no limit. Can be updated in place; setting it to null clears it.
- Project
Id string - UUID of the project the key proxies for. Gateway keys always require a project. Changing it replaces the key.
- Cache
Enabled bool - Whether gateway responses are cached. Null inherits the project default. Can be updated in place; setting it to null restores the default.
- Description string
- Free-form description. Can be updated in place; setting it to null clears it.
- Expires
At string - Optional RFC3339 expiration timestamp (for example
2026-12-31T23:59:59Z). If omitted, the key does not expire. Changing it replaces the key. - Name string
- Display name for the key. Can be updated in place.
- Spending
Limit intDaily - Maximum gateway spend in whole US dollars per day. Null means no limit. Can be updated in place; setting it to null clears it.
- Spending
Limit intMonthly - Maximum gateway spend in whole US dollars per month. Null means no limit. Can be updated in place; setting it to null clears it.
- Spending
Limit intTotal - Maximum gateway spend in whole US dollars per lifetime. Null means no limit. Can be updated in place; setting it to null clears it.
- Spending
Limit intWeekly - Maximum gateway spend in whole US dollars per week. Null means no limit. Can be updated in place; setting it to null clears it.
- project_
id string - UUID of the project the key proxies for. Gateway keys always require a project. Changing it replaces the key.
- cache_
enabled bool - Whether gateway responses are cached. Null inherits the project default. Can be updated in place; setting it to null restores the default.
- description string
- Free-form description. Can be updated in place; setting it to null clears it.
- expires_
at string - Optional RFC3339 expiration timestamp (for example
2026-12-31T23:59:59Z). If omitted, the key does not expire. Changing it replaces the key. - name string
- Display name for the key. Can be updated in place.
- spending_
limit_ numberdaily - Maximum gateway spend in whole US dollars per day. Null means no limit. Can be updated in place; setting it to null clears it.
- spending_
limit_ numbermonthly - Maximum gateway spend in whole US dollars per month. Null means no limit. Can be updated in place; setting it to null clears it.
- spending_
limit_ numbertotal - Maximum gateway spend in whole US dollars per lifetime. Null means no limit. Can be updated in place; setting it to null clears it.
- spending_
limit_ numberweekly - Maximum gateway spend in whole US dollars per week. Null means no limit. Can be updated in place; setting it to null clears it.
- project
Id String - UUID of the project the key proxies for. Gateway keys always require a project. Changing it replaces the key.
- cache
Enabled Boolean - Whether gateway responses are cached. Null inherits the project default. Can be updated in place; setting it to null restores the default.
- description String
- Free-form description. Can be updated in place; setting it to null clears it.
- expires
At String - Optional RFC3339 expiration timestamp (for example
2026-12-31T23:59:59Z). If omitted, the key does not expire. Changing it replaces the key. - name String
- Display name for the key. Can be updated in place.
- spending
Limit IntegerDaily - Maximum gateway spend in whole US dollars per day. Null means no limit. Can be updated in place; setting it to null clears it.
- spending
Limit IntegerMonthly - Maximum gateway spend in whole US dollars per month. Null means no limit. Can be updated in place; setting it to null clears it.
- spending
Limit IntegerTotal - Maximum gateway spend in whole US dollars per lifetime. Null means no limit. Can be updated in place; setting it to null clears it.
- spending
Limit IntegerWeekly - Maximum gateway spend in whole US dollars per week. Null means no limit. Can be updated in place; setting it to null clears it.
- project
Id string - UUID of the project the key proxies for. Gateway keys always require a project. Changing it replaces the key.
- cache
Enabled boolean - Whether gateway responses are cached. Null inherits the project default. Can be updated in place; setting it to null restores the default.
- description string
- Free-form description. Can be updated in place; setting it to null clears it.
- expires
At string - Optional RFC3339 expiration timestamp (for example
2026-12-31T23:59:59Z). If omitted, the key does not expire. Changing it replaces the key. - name string
- Display name for the key. Can be updated in place.
- spending
Limit numberDaily - Maximum gateway spend in whole US dollars per day. Null means no limit. Can be updated in place; setting it to null clears it.
- spending
Limit numberMonthly - Maximum gateway spend in whole US dollars per month. Null means no limit. Can be updated in place; setting it to null clears it.
- spending
Limit numberTotal - Maximum gateway spend in whole US dollars per lifetime. Null means no limit. Can be updated in place; setting it to null clears it.
- spending
Limit numberWeekly - Maximum gateway spend in whole US dollars per week. Null means no limit. Can be updated in place; setting it to null clears it.
- project_
id str - UUID of the project the key proxies for. Gateway keys always require a project. Changing it replaces the key.
- cache_
enabled bool - Whether gateway responses are cached. Null inherits the project default. Can be updated in place; setting it to null restores the default.
- description str
- Free-form description. Can be updated in place; setting it to null clears it.
- expires_
at str - Optional RFC3339 expiration timestamp (for example
2026-12-31T23:59:59Z). If omitted, the key does not expire. Changing it replaces the key. - name str
- Display name for the key. Can be updated in place.
- spending_
limit_ intdaily - Maximum gateway spend in whole US dollars per day. Null means no limit. Can be updated in place; setting it to null clears it.
- spending_
limit_ intmonthly - Maximum gateway spend in whole US dollars per month. Null means no limit. Can be updated in place; setting it to null clears it.
- spending_
limit_ inttotal - Maximum gateway spend in whole US dollars per lifetime. Null means no limit. Can be updated in place; setting it to null clears it.
- spending_
limit_ intweekly - Maximum gateway spend in whole US dollars per week. Null means no limit. Can be updated in place; setting it to null clears it.
- project
Id String - UUID of the project the key proxies for. Gateway keys always require a project. Changing it replaces the key.
- cache
Enabled Boolean - Whether gateway responses are cached. Null inherits the project default. Can be updated in place; setting it to null restores the default.
- description String
- Free-form description. Can be updated in place; setting it to null clears it.
- expires
At String - Optional RFC3339 expiration timestamp (for example
2026-12-31T23:59:59Z). If omitted, the key does not expire. Changing it replaces the key. - name String
- Display name for the key. Can be updated in place.
- spending
Limit NumberDaily - Maximum gateway spend in whole US dollars per day. Null means no limit. Can be updated in place; setting it to null clears it.
- spending
Limit NumberMonthly - Maximum gateway spend in whole US dollars per month. Null means no limit. Can be updated in place; setting it to null clears it.
- spending
Limit NumberTotal - Maximum gateway spend in whole US dollars per lifetime. Null means no limit. Can be updated in place; setting it to null clears it.
- spending
Limit NumberWeekly - Maximum gateway spend in whole US dollars per week. Null means no limit. Can be updated in place; setting it to null clears it.
Outputs
All input properties are implicitly available as output properties. Additionally, the GatewayApiKey resource produces the following output properties:
- Active bool
- Created
At string - Timestamp when the key was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Project
Name string - Name of the project the key proxies for.
- Token string
- The plaintext gateway API key. Only returned on creation; never returned again by the API.
- Active bool
- Created
At string - Timestamp when the key was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Project
Name string - Name of the project the key proxies for.
- Token string
- The plaintext gateway API key. Only returned on creation; never returned again by the API.
- active bool
- created_
at string - Timestamp when the key was created.
- id string
- The provider-assigned unique ID for this managed resource.
- project_
name string - Name of the project the key proxies for.
- token string
- The plaintext gateway API key. Only returned on creation; never returned again by the API.
- active Boolean
- created
At String - Timestamp when the key was created.
- id String
- The provider-assigned unique ID for this managed resource.
- project
Name String - Name of the project the key proxies for.
- token String
- The plaintext gateway API key. Only returned on creation; never returned again by the API.
- active boolean
- created
At string - Timestamp when the key was created.
- id string
- The provider-assigned unique ID for this managed resource.
- project
Name string - Name of the project the key proxies for.
- token string
- The plaintext gateway API key. Only returned on creation; never returned again by the API.
- active bool
- created_
at str - Timestamp when the key was created.
- id str
- The provider-assigned unique ID for this managed resource.
- project_
name str - Name of the project the key proxies for.
- token str
- The plaintext gateway API key. Only returned on creation; never returned again by the API.
- active Boolean
- created
At String - Timestamp when the key was created.
- id String
- The provider-assigned unique ID for this managed resource.
- project
Name String - Name of the project the key proxies for.
- token String
- The plaintext gateway API key. Only returned on creation; never returned again by the API.
Look up Existing GatewayApiKey Resource
Get an existing GatewayApiKey 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?: GatewayApiKeyState, opts?: CustomResourceOptions): GatewayApiKey@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
active: Optional[bool] = None,
cache_enabled: Optional[bool] = None,
created_at: Optional[str] = None,
description: Optional[str] = None,
expires_at: Optional[str] = None,
name: Optional[str] = None,
project_id: Optional[str] = None,
project_name: Optional[str] = None,
spending_limit_daily: Optional[int] = None,
spending_limit_monthly: Optional[int] = None,
spending_limit_total: Optional[int] = None,
spending_limit_weekly: Optional[int] = None,
token: Optional[str] = None) -> GatewayApiKeyfunc GetGatewayApiKey(ctx *Context, name string, id IDInput, state *GatewayApiKeyState, opts ...ResourceOption) (*GatewayApiKey, error)public static GatewayApiKey Get(string name, Input<string> id, GatewayApiKeyState? state, CustomResourceOptions? opts = null)public static GatewayApiKey get(String name, Output<String> id, GatewayApiKeyState state, CustomResourceOptions options)resources: _: type: logfire:GatewayApiKey get: id: ${id}import {
to = logfire_gateway_api_key.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.
- Active bool
- Cache
Enabled bool - Whether gateway responses are cached. Null inherits the project default. Can be updated in place; setting it to null restores the default.
- Created
At string - Timestamp when the key was created.
- Description string
- Free-form description. Can be updated in place; setting it to null clears it.
- Expires
At string - Optional RFC3339 expiration timestamp (for example
2026-12-31T23:59:59Z). If omitted, the key does not expire. Changing it replaces the key. - Name string
- Display name for the key. Can be updated in place.
- Project
Id string - UUID of the project the key proxies for. Gateway keys always require a project. Changing it replaces the key.
- Project
Name string - Name of the project the key proxies for.
- Spending
Limit intDaily - Maximum gateway spend in whole US dollars per day. Null means no limit. Can be updated in place; setting it to null clears it.
- Spending
Limit intMonthly - Maximum gateway spend in whole US dollars per month. Null means no limit. Can be updated in place; setting it to null clears it.
- Spending
Limit intTotal - Maximum gateway spend in whole US dollars per lifetime. Null means no limit. Can be updated in place; setting it to null clears it.
- Spending
Limit intWeekly - Maximum gateway spend in whole US dollars per week. Null means no limit. Can be updated in place; setting it to null clears it.
- Token string
- The plaintext gateway API key. Only returned on creation; never returned again by the API.
- Active bool
- Cache
Enabled bool - Whether gateway responses are cached. Null inherits the project default. Can be updated in place; setting it to null restores the default.
- Created
At string - Timestamp when the key was created.
- Description string
- Free-form description. Can be updated in place; setting it to null clears it.
- Expires
At string - Optional RFC3339 expiration timestamp (for example
2026-12-31T23:59:59Z). If omitted, the key does not expire. Changing it replaces the key. - Name string
- Display name for the key. Can be updated in place.
- Project
Id string - UUID of the project the key proxies for. Gateway keys always require a project. Changing it replaces the key.
- Project
Name string - Name of the project the key proxies for.
- Spending
Limit intDaily - Maximum gateway spend in whole US dollars per day. Null means no limit. Can be updated in place; setting it to null clears it.
- Spending
Limit intMonthly - Maximum gateway spend in whole US dollars per month. Null means no limit. Can be updated in place; setting it to null clears it.
- Spending
Limit intTotal - Maximum gateway spend in whole US dollars per lifetime. Null means no limit. Can be updated in place; setting it to null clears it.
- Spending
Limit intWeekly - Maximum gateway spend in whole US dollars per week. Null means no limit. Can be updated in place; setting it to null clears it.
- Token string
- The plaintext gateway API key. Only returned on creation; never returned again by the API.
- active bool
- cache_
enabled bool - Whether gateway responses are cached. Null inherits the project default. Can be updated in place; setting it to null restores the default.
- created_
at string - Timestamp when the key was created.
- description string
- Free-form description. Can be updated in place; setting it to null clears it.
- expires_
at string - Optional RFC3339 expiration timestamp (for example
2026-12-31T23:59:59Z). If omitted, the key does not expire. Changing it replaces the key. - name string
- Display name for the key. Can be updated in place.
- project_
id string - UUID of the project the key proxies for. Gateway keys always require a project. Changing it replaces the key.
- project_
name string - Name of the project the key proxies for.
- spending_
limit_ numberdaily - Maximum gateway spend in whole US dollars per day. Null means no limit. Can be updated in place; setting it to null clears it.
- spending_
limit_ numbermonthly - Maximum gateway spend in whole US dollars per month. Null means no limit. Can be updated in place; setting it to null clears it.
- spending_
limit_ numbertotal - Maximum gateway spend in whole US dollars per lifetime. Null means no limit. Can be updated in place; setting it to null clears it.
- spending_
limit_ numberweekly - Maximum gateway spend in whole US dollars per week. Null means no limit. Can be updated in place; setting it to null clears it.
- token string
- The plaintext gateway API key. Only returned on creation; never returned again by the API.
- active Boolean
- cache
Enabled Boolean - Whether gateway responses are cached. Null inherits the project default. Can be updated in place; setting it to null restores the default.
- created
At String - Timestamp when the key was created.
- description String
- Free-form description. Can be updated in place; setting it to null clears it.
- expires
At String - Optional RFC3339 expiration timestamp (for example
2026-12-31T23:59:59Z). If omitted, the key does not expire. Changing it replaces the key. - name String
- Display name for the key. Can be updated in place.
- project
Id String - UUID of the project the key proxies for. Gateway keys always require a project. Changing it replaces the key.
- project
Name String - Name of the project the key proxies for.
- spending
Limit IntegerDaily - Maximum gateway spend in whole US dollars per day. Null means no limit. Can be updated in place; setting it to null clears it.
- spending
Limit IntegerMonthly - Maximum gateway spend in whole US dollars per month. Null means no limit. Can be updated in place; setting it to null clears it.
- spending
Limit IntegerTotal - Maximum gateway spend in whole US dollars per lifetime. Null means no limit. Can be updated in place; setting it to null clears it.
- spending
Limit IntegerWeekly - Maximum gateway spend in whole US dollars per week. Null means no limit. Can be updated in place; setting it to null clears it.
- token String
- The plaintext gateway API key. Only returned on creation; never returned again by the API.
- active boolean
- cache
Enabled boolean - Whether gateway responses are cached. Null inherits the project default. Can be updated in place; setting it to null restores the default.
- created
At string - Timestamp when the key was created.
- description string
- Free-form description. Can be updated in place; setting it to null clears it.
- expires
At string - Optional RFC3339 expiration timestamp (for example
2026-12-31T23:59:59Z). If omitted, the key does not expire. Changing it replaces the key. - name string
- Display name for the key. Can be updated in place.
- project
Id string - UUID of the project the key proxies for. Gateway keys always require a project. Changing it replaces the key.
- project
Name string - Name of the project the key proxies for.
- spending
Limit numberDaily - Maximum gateway spend in whole US dollars per day. Null means no limit. Can be updated in place; setting it to null clears it.
- spending
Limit numberMonthly - Maximum gateway spend in whole US dollars per month. Null means no limit. Can be updated in place; setting it to null clears it.
- spending
Limit numberTotal - Maximum gateway spend in whole US dollars per lifetime. Null means no limit. Can be updated in place; setting it to null clears it.
- spending
Limit numberWeekly - Maximum gateway spend in whole US dollars per week. Null means no limit. Can be updated in place; setting it to null clears it.
- token string
- The plaintext gateway API key. Only returned on creation; never returned again by the API.
- active bool
- cache_
enabled bool - Whether gateway responses are cached. Null inherits the project default. Can be updated in place; setting it to null restores the default.
- created_
at str - Timestamp when the key was created.
- description str
- Free-form description. Can be updated in place; setting it to null clears it.
- expires_
at str - Optional RFC3339 expiration timestamp (for example
2026-12-31T23:59:59Z). If omitted, the key does not expire. Changing it replaces the key. - name str
- Display name for the key. Can be updated in place.
- project_
id str - UUID of the project the key proxies for. Gateway keys always require a project. Changing it replaces the key.
- project_
name str - Name of the project the key proxies for.
- spending_
limit_ intdaily - Maximum gateway spend in whole US dollars per day. Null means no limit. Can be updated in place; setting it to null clears it.
- spending_
limit_ intmonthly - Maximum gateway spend in whole US dollars per month. Null means no limit. Can be updated in place; setting it to null clears it.
- spending_
limit_ inttotal - Maximum gateway spend in whole US dollars per lifetime. Null means no limit. Can be updated in place; setting it to null clears it.
- spending_
limit_ intweekly - Maximum gateway spend in whole US dollars per week. Null means no limit. Can be updated in place; setting it to null clears it.
- token str
- The plaintext gateway API key. Only returned on creation; never returned again by the API.
- active Boolean
- cache
Enabled Boolean - Whether gateway responses are cached. Null inherits the project default. Can be updated in place; setting it to null restores the default.
- created
At String - Timestamp when the key was created.
- description String
- Free-form description. Can be updated in place; setting it to null clears it.
- expires
At String - Optional RFC3339 expiration timestamp (for example
2026-12-31T23:59:59Z). If omitted, the key does not expire. Changing it replaces the key. - name String
- Display name for the key. Can be updated in place.
- project
Id String - UUID of the project the key proxies for. Gateway keys always require a project. Changing it replaces the key.
- project
Name String - Name of the project the key proxies for.
- spending
Limit NumberDaily - Maximum gateway spend in whole US dollars per day. Null means no limit. Can be updated in place; setting it to null clears it.
- spending
Limit NumberMonthly - Maximum gateway spend in whole US dollars per month. Null means no limit. Can be updated in place; setting it to null clears it.
- spending
Limit NumberTotal - Maximum gateway spend in whole US dollars per lifetime. Null means no limit. Can be updated in place; setting it to null clears it.
- spending
Limit NumberWeekly - Maximum gateway spend in whole US dollars per week. Null means no limit. Can be updated in place; setting it to null clears it.
- token String
- The plaintext gateway API key. Only returned on creation; never returned again by the API.
Package Details
- Repository
- logfire pydantic/pulumi-logfire
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
logfireTerraform Provider.
published on Wednesday, Sep 9, 2026 by Pydantic