Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Cloud Storage - Class A and B Operations

Example: In a Bucket containing 1,000 objects, when performing a Class A operation, such as storage.objects.list or storage.objects.copy, to list or copy all objects, will this action be counted as a single operation? Or will each object be considered a separate operation, resulting in a total of a thousand operations?

Additionally, regarding the storage.*.insert and storage.*.get operations, each inserted or retrieved object is counted as an individual operation, correct?

Doc: https://cloud.google.com/storage/pricing#price-tables

2 1 8,499
1 REPLY 1

Hi @dougsaraiva,

Welcome to Google Cloud Community!

Class A operations:

  • Counted as a single operation, even if they act on multiple objects.
  • Examples:
    • Listing all objects in a bucket.
    • Copying all objects in a bucket.
    • Deleting multiple objects in a single request.

Class B operations:

  • Counted individually for each object they act on.
  • Examples:
    • Inserting each object.
    • Retrieving each object.
    • Composing multiple objects into a single object (one operation for composition, one per component object).

Key Points:

  • Class A operations are generally more expensive than Class B operations.
  • Batch operations to optimize costs.
  • Pricing varies slightly for Regional Buckets.
  • Certain operations are free.

Additional Insights:

  • Consider cost implications for large-scale operations.
  • Refer to official documentation for latest pricing information.