1.3 KiB
1.3 KiB
layout | page_title | sidebar_current | description |
---|---|---|---|
http | HTTP API: /v1/agent/members | docs-http-agent-members | The '/1/agent/members' endpoint is used to query the gossip peers. |
/v1/agent/members
The members
endpoint is used to query the agent for the known peers in
the gossip pool. This is only applicable to servers.
GET
- Description
- Lists the known members of the gossip pool.
- Method
- GET
- URL
- `/v1/agent/members`
- Parameters
- None
- Returns
-
```javascript { "ServerName": "DIPTANUs-MBP", "ServerRegion": "global", "ServerDC": "dc1", "Members": [ { "Name": "DIPTANUs-MBP.global", "Addr": "127.0.0.1", "Port": 4648, "Tags": { "mvn": "1", "build": "0.5.0rc2", "port": "4647", "bootstrap": "1", "role": "nomad", "region": "global", "dc": "dc1", "vsn": "1" }, "Status": "alive", "ProtocolMin": 1, "ProtocolMax": 4, "ProtocolCur": 2, "DelegateMin": 2, "DelegateMax": 4, "DelegateCur": 4 } ] } ```