• Object Storage Service

obs
  1. Help Center
  2. Object Storage Service
  3. User Guide (S3cmd)
  4. Operation Guide
  5. Object Management
  6. Viewing Basic Information About an Object

Viewing Basic Information About an Object

Object owners or users who have the read permission on the objects can view the basic information about objects, their size, last modification time, storage class, and so on.

Permissions on objects can be obtained by configuring the ACL permissions. For details, see section Configuring ACL Permissions for an Object.

Procedure

  1. Open the command line tool.
  2. Run the following command to view the basic information about a specific object:

    s3cmd info s3://my-bucket/object

    In the command output, the object information is displayed in the following format:

    s3://my-bucket/object(object):
     File size:
     Last Mod:
     MIME type:
     Storage:
     MD5 sum:
     SSE:
     policy:
     cors:
     ACL:
     x-amz-meta-s3cmd-attrs:

    Table 1 describes metadata parameters.

    Table 1 Object metadata parameters

    Metadata

    Description

    File size

    The object size.

    Last Mod

    The last modification time.

    MIME type

    The object type.

    Storage

    The storage class.

    MD5 sum

    The MD5 value.

    SSE

    The server-side encryption.

    policy

    The object policy.

    cors

    The object CORS rule.

    ACL

    The object ACL rule.

    x-amz-meta-s3cmd-attrs

    The basic properties of an object, composed of the following metadata:

    • uid
    • gname
    • uname
    • gid
    • mode
    • mtime
    • atime
    • md5
    • ctime