2022-04-22 12:39:12 -04:00
---
layout: default
title: Nodes info
parent: Nodes APIs
grand_parent: REST API reference
nav_order: 20
---
# Nodes info
2022-05-18 11:34:34 -04:00
Represents mostly static information about your cluster's nodes, including but not limited to:
- Host system information
- JVM
- Processor Type
- Node settings
- Thread pools settings
- Installed plugins
2022-04-22 12:39:12 -04:00
## Example
2022-05-18 11:34:34 -04:00
To get information on all nodes in a cluster:
```bash
2022-04-22 12:39:12 -04:00
GET /_nodes
2022-05-18 11:34:34 -04:00
```
To get thread pool information from the cluster manager node only:
2022-04-22 12:39:12 -04:00
2022-05-18 11:34:34 -04:00
```bash
2022-04-22 12:39:12 -04:00
GET /_nodes/master:true/thread_pool?pretty
```
## Path and HTTP methods
2022-05-18 11:34:34 -04:00
```bash
2022-04-22 12:39:12 -04:00
GET /_nodes
GET /_nodes/{nodeId}
GET /_nodes/{metrics}
GET /_nodes/{nodeId}/{metrics}
# or full path equivalent
GET /_nodes/{nodeId}/info/{metrics}
```
## URL parameters
You can include the following URL parameters in your request. All parameters are optional.
Parameter | Type | Description
:--- |:-------| :---
2022-05-20 05:36:23 -04:00
nodeId | String | A comma-separated list of nodeIds to filter results. Supports [node filters ]({{site.url}}{{site.baseurl}}/opensearch/rest-api/nodes-apis/index/#node-filters ). Defaults to `_all` .
2022-05-18 11:34:34 -04:00
metrics | String | A comma-separated list of metric groups that will be included in the response. For example `jvm,thread_pools` . Defaults to all metrics.
2022-05-20 05:36:23 -04:00
timeout | TimeValue | A request [timeout ]({{site.url}}{{site.baseurl}}/opensearch/rest-api/nodes-apis/index/#timeout ). Defaults to `30s` .
2022-04-22 12:39:12 -04:00
2022-05-18 11:34:34 -04:00
The following are listed for all available metric groups:
2022-04-22 12:39:12 -04:00
Metric | Description
:--- |:----
2022-05-20 05:36:23 -04:00
`settings` | A node's settings. This is combination of the default settings, custom settings from [configuration file ]({{site.url}}{{site.baseurl}}/opensearch/configuration/#configuration-file ) and dynamically [updated settings ]({{site.url}}{{site.baseurl}}/opensearch/configuration/#update-cluster-settings-using-the-api ).
2022-05-18 14:00:47 -04:00
`os` | Static information about the host OS, including version, processor architecture and available/allocated processors.
`process` | Contains process OD.
2022-04-22 12:39:12 -04:00
`jvm` | Detailed static information about running JVM, including arguments.
2022-05-18 14:00:47 -04:00
`thread_pool` | Configured options for all individual thread pools.
2022-05-19 11:23:12 -04:00
`transport` | Mostly static information about the transport layer.
`http` | Mostly static information about the HTTP layer.
2022-04-22 12:39:12 -04:00
`plugins` | Information about installed plugins and modules.
2022-05-18 14:00:47 -04:00
`ingest` | Information about ingest pipelines and available ingest processors.
2022-05-20 05:36:23 -04:00
`aggregations` | Information about available [aggregations ]({{site.url}}{{site.baseurl}}/opensearch/aggregations ).
2022-04-22 12:39:12 -04:00
`indices` | Static index settings configured at the node level.
## Response
The response contains basic node identification and build info for every node
matching the `{nodeId}` request parameter.
Metric | Description
:--- |:----
name | A node name.
transport_address | A node transport address.
host | A node host address.
ip | A node host ip address.
version | A node OpenSearch version.
2022-05-18 11:34:34 -04:00
build_type | A build type, like `rpm` ,`docker`, `zip` , etc.
2022-04-22 12:39:12 -04:00
build_hash | A git commit hash of the build.
2022-05-19 11:23:12 -04:00
roles | A node's role.
2022-04-22 12:39:12 -04:00
attributes | A node attributes.
2022-05-19 11:23:12 -04:00
The response also contains one or more metric groups, depending on the `{metrics}` request parameter.
2022-04-22 12:39:12 -04:00
```json
GET /_nodes/master:true/process,transport?pretty
{
"_nodes": {
"total": 1,
"successful": 1,
"failed": 0
},
"cluster_name": "opensearch",
"nodes": {
"VC0d4RgbTM6kLDwuud2XZQ": {
"name": "node-m1-23",
"transport_address": "127.0.0.1:9300",
"host": "127.0.0.1",
"ip": "127.0.0.1",
"version": "1.3.1",
"build_type": "tar",
"build_hash": "c4c0672877bf0f787ca857c7c37b775967f93d81",
"roles": [
"data",
"ingest",
"master",
"remote_cluster_client"
],
"attributes": {
"shard_indexing_pressure_enabled": "true"
},
"process" : {
"refresh_interval_in_millis": 1000,
"id": 44584,
"mlockall": false
},
"transport": {
"bound_address": [
"[::1]:9300",
"127.0.0.1:9300"
],
"publish_address": "127.0.0.1:9300",
"profiles": { }
}
}
}
}
```
## Required permissions
2022-05-18 11:34:34 -04:00
If you use the security plugin, make sure you have the appropriate permissions: `cluster:monitor/nodes/info` .