open-nomad/website/source/api/regions.html.md

42 lines
845 B
Markdown
Raw Normal View History

2017-05-26 23:17:22 +00:00
---
layout: api
page_title: Regions - HTTP API
sidebar_current: api-regions
description: |-
The /regions endpoints list all known regions.
---
# Regions HTTP API
The `/regions` endpoints list all known regions.
## List Regions
| Method | Path | Produces |
| ------ | ---------------------------- | -------------------------- |
2017-11-23 17:23:39 +00:00
| `GET` | `/regions` | `application/json` |
2017-05-26 23:17:22 +00:00
The table below shows this endpoint's support for
2017-05-31 01:08:23 +00:00
[blocking queries](/api/index.html#blocking-queries) and
2017-05-26 23:17:22 +00:00
[required ACLs](/api/index.html#acls).
2017-05-31 00:31:16 +00:00
| Blocking Queries | ACL Required |
| ---------------- | ------------ |
| `NO` | `none` |
2017-05-26 23:17:22 +00:00
### Sample Request
```text
$ curl \
https://localhost:4646/v1/regions
2017-05-26 23:17:22 +00:00
```
### Sample Response
```json
[
"region1",
"region2"
]
```