acquire_lease {AzureStor} | R Documentation |
Operations on blob leases
Description
Manage leases for blobs and blob containers.
Usage
acquire_lease(container, blob = "", duration = 60, lease = NULL)
break_lease(container, blob = "", period = NULL)
release_lease(container, blob = "", lease)
renew_lease(container, blob = "", lease)
change_lease(container, blob = "", lease, new_lease)
Arguments
container |
A blob container object. |
blob |
The name of an individual blob. If not supplied, the lease applies to the entire container. |
duration |
For |
lease |
For |
period |
For |
new_lease |
For |
Details
Leasing is a way to prevent a blob or container from being accidentally deleted. The duration of a lease can range from 15 to 60 seconds, or be indefinite.
Value
For acquire_lease
and change_lease
, a string containing the lease ID.
See Also
blob_container, Leasing a blob, Leasing a container