Compute Cloud API, gRPC: HostTypeService.List
List avaliable host types.
gRPC request
rpc List (ListHostTypesRequest) returns (ListHostTypesResponse)
ListHostTypesRequest
{
"page_size": "int64",
"page_token": "string"
}
Field |
Description |
page_size |
int64 The maximum number of results per page to return. If the number of available |
page_token |
string Page token. To get the next page of results, |
ListHostTypesResponse
{
"host_types": [
{
"id": "string",
"cores": "int64",
"memory": "int64",
"disks": "int64",
"disk_size": "int64"
}
],
"next_page_token": "string"
}
Field |
Description |
host_types[] |
Lists host types. |
next_page_token |
string Token for getting the next page of the list. If the number of results is greater than Each subsequent page will have its own |
HostType
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 |