@backblaze-labs/b2-sdk - v0.2.0
    Preparing search index...

    Interface CreateKeyOptionsBase

    Shared request parameters for creating an application key.

    interface CreateKeyOptionsBase {
        capabilities: readonly Capability[];
        keyName: string;
        namePrefix?: string;
        validDurationInSeconds?: number;
    }
    Index

    Properties

    capabilities: readonly Capability[]

    Capabilities to grant to the new key.

    keyName: string

    Human-readable name for the key (must be unique within the account).

    namePrefix?: string

    Optional file name prefix restriction. When set, the key only grants access to files with this prefix.

    validDurationInSeconds?: number

    Optional duration in seconds before the key expires. Omit for a key that never expires.