Compute Cloud API, gRPC: HostGroupService.List
Retrieves the list of host groups in the specified folder.
gRPC request
rpc List (ListHostGroupsRequest) returns (ListHostGroupsResponse)
ListHostGroupsRequest
{
"folder_id": "string",
"page_size": "int64",
"page_token": "string",
"filter": "string",
"order_by": "string"
}
Field |
Description |
folder_id |
string Required field. ID of the folder to list host groups in. |
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, |
filter |
string A filter expression that filters resources listed in the response. Each condition has the form
|
order_by |
string By which column the listing should be ordered and in which direction, |
ListHostGroupsResponse
{
"host_groups": [
{
"id": "string",
"folder_id": "string",
"created_at": "google.protobuf.Timestamp",
"name": "string",
"description": "string",
"labels": "map<string, string>",
"zone_id": "string",
"status": "Status",
"type_id": "string",
"maintenance_policy": "MaintenancePolicy",
"scale_policy": {
// Includes only one of the fields `fixed_scale`
"fixed_scale": {
"size": "int64"
}
// end of the list of possible fields
}
}
],
"next_page_token": "string"
}
Field |
Description |
host_groups[] |
Lists host groups for the specified folder. |
next_page_token |
string This token allows you to get the next page of results for list requests. If the number of results |
HostGroup
Represents group of dedicated hosts
Field |
Description |
id |
string ID of the group. |
folder_id |
string ID of the folder that the group belongs to. |
created_at |
Creation timestamp in RFC3339 |
name |
string Name of the group. The name is unique within the folder. |
description |
string Description of the group. |
labels |
object (map<string, string>) Resource labels as |
zone_id |
string Availability zone where all dedicated hosts are allocated. |
status |
enum Status Status of the group.
|
type_id |
string ID of host type. Resources provided by each host of the group. |
maintenance_policy |
enum MaintenancePolicy Behaviour on maintenance events.
|
scale_policy |
Scale policy. Only fixed number of hosts are supported at this moment. |
ScalePolicy
Field |
Description |
fixed_scale |
Includes only one of the fields |
FixedScale
Field |
Description |
size |
int64 |