open-nomad/website/content/api-docs/regions.mdx

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
733 B
Plaintext
Raw Normal View History

2020-02-06 23:45:31 +00:00
---
layout: api
page_title: Regions - HTTP API
description: The /regions endpoints list all known regions.
---
# Regions HTTP API
The `/regions` endpoints list all known regions.
## List Regions
| Method | Path | Produces |
| ------ | ------------- | ------------------ |
| `GET` | `/v1/regions` | `application/json` |
2020-02-06 23:45:31 +00:00
The table below shows this endpoint's support for
[blocking queries](/api-docs#blocking-queries) and
[required ACLs](/api-docs#acls).
2020-02-06 23:45:31 +00:00
| Blocking Queries | ACL Required |
| ---------------- | ------------ |
| `NO` | `none` |
### Sample Request
2020-05-18 20:53:06 +00:00
```shell-session
$ curl \
2020-02-06 23:45:31 +00:00
https://localhost:4646/v1/regions
```
### Sample Response
```json
["region1", "region2"]
```