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

    Interface DownloadAuthorizationRequest

    Request parameters for the b2_get_download_authorization API call. Creates a time-limited token that authorizes downloads of files matching a prefix.

    interface DownloadAuthorizationRequest {
        b2CacheControl?: string;
        b2ContentDisposition?: string;
        b2ContentEncoding?: string;
        b2ContentLanguage?: string;
        b2ContentType?: string;
        b2Expires?: string;
        bucketId: BucketId;
        fileNamePrefix: string;
        validDurationInSeconds: number;
    }
    Index

    Properties

    b2CacheControl?: string

    Override the Cache-Control header in authorized download responses.

    b2ContentDisposition?: string

    Override the Content-Disposition header in authorized download responses.

    b2ContentEncoding?: string

    Override the Content-Encoding header in authorized download responses.

    b2ContentLanguage?: string

    Override the Content-Language header in authorized download responses.

    b2ContentType?: string

    Override the Content-Type header in authorized download responses.

    b2Expires?: string

    Override the Expires header in authorized download responses.

    bucketId: BucketId

    Bucket to authorize downloads from.

    fileNamePrefix: string

    Only files with names starting with this prefix are authorized.

    validDurationInSeconds: number

    Duration in seconds that the authorization token remains valid.