• Object Storage Service

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

Viewing Storage Information About a Bucket

Bucket owners or users who have the s3:ListBucket permission (the permission is configured in the bucket policy) can view the storage information about the bucket, including bucket size and number of objects.

NOTE:

For details about how to configure a bucket policy, see section Configuring a Bucket Policy.

Procedure

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

    s3cmd du s3://my-bucket

    NOTE:

    my-bucket is the name of the bucket whose storage information you want to view.

    In the command output, the storage information about the bucket is displayed in the following format:

    Bucket size    Number of objects  s3://my-bucket/
    NOTE:

    The unit of the bucket size is KB.