1007 B
1007 B
layout | page_title | sidebar_current | description |
---|---|---|---|
http | HTTP API: /v1/status/ | docs-http-status | The '/1/status/' endpoints are used to query the system status. |
/v1/status/leader
By default, the agent's local region is used; another region can
be specified using the ?region=
query parameter.
GET
- Description
- Returns the address of the current leader in the region.
- Method
- GET
- URL
- `/v1/status/leader`
- Parameters
- None
- Returns
-
```javascript "127.0.0.1:4647" ```
/v1/status/peers
GET
- Description
- Returns the set of raft peers in the region.
- Method
- GET
- URL
- `/v1/status/peers`
- Parameters
- None
- Returns
-
```javascript [ "127.0.0.1:4647", ... ] ```