Compute Cloud API, gRPC: HostTypeService.Get
Written by
Updated at October 17, 2024
Returns information about specified host type.
gRPC request
rpc Get (GetHostTypeRequest) returns (HostType)
GetHostTypeRequest
{
"hostTypeId": "string"
}
Field |
Description |
hostTypeId |
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",
"diskSize": "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 |
diskSize |
int64 Size of each local disk |