Compute Cloud API, REST: HostType.List
List avaliable host types.
HTTP request
GET https://compute.api.yandexcloud.kz/compute/v1/hostTypes
Query parameters
|
Field |
Description |
|
pageSize |
string (int64) The maximum number of results per page to return. If the number of available |
|
pageToken |
string Page token. To get the next page of results, |
Response
HTTP Code: 200 - OK
{
"hostTypes": [
{
"id": "string",
"cores": "string",
"memory": "string",
"disks": "string",
"diskSize": "string"
}
],
"nextPageToken": "string"
}
|
Field |
Description |
|
hostTypes[] |
Lists host types. |
|
nextPageToken |
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 |
string (int64) Total number of cores available for instances. |
|
memory |
string (int64) Ammount of memory available for instances. |
|
disks |
string (int64) Number of local disks available for instances |
|
diskSize |
string (int64) Size of each local disk |