Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex Object Storage
  • Terraform reference
    • Authentication with the API
        • Overview
          • Overview
          • List
          • Get
          • Create
          • Update
          • Delete
          • GetStats
          • GetHTTPSConfig
          • SetHTTPSConfig
          • DeleteHTTPSConfig
  • Monitoring metrics
  • Audit Trails events
  • Bucket logs
  • Release notes
  • FAQ

In this article:

  • HTTP request
  • Path parameters
  • Response
  • OptionalSizeByClass
  • SizeByClass
  • CountersByClass
  • Counters
  • AnonymousAccessFlags
  1. API reference
  2. gRPC and REST
  3. REST
  4. Bucket
  5. GetStats

Object Storage API, REST: Bucket.GetStats

Written by
Yandex Cloud
Updated at November 26, 2024
  • HTTP request
  • Path parameters
  • Response
  • OptionalSizeByClass
  • SizeByClass
  • CountersByClass
  • Counters
  • AnonymousAccessFlags

Returns the statistics for the specified bucket.

HTTP requestHTTP request

GET https://storage.api.cloud.yandex.net/storage/v1/buckets/{name}:getStats

Path parametersPath parameters

Field

Description

name

string

Required field. Name of the bucket to return the statistics for.

ResponseResponse

HTTP Code: 200 - OK

{
  "name": "string",
  "maxSize": "string",
  "usedSize": "string",
  "storageClassMaxSizes": [
    {
      "storageClass": "string",
      "classSize": "string"
    }
  ],
  "storageClassUsedSizes": [
    {
      "storageClass": "string",
      "classSize": "string"
    }
  ],
  "storageClassCounters": [
    {
      "storageClass": "string",
      "counters": {
        "simpleObjectSize": "string",
        "simpleObjectCount": "string",
        "objectsPartsSize": "string",
        "objectsPartsCount": "string",
        "multipartObjectsSize": "string",
        "multipartObjectsCount": "string",
        "activeMultipartCount": "string"
      }
    }
  ],
  "defaultStorageClass": "string",
  "anonymousAccessFlags": {
    "read": "boolean",
    "list": "boolean",
    "configRead": "boolean"
  },
  "createdAt": "string",
  "updatedAt": "string"
}

A bucket statistics resource.

Field

Description

name

string

Name of the bucket.

maxSize

string (int64)

Maximum size of the bucket, in bytes.

usedSize

string (int64)

Size of used space in the bucket, in bytes.

storageClassMaxSizes[]

OptionalSizeByClass

Size of available space in the bucket by storage class, in bytes.

storageClassUsedSizes[]

SizeByClass

Size of used space in the bucket by storage class, in bytes.

storageClassCounters[]

CountersByClass

Object-related statistics by storage class and type of upload (simple vs. multipart), in bytes.

defaultStorageClass

string

Default storage class for objects in the bucket. Supported classes are standard storage (STANDARD), cold storage
(COLD, STANDARD_IA, NEARLINE all synonyms), and ice storage (ICE and GLACIER are synonyms).
For details, see documentation.

anonymousAccessFlags

AnonymousAccessFlags

Flags for configuring public (anonymous) access to the bucket's content and settings.
For details, see documentation.

createdAt

string (date-time)

Bucket creation timestamp.

String in RFC3339 text format. The range of possible values is from
0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z, i.e. from 0 to 9 digits for fractions of a second.

To work with values in this field, use the APIs described in the
Protocol Buffers reference.
In some languages, built-in datetime utilities do not support nanosecond precision (9 digits).

updatedAt

string (date-time)

Bucket latest update timestamp.

String in RFC3339 text format. The range of possible values is from
0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z, i.e. from 0 to 9 digits for fractions of a second.

To work with values in this field, use the APIs described in the
Protocol Buffers reference.
In some languages, built-in datetime utilities do not support nanosecond precision (9 digits).

OptionalSizeByClassOptionalSizeByClass

A resource for size of available space in a bucket for a storage class.

Field

Description

storageClass

string

Storage class. Supported classes are standard storage (STANDARD), cold storage (COLD, STANDARD_IA, NEARLINE
all synonyms), and ice storage (ICE and GLACIER are synonyms).
For details, see documentation.

classSize

string (int64)

Size of available space in the bucket for the storage class.

SizeByClassSizeByClass

A resource for size of used space in a bucket for a storage class.

Field

Description

storageClass

string

Storage class. Supported classes are standard storage (STANDARD), cold storage (COLD, STANDARD_IA, NEARLINE
all synonyms), and ice storage (ICE and GLACIER are synonyms).
For details, see documentation.

classSize

string (int64)

Size of used space in the bucket for the storage class.

CountersByClassCountersByClass

A resource for object-related statistics for a storage class by type of upload (simple vs. multipart).

Field

Description

storageClass

string

Storage class. Supported classes are standard storage (STANDARD), cold storage (COLD, STANDARD_IA, NEARLINE
all synonyms), and ice storage (ice and GLACIER are synonyms).
For details, see documentation.

counters

Counters

Object-related statistics for the storage class by type of upload.

CountersCounters

Field

Description

simpleObjectSize

string (int64)

Total size of objects uploaded in single operation, in bytes.

simpleObjectCount

string (int64)

Number of objects uploaded in single operation.

objectsPartsSize

string (int64)

Total size of uploaded parts in incomplete multipart uploads, in bytes.

objectsPartsCount

string (int64)

Number of uploaded parts in incomplete multipart uploads.

multipartObjectsSize

string (int64)

Total size of objects uploaded in multiple parts, in bytes.

multipartObjectsCount

string (int64)

Number of objects uploaded in multiple parts.

activeMultipartCount

string (int64)

Number of incomplete multipart uploads.

AnonymousAccessFlagsAnonymousAccessFlags

Field

Description

read

boolean

Specifies whether public (anonymous) access to read objects in the bucket is enabled.

list

boolean

Specifies whether public (anonymous) access to the list of objects in the bucket is enabled.

configRead

boolean

Specifies whether public (anonymous) access to read CORS,
static website hosting, and
object lifecycles settings of the bucket is enabled.

Was the article helpful?

Previous
Delete
Next
GetHTTPSConfig
Yandex project
© 2025 Yandex.Cloud LLC