1. Registry
  2. Packages
  3. Logfire
  4. API Docs
  5. GatewayApiKey
Viewing docs for Logfire v0.1.21
published on Wednesday, Sep 9, 2026 by Pydantic
logfire logo
Viewing docs for Logfire v0.1.21
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:

    ProjectId string
    UUID of the project the key proxies for. Gateway keys always require a project. Changing it replaces the key.
    CacheEnabled 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.
    ExpiresAt 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.
    SpendingLimitDaily int
    Maximum gateway spend in whole US dollars per day. Null means no limit. Can be updated in place; setting it to null clears it.
    SpendingLimitMonthly int
    Maximum gateway spend in whole US dollars per month. Null means no limit. Can be updated in place; setting it to null clears it.
    SpendingLimitTotal int
    Maximum gateway spend in whole US dollars per lifetime. Null means no limit. Can be updated in place; setting it to null clears it.
    SpendingLimitWeekly int
    Maximum gateway spend in whole US dollars per week. Null means no limit. Can be updated in place; setting it to null clears it.
    ProjectId string
    UUID of the project the key proxies for. Gateway keys always require a project. Changing it replaces the key.
    CacheEnabled 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.
    ExpiresAt 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.
    SpendingLimitDaily int
    Maximum gateway spend in whole US dollars per day. Null means no limit. Can be updated in place; setting it to null clears it.
    SpendingLimitMonthly int
    Maximum gateway spend in whole US dollars per month. Null means no limit. Can be updated in place; setting it to null clears it.
    SpendingLimitTotal int
    Maximum gateway spend in whole US dollars per lifetime. Null means no limit. Can be updated in place; setting it to null clears it.
    SpendingLimitWeekly int
    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_daily number
    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_monthly number
    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_total number
    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_weekly number
    Maximum gateway spend in whole US dollars per week. Null means no limit. Can be updated in place; setting it to null clears it.
    projectId String
    UUID of the project the key proxies for. Gateway keys always require a project. Changing it replaces the key.
    cacheEnabled 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.
    expiresAt 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.
    spendingLimitDaily Integer
    Maximum gateway spend in whole US dollars per day. Null means no limit. Can be updated in place; setting it to null clears it.
    spendingLimitMonthly Integer
    Maximum gateway spend in whole US dollars per month. Null means no limit. Can be updated in place; setting it to null clears it.
    spendingLimitTotal Integer
    Maximum gateway spend in whole US dollars per lifetime. Null means no limit. Can be updated in place; setting it to null clears it.
    spendingLimitWeekly Integer
    Maximum gateway spend in whole US dollars per week. Null means no limit. Can be updated in place; setting it to null clears it.
    projectId string
    UUID of the project the key proxies for. Gateway keys always require a project. Changing it replaces the key.
    cacheEnabled 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.
    expiresAt 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.
    spendingLimitDaily number
    Maximum gateway spend in whole US dollars per day. Null means no limit. Can be updated in place; setting it to null clears it.
    spendingLimitMonthly number
    Maximum gateway spend in whole US dollars per month. Null means no limit. Can be updated in place; setting it to null clears it.
    spendingLimitTotal number
    Maximum gateway spend in whole US dollars per lifetime. Null means no limit. Can be updated in place; setting it to null clears it.
    spendingLimitWeekly number
    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_daily int
    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_monthly int
    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_total int
    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_weekly int
    Maximum gateway spend in whole US dollars per week. Null means no limit. Can be updated in place; setting it to null clears it.
    projectId String
    UUID of the project the key proxies for. Gateway keys always require a project. Changing it replaces the key.
    cacheEnabled 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.
    expiresAt 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.
    spendingLimitDaily Number
    Maximum gateway spend in whole US dollars per day. Null means no limit. Can be updated in place; setting it to null clears it.
    spendingLimitMonthly Number
    Maximum gateway spend in whole US dollars per month. Null means no limit. Can be updated in place; setting it to null clears it.
    spendingLimitTotal Number
    Maximum gateway spend in whole US dollars per lifetime. Null means no limit. Can be updated in place; setting it to null clears it.
    spendingLimitWeekly Number
    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
    CreatedAt string
    Timestamp when the key was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    ProjectName 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
    CreatedAt string
    Timestamp when the key was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    ProjectName 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
    createdAt String
    Timestamp when the key was created.
    id String
    The provider-assigned unique ID for this managed resource.
    projectName 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
    createdAt string
    Timestamp when the key was created.
    id string
    The provider-assigned unique ID for this managed resource.
    projectName 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
    createdAt String
    Timestamp when the key was created.
    id String
    The provider-assigned unique ID for this managed resource.
    projectName 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) -> GatewayApiKey
    func 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.
    The following state arguments are supported:
    Active bool
    CacheEnabled bool
    Whether gateway responses are cached. Null inherits the project default. Can be updated in place; setting it to null restores the default.
    CreatedAt string
    Timestamp when the key was created.
    Description string
    Free-form description. Can be updated in place; setting it to null clears it.
    ExpiresAt 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.
    ProjectId string
    UUID of the project the key proxies for. Gateway keys always require a project. Changing it replaces the key.
    ProjectName string
    Name of the project the key proxies for.
    SpendingLimitDaily int
    Maximum gateway spend in whole US dollars per day. Null means no limit. Can be updated in place; setting it to null clears it.
    SpendingLimitMonthly int
    Maximum gateway spend in whole US dollars per month. Null means no limit. Can be updated in place; setting it to null clears it.
    SpendingLimitTotal int
    Maximum gateway spend in whole US dollars per lifetime. Null means no limit. Can be updated in place; setting it to null clears it.
    SpendingLimitWeekly int
    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
    CacheEnabled bool
    Whether gateway responses are cached. Null inherits the project default. Can be updated in place; setting it to null restores the default.
    CreatedAt string
    Timestamp when the key was created.
    Description string
    Free-form description. Can be updated in place; setting it to null clears it.
    ExpiresAt 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.
    ProjectId string
    UUID of the project the key proxies for. Gateway keys always require a project. Changing it replaces the key.
    ProjectName string
    Name of the project the key proxies for.
    SpendingLimitDaily int
    Maximum gateway spend in whole US dollars per day. Null means no limit. Can be updated in place; setting it to null clears it.
    SpendingLimitMonthly int
    Maximum gateway spend in whole US dollars per month. Null means no limit. Can be updated in place; setting it to null clears it.
    SpendingLimitTotal int
    Maximum gateway spend in whole US dollars per lifetime. Null means no limit. Can be updated in place; setting it to null clears it.
    SpendingLimitWeekly int
    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_daily number
    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_monthly number
    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_total number
    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_weekly number
    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
    cacheEnabled Boolean
    Whether gateway responses are cached. Null inherits the project default. Can be updated in place; setting it to null restores the default.
    createdAt String
    Timestamp when the key was created.
    description String
    Free-form description. Can be updated in place; setting it to null clears it.
    expiresAt 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.
    projectId String
    UUID of the project the key proxies for. Gateway keys always require a project. Changing it replaces the key.
    projectName String
    Name of the project the key proxies for.
    spendingLimitDaily Integer
    Maximum gateway spend in whole US dollars per day. Null means no limit. Can be updated in place; setting it to null clears it.
    spendingLimitMonthly Integer
    Maximum gateway spend in whole US dollars per month. Null means no limit. Can be updated in place; setting it to null clears it.
    spendingLimitTotal Integer
    Maximum gateway spend in whole US dollars per lifetime. Null means no limit. Can be updated in place; setting it to null clears it.
    spendingLimitWeekly Integer
    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
    cacheEnabled boolean
    Whether gateway responses are cached. Null inherits the project default. Can be updated in place; setting it to null restores the default.
    createdAt string
    Timestamp when the key was created.
    description string
    Free-form description. Can be updated in place; setting it to null clears it.
    expiresAt 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.
    projectId string
    UUID of the project the key proxies for. Gateway keys always require a project. Changing it replaces the key.
    projectName string
    Name of the project the key proxies for.
    spendingLimitDaily number
    Maximum gateway spend in whole US dollars per day. Null means no limit. Can be updated in place; setting it to null clears it.
    spendingLimitMonthly number
    Maximum gateway spend in whole US dollars per month. Null means no limit. Can be updated in place; setting it to null clears it.
    spendingLimitTotal number
    Maximum gateway spend in whole US dollars per lifetime. Null means no limit. Can be updated in place; setting it to null clears it.
    spendingLimitWeekly number
    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_daily int
    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_monthly int
    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_total int
    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_weekly int
    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
    cacheEnabled Boolean
    Whether gateway responses are cached. Null inherits the project default. Can be updated in place; setting it to null restores the default.
    createdAt String
    Timestamp when the key was created.
    description String
    Free-form description. Can be updated in place; setting it to null clears it.
    expiresAt 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.
    projectId String
    UUID of the project the key proxies for. Gateway keys always require a project. Changing it replaces the key.
    projectName String
    Name of the project the key proxies for.
    spendingLimitDaily Number
    Maximum gateway spend in whole US dollars per day. Null means no limit. Can be updated in place; setting it to null clears it.
    spendingLimitMonthly Number
    Maximum gateway spend in whole US dollars per month. Null means no limit. Can be updated in place; setting it to null clears it.
    spendingLimitTotal Number
    Maximum gateway spend in whole US dollars per lifetime. Null means no limit. Can be updated in place; setting it to null clears it.
    spendingLimitWeekly Number
    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 logfire Terraform Provider.
    logfire logo
    Viewing docs for Logfire v0.1.21
    published on Wednesday, Sep 9, 2026 by Pydantic

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial