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
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
- Connects to Azure Blob Storage using shared key credentials
- Configures permissions: read, write, and create
- Sets expiry time to 30 minutes from the current time
- 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’sgenerateBlobSASQueryParameters function: