head_object
Retrieve metadata of an S3 object without downloading its contents. Specify bucket, key, and optional conditions like ETag or version ID to filter results. Ideal for verifying object details efficiently.
Instructions
Retrieves metadata from an object without returning the object itself.
Args: bucket (str): The name of the bucket. key (str): The key (name) of the object. if_match (Optional[str]): Return object only if its ETag is the same. if_none_match (Optional[str]): Return object only if its ETag is different. version_id (Optional[str]): Version of the object.
Returns: str: JSON formatted S3 response.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
bucket | Yes | ||
if_match | No | ||
if_none_match | No | ||
key | Yes | ||
version_id | No |