Managed Service for OpenSearch API, REST: Cluster.ListHosts
Retrieves a list of hosts for the specified cluster.
HTTP request
GET https://mdb.api.cloud.yandex.net/managed-opensearch/v1/clusters/{clusterId}/hosts
Path parameters
Field |
Description |
clusterId |
string Required field. ID of the OpenSearch cluster. |
Query parameters
Field |
Description |
pageSize |
string (int64) The maximum number of results per page to return. If the number of available results is larger than |
pageToken |
string Page token. To get the next page of results, set |
Response
HTTP Code: 200 - OK
{
"hosts": [
{
"name": "string",
"clusterId": "string",
"zoneId": "string",
"resources": {
"resourcePresetId": "string",
"diskSize": "string",
"diskTypeId": "string"
},
"type": "string",
"health": "string",
"subnetId": "string",
"assignPublicIp": "boolean",
"system": {
"cpu": {
"timestamp": "string",
"used": "string"
},
"memory": {
"timestamp": "string",
"used": "string",
"total": "string"
},
"disk": {
"timestamp": "string",
"used": "string",
"total": "string"
}
},
"nodeGroup": "string",
"roles": [
"string"
]
}
],
"nextPageToken": "string"
}
Field |
Description |
hosts[] |
Requested list of hosts for the cluster. |
nextPageToken |
string This token allows you to get the next page of results for list requests. If the number of results is larger than ListClusterHostsRequest.pageSize, use the Each subsequent list request has its own |
Host
An OpenSearch cluster host resource.
Field |
Description |
name |
string Required. Name of the OpenSearch host. The host name is assigned by the platform at creation time and cannot be changed. The name is unique across all MDB hosts that exist on the platform, as it defines the FQDN of the host. |
clusterId |
string Required. ID of the OpenSearch cluster. The ID is assigned by the platform at creation time. |
zoneId |
string ID of the availability zone the OpenSearch host belongs to. |
resources |
Resources allocated to the OpenSearch host. |
type |
enum (Type) Type of the host. If the field has default value, it is not returned in the response.
|
health |
enum (Health) Aggregated health of the host. If the field has default value, it is not returned in the response.
|
subnetId |
string ID of the subnet that the host belongs to. |
assignPublicIp |
boolean Determines whether a public IP is assigned to the host. |
system |
Resources used by the host. |
nodeGroup |
string Name of the host group that the host belongs to. |
roles[] |
enum (GroupRole) Roles of the host.
|
Resources
A list of computational resources allocated to a host.
Field |
Description |
resourcePresetId |
string ID of the preset for computational resources allocated to a host. |
diskSize |
string (int64) Volume of the storage used by the host, in bytes. |
diskTypeId |
string Type of the storage used by the host: |
SystemMetrics
Resources used by the host.
Field |
Description |
cpu |
CPU usage of the host. |
memory |
RAM usage of the host. |
disk |
Disk usage of the host. |
CPUMetric
CPU usage of the host.
Field |
Description |
timestamp |
string (int64) Time of the record. |
used |
string Percentage of the CPU used. |
MemoryMetric
RAM usage of the host.
Field |
Description |
timestamp |
string (int64) Time of the record. |
used |
string (int64) The amount of RAM used, in bytes. |
total |
string (int64) Total amount of RAM allocated to the host. |
DiskMetric
Disk usage of the host.
Field |
Description |
timestamp |
string (int64) Time of the record. |
used |
string (int64) The amount of disk space used, in bytes. |
total |
string (int64) Total amount of disk space allocated to the host. |