AzureStorage.Blob.share
You're seeing just the function
share
, go back to
AzureStorage.Blob module for more information.
Sharing blob file using Share Access Signature
Supported options
:path
- Required. sharing path /<container>/<filename>
for example /bookings/hotel-room-a.json
:permissions
- Required. The default value is "r"
.
:start
- Required. Start from date in ISO-8601 format e.g 2021-04-10T10:48:02Z
:expiry
- Required. Expiry date in ISO-8601 format e.g 2021-04-10T10:48:02Z
Example:
# generate URL for sharing a read only access
context
|> AzureStorage.Blob.share(
path: "/bookings/hotel-room-a.json",
permissions: "r",
start: "2021-04-10T10:48:02Z",
expiry: "2021-04-11T13:48:02Z"
)
|> HTTPoison.get!([], [ssl: [versions: [:"tlsv1.2"]]])
|> IO.inspect()