38 lines
729 B
Plaintext
38 lines
729 B
Plaintext
|
---
|
||
|
layout: api
|
||
|
page_title: Regions - HTTP API
|
||
|
sidebar_title: Regions
|
||
|
description: The /regions endpoints list all known regions.
|
||
|
---
|
||
|
|
||
|
# Regions HTTP API
|
||
|
|
||
|
The `/regions` endpoints list all known regions.
|
||
|
|
||
|
## List Regions
|
||
|
|
||
|
| Method | Path | Produces |
|
||
|
| ------ | ---------- | ------------------ |
|
||
|
| `GET` | `/regions` | `application/json` |
|
||
|
|
||
|
The table below shows this endpoint's support for
|
||
|
[blocking queries](/api#blocking-queries) and
|
||
|
[required ACLs](/api#acls).
|
||
|
|
||
|
| Blocking Queries | ACL Required |
|
||
|
| ---------------- | ------------ |
|
||
|
| `NO` | `none` |
|
||
|
|
||
|
### Sample Request
|
||
|
|
||
|
```shell
|
||
|
$ curl \
|
||
|
https://localhost:4646/v1/regions
|
||
|
```
|
||
|
|
||
|
### Sample Response
|
||
|
|
||
|
```json
|
||
|
["region1", "region2"]
|
||
|
```
|