createSignedUrl

abstract suspend fun createSignedUrl(path: String, expiresIn: Duration, builder: SignedUrlBuilder.() -> Unit = {}): String(source)

Creates a signed url to download without authentication. The url will expire after expiresIn

Return

The url to download the file

Parameters

path

The path to create a url for

expiresIn

The duration the url is valid

builder

Optional modifier to add a transformation, force-download or cacheNonce to the created url

Throws

RestException

or one of its subclasses if receiving an error response

HttpRequestTimeoutException

if the request timed out

HttpRequestException

on network related issues