AzureStorage.Blob.acquire_lease

You're seeing just the function acquire_lease, go back to AzureStorage.Blob module for more information.
Link to this function

acquire_lease(context, container, filename, options \\ [])

View Source

Acquires a new lease. If container and blob are specified, acquires a blob lease. Otherwise, if only container is specified and blob is null, acquires a container lease.

Supported options

  • :duration - Specifies the duration of the lease, in seconds, or negative on(-1) for a lease that never expires. A non-inifinite lease can be between 15 and 60 seconds. The default value is 15.

  • :propose_lease_id - Proposed lease ID, in a GUID string format. The default value is "".