Yandex Cloud
Поиск
Связаться с намиПодключиться
  • Документация
  • Блог
  • Все сервисы
  • Статус работы сервисов
    • Популярные
    • Инфраструктура и сеть
    • Платформа данных
    • Контейнеры
    • Инструменты разработчика
    • Бессерверные вычисления
    • Безопасность
    • Мониторинг и управление ресурсами
    • Машинное обучение
    • Бизнес-инструменты
  • Все решения
    • По отраслям
    • По типу задач
    • Экономика платформы
    • Безопасность
    • Техническая поддержка
    • Каталог партнёров
    • Обучение и сертификация
    • Облако для стартапов
    • Облако для крупного бизнеса
    • Центр технологий для общества
    • Облако для интеграторов
    • Поддержка IT-бизнеса
    • Облако для фрилансеров
    • Обучение и сертификация
    • Блог
    • Документация
    • Контент-программа
    • Мероприятия и вебинары
    • Контакты, чаты и сообщества
    • Идеи
    • Истории успеха
    • Тарифы Yandex Cloud
    • Промоакции и free tier
    • Правила тарификации
  • Документация
  • Блог
Проект Яндекса
© 2025 ООО «Яндекс.Облако»
Yandex Object Storage
  • Справочник Terraform
    • Аутентификация в API
        • Overview
          • Overview
          • List
          • Get
          • Create
          • Update
          • Delete
          • GetStats
          • GetHTTPSConfig
          • SetHTTPSConfig
          • DeleteHTTPSConfig
  • Метрики Monitoring
  • Аудитные логи Audit Trails
  • Логи бакета
  • История изменений
  • Вопросы и ответы
  • Обучающие курсы

В этой статье:

  • HTTP request
  • Path parameters
  • Response
  • OptionalSizeByClass
  • SizeByClass
  • CountersByClass
  • Counters
  • AnonymousAccessFlags
  1. Справочник API
  2. gRPC и REST
  3. REST (англ.)
  4. Bucket
  5. GetStats

Object Storage API, REST: Bucket.GetStats

Статья создана
Yandex Cloud
Обновлена 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.

Была ли статья полезна?

Предыдущая
Delete
Следующая
GetHTTPSConfig
Проект Яндекса
© 2025 ООО «Яндекс.Облако»