Compute Cloud API, gRPC: HostTypeService.Get
Written by
Updated at November 26, 2024
Returns information about specified host type.
gRPC request
rpc Get (GetHostTypeRequest) returns (HostType)
GetHostTypeRequest
{
"host_type_id": "string"
}
Field |
Description |
host_type_id |
string Required field. ID of the host type to return. To get a host type ID make a HostTypeService.List request. |
HostType
{
"id": "string",
"cores": "int64",
"memory": "int64",
"disks": "int64",
"disk_size": "int64"
}
Represents host resources.
Note: Platform can use hosts with different number of memory and cores.
TODO: Do we need sockets here?
Field |
Description |
id |
string Unique type identifier. |
cores |
int64 Total number of cores available for instances. |
memory |
int64 Ammount of memory available for instances. |
disks |
int64 Number of local disks available for instances |
disk_size |
int64 Size of each local disk |