BareMetal API, gRPC: ServerService.ReinstallServer
Reinstalls the specified server.
https://google.aip.dev/130 --)
Required for backward compatibility with old clients. --)
gRPC request
rpc ReinstallServer (ReinstallServerRequest) returns (operation.Operation)
ReinstallServerRequest
{
"cloud_id": "string",
"folder_id": "string",
"server_id": "string",
"os_settings": {
"image_id": "string",
"ssh_public_key": "string",
// Includes only one of the fields `ssh_public_key_text`, `user_ssh_id`
"ssh_public_key_text": "string",
"user_ssh_id": "string",
// end of the list of possible fields
// Includes only one of the fields `password_plain_text`, `password_lockbox_secret`
"password_plain_text": "string",
"password_lockbox_secret": {
"secret_id": "string",
"version_id": "string",
"key": "string"
},
// end of the list of possible fields
"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 |
|
cloud_id |
string ID of the parent cloud. To get the cloud ID, use a yandex.cloud.resourcemanager.v1.CloudService.List request. |
|
folder_id |
string ID of the parent folder. To get the folder ID, use a yandex.cloud.resourcemanager.v1.FolderService.List request. |
|
server_id |
string ID of the server to reinstall. To get the server ID, use a [ServerService.List] request. Value must match the regular expression |
|
os_settings |
Operating system specific settings for provisioning the server. |
OsSettings
|
Field |
Description |
|
image_id |
string ID of the image that the server was created from. |
|
ssh_public_key |
string Public SSH key of the server. |
|
ssh_public_key_text |
string Public SSH key for the server. Input only field. The maximum string length in characters is 20000. Includes only one of the fields Root user SSH key. Input only field. One of elements is required. |
|
user_ssh_id |
string ID of the user SSH key to use for the server. Input only field. To get the user SSH key ID, use a yandex.cloud.organizationmanager.v1.UserSshKeyService.List request. The maximum string length in characters is 50. Includes only one of the fields Root user SSH key. Input only field. One of elements is required. |
|
password_plain_text |
string Raw password. Input only field. The minimum string length in characters is 6. Includes only one of the fields Password for the server. Input only field. One of elements is required. |
|
password_lockbox_secret |
Reference to the Lockbox secret used to obtain the password. Input only field. Includes only one of the fields Password for the server. Input only field. One of elements is required. |
|
storages[] |
List of storages. If not specified, the default value based on the selected configuration will be used as the field value. |
LockboxSecret
|
Field |
Description |
|
secret_id |
string Required field. The unique identifier for the lockbox secret that contains the user password. |
|
version_id |
string The unique identifier for the lockbox version. |
|
key |
string Required field. The key used to access a specific secret entry. |
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. |
operation.Operation
{
"id": "string",
"description": "string",
"created_at": "google.protobuf.Timestamp",
"created_by": "string",
"modified_at": "google.protobuf.Timestamp",
"done": "bool",
"metadata": "google.protobuf.Any",
// Includes only one of the fields `error`, `response`
"error": "google.rpc.Status",
"response": "google.protobuf.Any"
// end of the list of possible fields
}
An Operation resource. For more information, see Operation.
|
Field |
Description |
|
id |
string ID of the operation. |
|
description |
string Description of the operation. 0-256 characters long. |
|
created_at |
Creation timestamp. |
|
created_by |
string ID of the user or service account who initiated the operation. |
|
modified_at |
The time when the Operation resource was last modified. |
|
done |
bool If the value is |
|
metadata |
Service-specific metadata associated with the operation. |
|
error |
The error result of the operation in case of failure or cancellation. Includes only one of the fields The operation result. |
|
response |
The normal response of the operation in case of success. Includes only one of the fields The operation result. |