Compute Cloud API, gRPC: HostTypeService
Set of methods to view possible host configurations.
Call | Description |
---|---|
Get | Returns information about specified host type. |
List | List avaliable host types. |
Calls HostTypeService
Get
Returns information about specified host type.
rpc Get (GetHostTypeRequest) returns (HostType)
GetHostTypeRequest
Field | Description |
---|---|
host_type_id | string Required. ID of the host type to return. To get a host type ID make a HostTypeService.List request. The maximum string length in characters is 50. |
HostType
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 |
List
List avaliable host types.
rpc List (ListHostTypesRequest) returns (ListHostTypesResponse)
ListHostTypesRequest
Field | Description |
---|---|
page_size | int64 The maximum number of results per page to return. If the number of available results is larger than page_size , the service returns a ListHostTypesResponse.next_page_token that can be used to get the next page of results in subsequent list requests. The maximum value is 1000. |
page_token | string Page token. To get the next page of results, set page_token to the ListHostTypesResponse.next_page_token returned by a previous list request. The maximum string length in characters is 100. |
ListHostTypesResponse
Field | Description |
---|---|
host_types[] | HostType Lists host types. |
next_page_token | string Token for getting the next page of the list. If the number of results is greater than the specified ListHostTypesRequest.page_size, use next_page_token as the value for the ListHostTypesRequest.page_token parameter in the next list request. Each subsequent page will have its own next_page_token to continue paging through the results. |
HostType
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 |