generate_blob_sas
使用 Azure Python SDK。
blob URL 看起来像这样:
https://<account_name>.blob.core.windows.net/<container_name>/<folder_1>/<folder_2>/<blob_name>.jpg
有问题的片段看起来像这样:
# 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)
)
问题:
blob_name
由<folder_1>/<folder_2>/<blob_name>.jpg
组成吗?或者blob_name
只包含<blob_name>.jpg
吗?