diff --git a/command/agent/regions_endpoint.go b/command/agent/region_endpoint.go similarity index 100% rename from command/agent/regions_endpoint.go rename to command/agent/region_endpoint.go diff --git a/website/source/docs/http/regions.html.md b/website/source/docs/http/regions.html.md new file mode 100644 index 000000000..5de35509c --- /dev/null +++ b/website/source/docs/http/regions.html.md @@ -0,0 +1,38 @@ +--- +layout: "http" +page_title: "HTTP API: /v1/regions" +sidebar_current: "docs-http-regions" +description: > + The '/v1/regions' endpoint lists the known cluster regions. +--- + +# /v1/regions + +## GET + +
+
Description
+
+ Returns the known region names. +
+ +
Method
+
GET
+ +
URL
+
`/v1/regions`
+ +
Parameters
+
+ None +
+ +
Returns
+
+ + ```javascript + ["region1","region2"] + ``` + +
+
diff --git a/website/source/layouts/http.erb b/website/source/layouts/http.erb index 1589df808..f22413041 100644 --- a/website/source/layouts/http.erb +++ b/website/source/layouts/http.erb @@ -89,6 +89,10 @@ + > + Regions + + > Status