ReleaseLock
Removes this lease from a lock’s holder list. The lock becomes UNLOCKED only when the last
holder is gone. Releasing a lock the lease does not hold is a no-op (returns the lock unchanged,
no error). To release every lock held by a lease in one shot, use RevokeLockLease. To forcibly
unlock regardless of holders, use DeleteLock.
Safe to retry.
Request
{
"namespace_name": "UserObjects",
"lock_name": "users/123/profile",
"lease_id": "ll_NfKKeiPbP18NFeU3lLGrRWWgDJRB"
}
Response
- Returns
NotFoundif the namespace does not exist. - Returns
NotFoundif the lease does not exist.
{
"lock": {
"name": "users/123/profile",
"state": "LOCK_STATE_UNLOCKED",
"locked_at": 0,
"last_activity_at": 1695826239671432000,
"lock_holders": []
}
}