Update-file-legal-hold command
Only works in buckets with fileLockEnabled=true.
Specifying the fileName is more efficient than leaving it out.
If you omit the fileName, it requires an initial query to B2
to get the file name, before making the call to delete the
file. This extra query requires the readFiles capability.
Requires capability:
writeFileLegalHolds
readFiles (if file name not provided)
b2 update-file-legal-hold [-h] [fileName] fileId {on,off}
Positional Arguments
- fileName
- fileId
- legalHold
Possible choices: on, off