v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-138134216.7 KB
objects

Restores a soft-deleted object.

post/b/{bucket}/o/{object}/restore

Path parameters

bucketstring required

Name of the bucket in which the object resides.

objectstring required

Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.

Query parameters

generationstring required

Selects a specific revision of this object.

copySourceAclboolean

If true, copies the source object's ACL; otherwise, uses the bucket's default object ACL. The default is false.

ifGenerationMatchstring

Makes the operation conditional on whether the object's one live generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions of the object.

ifGenerationNotMatchstring

Makes the operation conditional on whether none of the object's live generations match the given value. If no live object exists, the precondition fails. Setting to 0 makes the operation succeed only if there is a live version of the object.

ifMetagenerationMatchstring

Makes the operation conditional on whether the object's one live metageneration matches the given value.

ifMetagenerationNotMatchstring

Makes the operation conditional on whether none of the object's live metagenerations match the given value.

projection'full' | 'noAcl'

Set of properties to return. Defaults to full.

restoreTokenstring

Restore token used to differentiate sof-deleted objects with the same name and generation. Only applicable for hierarchical namespace buckets. This parameter is optional, and is only required in the rare case when there are multiple soft-deleted objects with the same name and generation.

userProjectstring

The project to be billed for this request. Required for Requester Pays buckets.

Response

Successful response