ListAllNode
Retrieves information about all nodes in an Elasticsearch cluster.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
elasticsearch:DescribeInstance |
get |
*Instance
|
None | None |
Request syntax
GET /openapi/instances/{InstanceId}/nodes HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
es-cn-tl32cpgwa002l**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| extended |
boolean |
No |
Specifies whether to return monitoring information for nodes. Valid values:
|
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
0D71B597-F3FF-5B56-88D7-74F9D3F7**** |
| Result |
array<object> |
The returned results. |
|
|
object |
|||
| heapPercent |
string |
The JVM memory usage. |
21.6% |
| zoneId |
string |
The zone where the node resides. |
cn-hangzhou-i |
| cpuPercent |
string |
The CPU usage. Note
When extended is set to true and the monitoring information of the node is being synchronized, the parameter value returns null. In this case, wait 10 seconds and resend the request to obtain the value. |
4.2% |
| host |
string |
The IP address of the node. |
10.15.XX.XX |
| nodeType |
string |
The node type. Valid values:
|
WORKER |
| diskUsedPercent |
string |
The disk usage. |
1.0% |
| port |
integer |
The access port of the node. |
9200 |
| loadOneM |
string |
The one-minute load average. |
0.12 |
| health |
string |
The health status of the node. Valid values: GREEN, YELLOW, RED, and GRAY. |
GREEN |
Examples
Success response
JSON format
{
"RequestId": "0D71B597-F3FF-5B56-88D7-74F9D3F7****",
"Result": [
{
"heapPercent": "21.6%",
"zoneId": "cn-hangzhou-i",
"cpuPercent": "4.2%",
"host": "10.15.XX.XX",
"nodeType": "WORKER",
"diskUsedPercent": "1.0%",
"port": 9200,
"loadOneM": "0.12",
"health": "GREEN"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.