Manage leases for blobs and blob containers.
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)
A blob container object.
The name of an individual blob. If not supplied, the lease applies to the entire container.
For acquire_lease, The duration of the requested lease. For an indefinite duration, set this to -1.
For acquire_lease an optional proposed name of the lease; for release_lease, renew_lease and change_lease, the name of the existing lease.
For break_lease, the period for which to break the lease.
For change_lease, the proposed name of the lease.
For acquire_lease and change_lease, a string containing the lease ID.
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.