Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get '/cluster/nodes' #365

Closed
adri9valle opened this issue Apr 5, 2019 · 0 comments
Closed

Get '/cluster/nodes' #365

adri9valle opened this issue Apr 5, 2019 · 0 comments
Assignees
Milestone

Comments

@adri9valle
Copy link

Hi team,

When I request the cluster nodes with the call /cluster/nodes the API returns the master node in the last position, it would be nice to switch the positions of the nodes in order to the first element will be the master.

GET /cluster/status

{
  "data": {
    "items": [
      {
        "type": "worker",
        "version": "3.9.0",
        "ip": "172.16.2.5",
        "name": "node02"
      },
      {
        "type": "master",
        "version": "3.9.0",
        "ip": "172.16.2.4",
        "name": "node01"
      }
    ],
    "totalItems": 2
  },
  "error": 0
}

Regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants