Mega S4 icon

Mega S4

Interact with Mega.nz S4 object storage (S3-compatible)

Object → Head

AI-generated

Summary

Retrieve metadata for a specified object within a Mega.nz S4 bucket, optionally using conditional headers to validate or restrict the response based on ETag or modification date.

Inputs

  • Bucket Name (required) — Name of the bucket containing the object.
  • Object Key (required) — Key (path/name) of the object to get metadata for.
  • Conditional Headers — Optional conditional headers to tailor the metadata response: 'If-Match', 'If-None-Match', 'If-Modified-Since', and 'If-Unmodified-Since'.

Output shape

a single metadata record for the specified object or a 304/412 status depending on conditional header evaluation

The operation returns metadata for the object only if conditional headers criteria are met; otherwise, it returns HTTP status codes (304 Not Modified or 412 Precondition Failed). Metadata fields and presence depend on the object's state and server response.

Discussion