Apply Governance Lock (Object)
This API allows users to apply governance lock to an object.
POST
/api/v1/storage/buckets/{bucket_name}/lock/object/Path parameters
bucket_namePathstringrequiredBucket Name
Query parameters
object_nameQuerystringrequiredObject Name with Directory.
project_idQueryintegerrequiredProject ID Find your project id here
locationQuerystringrequiredDeployment region for the resource. Accepted values:
Delhi,Chennai.Mumbai region has been discontinued. Delhi and Chennai are the only supported regions.
version_idQuerystringrequiredVersion ID
Request body
application/json
example
GOVERNANCEexample
3Responses
200Response indicating that object retention has been set
example
200example
Success