BareMetal API, gRPC: ConfigurationService.ResolveConfigurationsDefaultStorages
Returns the default storages for the specified configurations.
https://google.aip.dev/130 --)
https://google.aip.dev/130 --)
https://google.aip.dev/130 --)
gRPC request
rpc ResolveConfigurationsDefaultStorages (ResolveConfigurationsDefaultStoragesRequest) returns (ResolveConfigurationsDefaultStoragesResponse)
ResolveConfigurationsDefaultStoragesRequest
{
"configuration_ids": [
"string"
]
}
|
Field |
Description |
|
configuration_ids[] |
string List of configuration IDs. Each value must match the regular expression |
ResolveConfigurationsDefaultStoragesResponse
{
"default_storages": [
{
"configuration_id": "string",
"storages": [
{
"partitions": [
{
"type": "StoragePartitionType",
"size_bytes": "int64",
"mount_point": "string"
}
],
// Includes only one of the fields `disk`, `raid`
"disk": {
"id": "string",
"type": "DiskDriveType",
"size_bytes": "int64"
},
"raid": {
"type": "RaidType",
"disks": [
{
"id": "string",
"type": "DiskDriveType",
"size_bytes": "int64"
}
]
}
// end of the list of possible fields
}
]
}
]
}
|
Field |
Description |
|
default_storages[] |
List of default storages. |
DefaultStorage
|
Field |
Description |
|
configuration_id |
string ID of the configuration. |
|
storages[] |
List of default storages. |
Storage
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 |
|
partitions[] |
Array of partitions created on the storage. |
|
disk |
Disk storage. Includes only one of the fields Storage type. |
|
raid |
RAID storage. Includes only one of the fields Storage type. |
StoragePartition
|
Field |
Description |
|
type |
enum StoragePartitionType Partition type.
|
|
size_bytes |
int64 Size of the storage partition. |
|
mount_point |
string Storage mount point. |
Disk
Disk.
|
Field |
Description |
|
id |
string ID of the disk. |
|
type |
enum DiskDriveType Type of the disk drive.
|
|
size_bytes |
int64 Size of the disk. |
Raid
RAID storage.
|
Field |
Description |
|
type |
enum RaidType RAID type.
|
|
disks[] |
Array of disks in the RAID configuration. |