Yandex Cloud
КейсыДокументация
ПрезентацияСвязаться с намиНачать бесплатно
Создавайте контент и получайте гранты!Готовы написать своё руководство? Участвуйте в контент-программе и получайте гранты на работу с облачными сервисами!
Подробнее о программе
Сделано на Gravity UI
Проект Яндекса
© 2026 ООО «Яндекс.Облако»
Yandex BareMetal
    • Все инструкции
    • Обзор сервиса
    • Интеграции с другими сервисами Yandex Cloud
      • Обзор
      • Готовые конфигурации серверов
      • Своя конфигурация сервера
      • Конфигурация сервера по запросу
      • Обзор
      • Extend: Virtualization
      • Extend: Yandex Cloud Stackland
      • Extend: Managed Service for Kubernetes®
      • Обзор
      • Публичная сеть
      • Приватная сеть
      • DHCP
      • DNS в приватной сети
      • MC-LAG
      • Ограничения в сетях BareMetal
      • Обзор
      • Образы в Yandex BareMetal
      • Управление доступом
      • Дополнительные настройки серверов
      • Консоль управления
        • Аутентификация в API
            • Overview
              • Overview
              • GetDefault
              • BatchGetDefault
      • Метрики Monium Metrics
    • Квоты и лимиты
  • Правила тарификации
  • История изменений
  • Вопросы и ответы

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

  • gRPC request
  • BatchGetDefaultStoragesRequest
  • BatchGetDefaultStoragesResponse
  • DefaultStorage
  • Storage
  • Disk
  • Raid
  • StoragePartition
  1. Концепции
  2. Настройка и управление
  3. Справочник API
  4. API v1alpha
  5. gRPC (англ.)
  6. Storage
  7. BatchGetDefault

BareMetal API, gRPC: StorageService.BatchGetDefault

Статья создана
Yandex Cloud
Обновлена 6 ноября 2026 г.
Открыть в Markdown
  • gRPC request
  • BatchGetDefaultStoragesRequest
  • BatchGetDefaultStoragesResponse
  • DefaultStorage
  • Storage
  • Disk
  • Raid
  • StoragePartition

Returns the default storages for the specified configurations.

gRPC requestgRPC request

rpc BatchGetDefault (BatchGetDefaultStoragesRequest) returns (BatchGetDefaultStoragesResponse)

BatchGetDefaultStoragesRequestBatchGetDefaultStoragesRequest

{
  "configuration_ids": [
    "string"
  ]
}

Field

Description

configuration_ids[]

string

List of configuration IDs.

Each value must match the regular expression [a-z][a-z0-9]*. The number of elements must be in the range 1-100.

BatchGetDefaultStoragesResponseBatchGetDefaultStoragesResponse

{
  "default_storages": [
    {
      "configuration_id": "string",
      "storages": [
        {
          // Includes only one of the fields `disk`, `raid`
          "disk": {
            "id": "string",
            "type": "DiskDriveType",
            "size_gib": "int64",
            "size_bytes": "int64"
          },
          "raid": {
            "type": "RaidType",
            "disks": [
              {
                "id": "string",
                "type": "DiskDriveType",
                "size_gib": "int64",
                "size_bytes": "int64"
              }
            ]
          },
          // end of the list of possible fields
          "partitions": [
            {
              "type": "StoragePartitionType",
              "size_gib": "int64",
              "mount_point": "string",
              "size_bytes": "int64"
            }
          ]
        }
      ]
    }
  ]
}

Field

Description

default_storages[]

DefaultStorage

List of default storages.

DefaultStorageDefaultStorage

Field

Description

configuration_id

string

ID of the configuration.
To get the configuration ID, use a ConfigurationService.List request.

storages[]

Storage

List of default storages.

StorageStorage

Storage, a OS-level storage entity used for creating partitions. For example, this could
represent a plain disk or a software RAID of disks.

Field

Description

disk

Disk

Disk storage.

Includes only one of the fields disk, raid.

Storage type.

raid

Raid

RAID storage.

Includes only one of the fields disk, raid.

Storage type.

partitions[]

StoragePartition

Array of partitions created on the storage.

DiskDisk

Disk.

Field

Description

id

string

ID of the disk.

type

enum DiskDriveType

Type of the disk drive.

  • HDD: Hard disk drive (magnetic storage).
  • SSD: Solid state drive with SATA/SAS interface.
  • NVME: Solid state drive with NVMe interface.

size_gib

int64

Deprecated. Size of the disk in gibibytes (2^30 bytes). Use size_bytes instead.

size_bytes

int64

Size in bytes.

RaidRaid

RAID storage.

Field

Description

type

enum RaidType

RAID type.

  • RAID0: RAID0 configuration.
  • RAID1: RAID1 configuration.
  • RAID10: RAID10 configuration.

disks[]

Disk

Array of disks in the RAID configuration.

StoragePartitionStoragePartition

Field

Description

type

enum StoragePartitionType

Partition type.

  • EXT4: ext4 file system partition type.
  • SWAP: Swap partition type.
  • EXT3: ext3 file system partition type.
  • XFS: XFS file system partition type.

size_gib

int64

Deprecated. Size of the storage partition in gibibytes (2^30 bytes). Use size_bytes instead.

mount_point

string

Storage mount point.

size_bytes

int64

Size in bytes.

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

Предыдущая
GetDefault
Следующая
Overview
Создавайте контент и получайте гранты!Готовы написать своё руководство? Участвуйте в контент-программе и получайте гранты на работу с облачными сервисами!
Подробнее о программе
Сделано на Gravity UI
Проект Яндекса
© 2026 ООО «Яндекс.Облако»