Compute Cloud API, REST: HostType.list
List avaliable host types.
HTTP request
GET https://compute.api.cloud.yandex.net/compute/v1/hostTypes
Query parameters
Parameter | Description |
---|---|
pageSize | The maximum number of results per page to return. If the number of available results is larger than pageSize, the service returns a nextPageToken that can be used to get the next page of results in subsequent list requests. The maximum value is 1000. |
pageToken | Page token. To get the next page of results, set pageToken to the nextPageToken returned by a previous list request. The maximum string length in characters is 100. |
Response
HTTP Code: 200 - OK
{
"hostTypes": [
{
"id": "string",
"cores": "string",
"memory": "string",
"disks": "string",
"diskSize": "string"
}
],
"nextPageToken": "string"
}
Field | Description |
---|---|
hostTypes[] | object Lists host types. |
hostTypes[]. id |
string Unique type identifier. |
hostTypes[]. cores |
string (int64) Total number of cores available for instances. |
hostTypes[]. memory |
string (int64) Ammount of memory available for instances. |
hostTypes[]. disks |
string (int64) Number of local disks available for instances |
hostTypes[]. diskSize |
string (int64) Size of each local disk |
nextPageToken | string Token for getting the next page of the list. If the number of results is greater than the specified pageSize, use Each subsequent page will have its own |