@@ -6,9 +6,10 @@ the cluster nodes information.
6
6
7
7
[source,js]
8
8
--------------------------------------------------
9
- curl -XGET 'http://localhost:9200/ _nodes'
10
- curl -XGET 'http://localhost:9200/ _nodes/nodeId1,nodeId2'
9
+ GET / _nodes
10
+ GET / _nodes/nodeId1,nodeId2
11
11
--------------------------------------------------
12
+ // CONSOLE
12
13
13
14
The first command retrieves information of all the nodes in the cluster.
14
15
The second command selectively retrieves nodes information of only
@@ -52,14 +53,22 @@ It also allows to get only information on `settings`, `os`, `process`, `jvm`,
52
53
53
54
[source,js]
54
55
--------------------------------------------------
55
- curl -XGET 'http://localhost:9200/_nodes/process'
56
- curl -XGET 'http://localhost:9200/_nodes/_all/process'
57
- curl -XGET 'http://localhost:9200/_nodes/nodeId1,nodeId2/jvm,process'
56
+ # return just process
57
+ GET /_nodes/process
58
+
59
+ # same as above
60
+ GET /_nodes/_all/process
61
+
62
+ # return just jvm and process of only nodeId1 and nodeId2
63
+ GET /_nodes/nodeId1,nodeId2/jvm,process
64
+
58
65
# same as above
59
- curl -XGET 'http://localhost:9200/ _nodes/nodeId1,nodeId2/info/jvm,process'
66
+ GET / _nodes/nodeId1,nodeId2/info/jvm,process
60
67
61
- curl -XGET 'http://localhost:9200/_nodes/nodeId1,nodeId2/_all
68
+ # return all the information of only nodeId1 and nodeId2
69
+ GET /_nodes/nodeId1,nodeId2/_all
62
70
--------------------------------------------------
71
+ // CONSOLE
63
72
64
73
The `_all` flag can be set to return all the information - or you can simply omit it.
65
74
@@ -110,23 +119,36 @@ the current running process:
110
119
[[plugins-info]]
111
120
==== Plugins information
112
121
113
- `plugins` - if set, the result will contain details about the installed plugins
114
- per node:
122
+ `plugins` - if set, the result will contain details about the installed plugins and modules per node:
115
123
116
- * `name`: plugin name
117
- * `version`: version of Elasticsearch the plugin was built for
118
- * `description`: short description of the plugin's purpose
119
- * `classname`: fully-qualified class name of the plugin's entry point
120
- * `has_native_controller`: whether or not the plugin has a native controller process
124
+ [source,js]
125
+ --------------------------------------------------
126
+ GET /_nodes/plugins
127
+ --------------------------------------------------
128
+ // CONSOLE
129
+ // TEST[setup:node]
121
130
122
131
The result will look similar to:
123
132
124
133
[source,js]
125
134
--------------------------------------------------
126
135
{
136
+ "_nodes": ...
127
137
"cluster_name": "elasticsearch",
128
138
"nodes": {
129
- "O70_wBv6S9aPPcAKdSUBtw": {
139
+ "USpTGYaBSIKbgSUJR2Z9lg": {
140
+ "name": "node-0",
141
+ "transport_address": "192.168.17:9300",
142
+ "host": "node-0.elastic.co",
143
+ "ip": "192.168.17",
144
+ "version": "{version}",
145
+ "build_hash": "587409e",
146
+ "roles": [
147
+ "master",
148
+ "data",
149
+ "ingest"
150
+ ],
151
+ "attributes": {},
130
152
"plugins": [
131
153
{
132
154
"name": "analysis-icu",
@@ -149,11 +171,41 @@ The result will look similar to:
149
171
"classname": "org.elasticsearch.ingest.useragent.IngestUserAgentPlugin",
150
172
"has_native_controller": false
151
173
}
174
+ ],
175
+ "modules": [
176
+ {
177
+ "name": "lang-painless",
178
+ "version": "{version}",
179
+ "description": "An easy, safe and fast scripting language for Elasticsearch",
180
+ "classname": "org.elasticsearch.painless.PainlessPlugin",
181
+ "has_native_controller": false
182
+ }
152
183
]
153
184
}
154
185
}
155
186
}
156
187
--------------------------------------------------
188
+ // TESTRESPONSE[s/"_nodes": \.\.\./"_nodes": $body.$_path,/]
189
+ // TESTRESPONSE[s/"elasticsearch"/$body.cluster_name/]
190
+ // TESTRESPONSE[s/"USpTGYaBSIKbgSUJR2Z9lg"/\$node_name/]
191
+ // TESTRESPONSE[s/"name": "node-0"/"name": $body.$_path/]
192
+ // TESTRESPONSE[s/"transport_address": "192.168.17:9300"/"transport_address": $body.$_path/]
193
+ // TESTRESPONSE[s/"host": "node-0.elastic.co"/"host": $body.$_path/]
194
+ // TESTRESPONSE[s/"ip": "192.168.17"/"ip": $body.$_path/]
195
+ // TESTRESPONSE[s/"build_hash": "587409e"/"build_hash": $body.$_path/]
196
+ // TESTRESPONSE[s/"roles": \[[^\]]*\]/"roles": $body.$_path/]
197
+ // TESTRESPONSE[s/"attributes": \{[^\}]*\}/"attributes": $body.$_path/]
198
+ // TESTRESPONSE[s/"plugins": \[[^\]]*\]/"plugins": $body.$_path/]
199
+ // TESTRESPONSE[s/"modules": \[[^\]]*\]/"modules": $body.$_path/]
200
+
201
+ The following information are available for each plugin and module:
202
+
203
+ * `name`: plugin name
204
+ * `version`: version of Elasticsearch the plugin was built for
205
+ * `description`: short description of the plugin's purpose
206
+ * `classname`: fully-qualified class name of the plugin's entry point
207
+ * `has_native_controller`: whether or not the plugin has a native controller process
208
+
157
209
158
210
[float]
159
211
[[ingest-info]]
@@ -162,16 +214,30 @@ The result will look similar to:
162
214
`ingest` - if set, the result will contain details about the available
163
215
processors per node:
164
216
165
- * `type`: the processor type
217
+ [source,js]
218
+ --------------------------------------------------
219
+ GET /_nodes/ingest
220
+ --------------------------------------------------
221
+ // CONSOLE
222
+ // TEST[setup:node]
166
223
167
224
The result will look similar to:
168
225
169
226
[source,js]
170
227
--------------------------------------------------
171
228
{
229
+ "_nodes": ...
172
230
"cluster_name": "elasticsearch",
173
231
"nodes": {
174
- "O70_wBv6S9aPPcAKdSUBtw": {
232
+ "USpTGYaBSIKbgSUJR2Z9lg": {
233
+ "name": "node-0",
234
+ "transport_address": "192.168.17:9300",
235
+ "host": "node-0.elastic.co",
236
+ "ip": "192.168.17",
237
+ "version": "{version}",
238
+ "build_hash": "587409e",
239
+ "roles": [],
240
+ "attributes": {},
175
241
"ingest": {
176
242
"processors": [
177
243
{
@@ -221,4 +287,19 @@ The result will look similar to:
221
287
}
222
288
}
223
289
}
224
- --------------------------------------------------
290
+ --------------------------------------------------
291
+ // TESTRESPONSE[s/"_nodes": \.\.\./"_nodes": $body.$_path,/]
292
+ // TESTRESPONSE[s/"elasticsearch"/$body.cluster_name/]
293
+ // TESTRESPONSE[s/"USpTGYaBSIKbgSUJR2Z9lg"/\$node_name/]
294
+ // TESTRESPONSE[s/"name": "node-0"/"name": $body.$_path/]
295
+ // TESTRESPONSE[s/"transport_address": "192.168.17:9300"/"transport_address": $body.$_path/]
296
+ // TESTRESPONSE[s/"host": "node-0.elastic.co"/"host": $body.$_path/]
297
+ // TESTRESPONSE[s/"ip": "192.168.17"/"ip": $body.$_path/]
298
+ // TESTRESPONSE[s/"build_hash": "587409e"/"build_hash": $body.$_path/]
299
+ // TESTRESPONSE[s/"roles": \[[^\]]*\]/"roles": $body.$_path/]
300
+ // TESTRESPONSE[s/"attributes": \{[^\}]*\}/"attributes": $body.$_path/]
301
+ // TESTRESPONSE[s/"processors": \[[^\]]*\]/"processors": $body.$_path/]
302
+
303
+ The following information are available for each ingest processor:
304
+
305
+ * `type`: the processor type
0 commit comments