I'd like to generate_blob_sas
using the Azure Python SDK.
The blob URL looks something like this:
https://<account_name>.blob.core.windows.net/<container_name>/<folder_1>/<folder_2>/<blob_name>.jpg
The snippet in question looks something like this:
# Generate SAS token
blob_sas_token = generate_blob_sas(
account_name = storage_account_name,
container_name = storage_container_name,
blob_name = "",
account_key = storage_account_key,
permission = BlobSasPermissions.from_string(TOKEN_PERMISSIONS),
expiry = datetime.utcnow() + timedelta(minutes=TOKEN_DURATION_MINUTES)
)
Question:
- Does the
blob_name
consist of<folder_1>/<folder_2>/<blob_name>.jpg
? OR - Does the
blob_name
consist only of<blob_name>.jpg
?