Yandex Cloud
Поиск
Связаться с экспертомПопробовать бесплатно
  • Кейсы
  • Документация
  • Блог
  • Все сервисы
    • Cloud Interconnect
    • Cloud Backup
    • Compute Cloud
    • Object Storage
    • Managed Service for Kubernetes®
    • Managed Service for PostgreSQL
    • Managed Service for ClickHouse®
    • Monium
    • Cloud CDN
    • Network Load Balancer
    • Virtual Private Cloud
    • Cloud DNS
    • Application Load Balancer
    • Yandex Cloud Router
    • Managed Service for MySQL®
    • Managed Service for Valkey™
    • Managed Service for Apache Spark™
    • Managed Service for OpenSearch
    • Managed Service for Apache Kafka®
    • Data Transfer
    • Yandex MPP Analytics Engine for PostgreSQL
    • Managed Service for YDB
    • SpeechKit
    • Yandex Identity Hub
    • Key Management Service
    • Certificate Manager
    • Yandex Lockbox
    • Audit Trails
    • Container Registry
    • Managed Service for Prometheus®
    • Message Queue
    • Identity and Access Management
    • Yandex Cloud Console
    • Resource Manager
    • Yandex Cloud Billing
    • Cloud Apps
    • Yandex AI Studio
    • Yandex BareMetal
    • Smart Web Security
    • Security Deck
    • Yandex Cloud Video
    • Stackland
    • Yandex StoreDoc
    • Yandex Managed Service for Apache Airflow®
    • Data Processing
    • Yandex MetaData Hub
    • Yandex WebSQL
    • DataLens
    • Yandex Search API
    • SpeechSense
    • DataSphere
    • Vision OCR
    • Translate
    • Cloud Registry
    • SmartCaptcha
    • Cloud Desktop
    • Yandex SIEM
    • SourceCraft Code Assistant
    • Managed Service for GitLab
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Serverless Integrations
    • IoT Core
    • Serverless Containers
    • Cloud Notification Service
    • Yandex Query
  • Статус работы сервисов
  • Marketplace
    • Доступны в регионе
    • Инфраструктура и сеть
    • Платформа данных
    • Искусственный интеллект
    • Безопасность
    • Инструменты DevOps
    • Бессерверные вычисления
    • Управление ресурсами
  • Все решения
    • По отраслям
    • По типу задач
    • Экономика платформы
    • Безопасность
    • Техническая поддержка
    • Каталог партнёров
    • Обучение и сертификация
    • Облако для стартапов
    • Облако для крупного бизнеса
    • Центр технологий для общества
    • Партнёрская программа
    • Поддержка IT-бизнеса
    • Облако для фрилансеров
    • Обучение и сертификация
    • Блог
    • Документация
    • Мероприятия и вебинары
    • Контакты, чаты и сообщества
    • Идеи
    • Калькулятор цен
    • Тарифы
    • Акции и free tier
  • Кейсы
  • Документация
  • Блог
Создавайте контент и получайте гранты!Готовы написать своё руководство? Участвуйте в контент-программе и получайте гранты на работу с облачными сервисами!
Подробнее о программе
Проект Яндекса
© 2026 ТОО «Облачные Сервисы Казахстан»
Yandex Object Storage
KZ
  • Правила тарификации
  • Справочник Terraform
    • Аутентификация в API
      • Overview
        • Overview
        • List
        • Get
        • Create
        • Update
        • Delete
        • GetStats
        • GetHTTPSConfig
        • SetHTTPSConfig
        • DeleteHTTPSConfig
        • SetAccessBindings
        • UpdateAccessBindings
        • ListAccessBindings
        • CreateInventoryConfiguration
        • GetInventoryConfiguration
        • DeleteInventoryConfiguration
        • ListInventoryConfigurations
  • Метрики Monitoring
  • Аудитные логи Audit Trails
  • Логи бакета
  • История изменений
  • Вопросы и ответы
  • Обучающие курсы

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

  • gRPC request
  • GetBucketStatsRequest
  • BucketStats
  • OptionalSizeByClass
  • SizeByClass
  • CountersByClass
  • Counters
  • AnonymousAccessFlags
  1. Справочник API
  2. Yandex Cloud gRPC (англ.)
  3. Bucket
  4. GetStats

Object Storage API, gRPC: BucketService.GetStats

Статья создана
Yandex Cloud
Обновлена 26 ноября 2024 г.
Открыть в Markdown
  • gRPC request
  • GetBucketStatsRequest
  • BucketStats
  • OptionalSizeByClass
  • SizeByClass
  • CountersByClass
  • Counters
  • AnonymousAccessFlags

Returns the statistics for the specified bucket.

gRPC requestgRPC request

rpc GetStats (GetBucketStatsRequest) returns (BucketStats)

GetBucketStatsRequestGetBucketStatsRequest

{
  "name": "string"
}

Field

Description

name

string

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

BucketStatsBucketStats

{
  "name": "string",
  "max_size": "google.protobuf.Int64Value",
  "used_size": "int64",
  "storage_class_max_sizes": [
    {
      "storage_class": "string",
      "class_size": "google.protobuf.Int64Value"
    }
  ],
  "storage_class_used_sizes": [
    {
      "storage_class": "string",
      "class_size": "int64"
    }
  ],
  "storage_class_counters": [
    {
      "storage_class": "string",
      "counters": {
        "simple_object_size": "int64",
        "simple_object_count": "int64",
        "objects_parts_size": "int64",
        "objects_parts_count": "int64",
        "multipart_objects_size": "int64",
        "multipart_objects_count": "int64",
        "active_multipart_count": "int64"
      }
    }
  ],
  "default_storage_class": "google.protobuf.StringValue",
  "anonymous_access_flags": {
    "read": "google.protobuf.BoolValue",
    "list": "google.protobuf.BoolValue",
    "config_read": "google.protobuf.BoolValue"
  },
  "created_at": "google.protobuf.Timestamp",
  "updated_at": "google.protobuf.Timestamp"
}

A bucket statistics resource.

Field

Description

name

string

Name of the bucket.

max_size

google.protobuf.Int64Value

Maximum size of the bucket, in bytes.

used_size

int64

Size of used space in the bucket, in bytes.

storage_class_max_sizes[]

OptionalSizeByClass

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

storage_class_used_sizes[]

SizeByClass

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

storage_class_counters[]

CountersByClass

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

default_storage_class

google.protobuf.StringValue

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.

anonymous_access_flags

AnonymousAccessFlags

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

created_at

google.protobuf.Timestamp

Bucket creation timestamp.

updated_at

google.protobuf.Timestamp

Bucket latest update timestamp.

OptionalSizeByClassOptionalSizeByClass

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

Field

Description

storage_class

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.

class_size

google.protobuf.Int64Value

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

storage_class

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.

class_size

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

storage_class

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

simple_object_size

int64

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

simple_object_count

int64

Number of objects uploaded in single operation.

objects_parts_size

int64

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

objects_parts_count

int64

Number of uploaded parts in incomplete multipart uploads.

multipart_objects_size

int64

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

multipart_objects_count

int64

Number of objects uploaded in multiple parts.

active_multipart_count

int64

Number of incomplete multipart uploads.

AnonymousAccessFlagsAnonymousAccessFlags

Field

Description

read

google.protobuf.BoolValue

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

list

google.protobuf.BoolValue

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

config_read

google.protobuf.BoolValue

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

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

Предыдущая
Delete
Следующая
GetHTTPSConfig
Создавайте контент и получайте гранты!Готовы написать своё руководство? Участвуйте в контент-программе и получайте гранты на работу с облачными сервисами!
Подробнее о программе
Проект Яндекса
© 2026 ТОО «Облачные Сервисы Казахстан»