open-nomad/website/source/docs/http/sys-leader.html.md

38 lines
618 B
Markdown
Raw Normal View History

2015-09-12 00:01:02 +00:00
---
layout: "http"
page_title: "HTTP API: /sys/leader"
sidebar_current: "docs-http-ha-leader"
description: |-
2015-09-17 23:33:37 +00:00
The '/sys/leader' endpoint is used to check the high availability status and current leader of Nomad.
2015-09-12 00:01:02 +00:00
---
# /sys/leader
<dl>
<dt>Description</dt>
<dd>
2015-09-17 23:33:37 +00:00
Returns the high availability status and current leader instance of Nomad.
2015-09-12 00:01:02 +00:00
</dd>
<dt>Method</dt>
<dd>GET</dd>
<dt>Parameters</dt>
<dd>
None
</dd>
<dt>Returns</dt>
<dd>
```javascript
{
"ha_enabled": true,
"is_self": false,
"leader_address": "https://127.0.0.1:8200/"
}
```
</dd>
</dl>