Skip to main content

Endpoint

Description

This function generates a Shared Access Signature (SAS) token for secure, time-limited access to the Azure Blob Storage “images” container. The token grants read, write, and create permissions.

Request

No parameters required. This is a simple GET request.

Response

string
A SAS token string that can be appended to Azure Blob Storage URLs for authenticated access. The token is valid for 30 minutes from generation time.

Behavior

  1. Connects to Azure Blob Storage using shared key credentials
  2. Configures permissions: read, write, and create
  3. Sets expiry time to 30 minutes from the current time
  4. Generates and returns the SAS token query parameters as a string

Example request

Token permissions

The generated SAS token includes the following permissions:
  • Read: Access to read blob content and metadata
  • Write: Ability to write or overwrite blobs
  • Create: Permission to create new blobs

Token expiry

Tokens are valid for 30 minutes from generation time:

Implementation details

The underlying implementation uses Azure’s generateBlobSASQueryParameters function:
The token must be regenerated after expiry to maintain access to blob storage resources.