github.com/dkerwin/nomad@v0.3.3-0.20160525181927-74554135514b/website/source/docs/http/status.html.md (about) 1 --- 2 layout: "http" 3 page_title: "HTTP API: /v1/status/" 4 sidebar_current: "docs-http-status" 5 description: |- 6 The '/1/status/' endpoints are used to query the system status. 7 --- 8 9 # /v1/status/leader 10 11 By default, the agent's local region is used; another region can 12 be specified using the `?region=` query parameter. 13 14 ## GET 15 16 <dl> 17 <dt>Description</dt> 18 <dd> 19 Returns the address of the current leader in the region. 20 </dd> 21 22 <dt>Method</dt> 23 <dd>GET</dd> 24 25 <dt>URL</dt> 26 <dd>`/v1/status/leader`</dd> 27 28 <dt>Parameters</dt> 29 <dd> 30 None 31 </dd> 32 33 <dt>Returns</dt> 34 <dd> 35 36 ```javascript 37 "127.0.0.1:4647" 38 ``` 39 40 </dd> 41 </dl> 42 43 # /v1/status/peers 44 45 ## GET 46 47 <dl> 48 <dt>Description</dt> 49 <dd> 50 Returns the set of raft peers in the region. 51 </dd> 52 53 <dt>Method</dt> 54 <dd>GET</dd> 55 56 <dt>URL</dt> 57 <dd>`/v1/status/peers`</dd> 58 59 <dt>Parameters</dt> 60 <dd> 61 None 62 </dd> 63 64 <dt>Returns</dt> 65 <dd> 66 67 ```javascript 68 [ 69 "127.0.0.1:4647", 70 ... 71 ] 72 ``` 73 74 </dd> 75 </dl> 76 77