Managed Service for SPQR API, gRPC: ClusterService.ListHosts
Retrieves a list of hosts for the specified cluster.
gRPC request
rpc ListHosts (ListClusterHostsRequest) returns (ListClusterHostsResponse)
ListClusterHostsRequest
{
"cluster_id": "string",
"page_size": "int64",
"page_token": "string"
}
|
Field |
Description |
|
cluster_id |
string Required field. ID of the SPQR cluster. The maximum string length in characters is 50. |
|
page_size |
int64 The maximum number of results per page to return. If the number of available The maximum value is 1000. |
|
page_token |
string Page token. To get the next page of results, set The maximum string length in characters is 100. |
ListClusterHostsResponse
{
"hosts": [
{
"name": "string",
"cluster_id": "string",
"zone_id": "string",
"resources": {
"resource_preset_id": "string",
"disk_size": "int64",
"disk_type_id": "string"
},
"role": "Role",
"health": "Health",
"services": [
{
"type": "Type",
"health": "Health"
}
],
"subnet_id": "string",
"assign_public_ip": "bool",
"type": "Type",
"walle_link": "string",
"state_reason": "string",
"system": {
"cpu": {
"timestamp": "int64",
"used": "double"
},
"memory": {
"timestamp": "int64",
"used": "int64",
"total": "int64"
},
"disk": {
"timestamp": "int64",
"used": "int64",
"total": "int64"
}
},
"shard_name": "string"
}
],
"next_page_token": "string"
}
|
Field |
Description |
|
hosts[] |
List of Host resources. |
|
next_page_token |
string This token allows you to get the next page of results for list requests. If the number of results |
Host
|
Field |
Description |
|
name |
string Name of the SPQR host. The host name is assigned by MDB at creation time, and cannot be changed. |
|
cluster_id |
string The ID of the SPQR cluster that the host belongs to. |
|
zone_id |
string ID of the availability zone where the SPQR host resides. |
|
resources |
Resources allocated to the SPQR host. |
|
role |
enum Role Role of the host in the cluster.
|
|
health |
enum Health Status code of the aggregated health of the host.
|
|
services[] |
Services provided by the host. |
|
subnet_id |
string ID of the subnet that the host belongs to. |
|
assign_public_ip |
bool Flag showing public IP assignment status to this host. |
|
type |
enum Type Host type
|
|
walle_link |
string link to wall-e (porto only) |
|
state_reason |
string host state reason from cms (porto only) |
|
system |
System metrics |
|
shard_name |
string Shard which this host belongs to. |
Resources
|
Field |
Description |
|
resource_preset_id |
string ID of the preset for computational resources available to a host (CPU, memory etc.). |
|
disk_size |
int64 Volume of the storage available to a host, in bytes. |
|
disk_type_id |
string Type of the storage environment for the host.
|
Service
|
Field |
Description |
|
type |
enum Type Type of the service provided by the host.
|
|
health |
enum Health Status code of server availability.
|
SystemMetrics
|
Field |
Description |
|
cpu |
|
|
memory |
|
|
disk |
CPUMetric
|
Field |
Description |
|
timestamp |
int64 |
|
used |
double |
MemoryMetric
|
Field |
Description |
|
timestamp |
int64 |
|
used |
int64 |
|
total |
int64 |
DiskMetric
|
Field |
Description |
|
timestamp |
int64 |
|
used |
int64 |
|
total |
int64 |