BareMetal API, REST: Server.Get
Returns the specific Server resource.
To get the list of available Server resources, make a List request.
HTTP request
GET https://baremetal.api.cloud.yandex.net/baremetal/v1alpha/servers/{serverId}
Path parameters
|
Field |
Description |
|
serverId |
string Required field. ID of the Server resource to return. To get the server ID, use a ServerService.List request. |
Response
HTTP Code: 200 - OK
{
"id": "string",
"cloudId": "string",
"folderId": "string",
"name": "string",
"description": "string",
"zoneId": "string",
"hardwarePoolId": "string",
"status": "string",
"osSettings": {
"imageId": "string",
"sshPublicKey": "string",
"storages": [
{
"partitions": [
{
"type": "string",
"sizeGib": "string",
"mountPoint": "string"
}
],
// Includes only one of the fields `disk`, `raid`
"disk": {
"id": "string",
"type": "string",
"sizeGib": "string"
},
"raid": {
"type": "string",
"disks": [
{
"id": "string",
"type": "string",
"sizeGib": "string"
}
]
}
// end of the list of possible fields
}
]
},
"networkInterfaces": [
{
"id": "string",
"macAddress": "string",
"ipAddress": "string",
// Includes only one of the fields `privateSubnet`, `publicSubnet`
"privateSubnet": {
"privateSubnetId": "string"
},
"publicSubnet": {
"publicSubnetId": "string"
}
// end of the list of possible fields
}
],
"configurationId": "string",
"disks": [
{
"id": "string",
"type": "string",
"sizeGib": "string"
}
],
"createdAt": "string",
"labels": "object"
}
A Server resource.
|
Field |
Description |
|
id |
string ID of the server. |
|
cloudId |
string ID of the cloud that the server belongs to. |
|
folderId |
string ID of the folder that the server belongs to. |
|
name |
string Name of the server. |
|
description |
string Description of the server. |
|
zoneId |
string ID of the availability zone where the server is resides. |
|
hardwarePoolId |
string ID of the hardware pool that the server belongs to. |
|
status |
enum (Status) Status of the server.
|
|
osSettings |
Operating system specific settings of the server. Optional, will be empty if the server is |
|
networkInterfaces[] |
Array of network interfaces that are attached to the instance. |
|
configurationId |
string ID of the configuration that was used to create the server. |
|
disks[] |
Array of disks that are attached to the server. |
|
createdAt |
string (date-time) Creation timestamp. String in RFC3339 To work with values in this field, use the APIs described in the |
|
labels |
object (map<string, string>) Resource labels as |
OsSettings
|
Field |
Description |
|
imageId |
string ID of the image that the server was created from. |
|
sshPublicKey |
string Public SSH key of the server. |
|
storages[] |
List of 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.
|
|
sizeGib |
string (int64) Size of the storage partition in gibibytes (2^30 bytes). |
|
mountPoint |
string Storage mount point. |
Disk
Disk.
|
Field |
Description |
|
id |
string ID of the disk. |
|
type |
enum (DiskDriveType) Type of the disk drive.
|
|
sizeGib |
string (int64) Size of the disk in gibibytes (2^30 bytes). |
Raid
RAID storage.
|
Field |
Description |
|
type |
enum (RaidType) RAID type.
|
|
disks[] |
Array of disks in the RAID configuration. |
NetworkInterface
|
Field |
Description |
|
id |
string ID of the network interface. |
|
macAddress |
string MAC address that is assigned to the network interface. |
|
ipAddress |
string IPv4 address that is assigned to the server for this network interface. |
|
privateSubnet |
Private subnet. Includes only one of the fields Subnet that the network interface belongs to. |
|
publicSubnet |
Public subnet. Includes only one of the fields Subnet that the network interface belongs to. |
PrivateSubnetNetworkInterface
|
Field |
Description |
|
privateSubnetId |
string ID of the private subnet. |
PublicSubnetNetworkInterface
|
Field |
Description |
|
publicSubnetId |
string ID of the public subnet. A new ephemeral public subnet will be created if not specified. |