Regions
1 operation in the WP Waterfall API.
List regions
get/regionsPermalink to List regions
- Scope:
sites:read - Permission:
sites.read
The data center locations a site may use, the default first. Every region where Google lists the node shape is open, and a plan costs the same in each (ADR 215). has_data_center is false when none runs there yet: the first site opens one (a few minutes) at no extra charge. Show label (the city, never the country), not the code. WP Waterfall staff also see regions that take no sites, with status closed and a closed_reason; a site there answers 422 region_closed. A region with status unavailable is open but cannot start a data center right now (the cloud account is at its quota): unavailable_reason says so, it stays listed, and a site there answers 409 region_unavailable before anything is charged: pick another location.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
limit | query | integer | How many rows to return in one page: at most 200, and 50 when left out. Default: 50. Range: 1 to 200. |
cursor | query | string | The next_cursor of the page before. Leave it out for the first page. |
Responses
| Status | Body | Description |
|---|---|---|
200 | RegionList | Regions |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
200 response fields
| Name | Type | Description |
|---|---|---|
data required | array of Region | The rows of this page. |
data[].code required | string | |
data[].city required | string | |
data[].country | string or null | The ISO 3166 country code of the data center, such as US. |
data[].label | string | The city a person reads, such as "Ashburn, Virginia". It never shows the country. Show this, never code. |
data[].provider required | string | |
data[].has_data_center | boolean | True when a shared node already runs here. False means no data center exists in this region yet: the first site opens one, which takes a few minutes and costs nothing extra. Optional so an older API still parses. |
data[].machine_family required | string | One of: C4D. |
data[].default_machine_type required | string | |
data[].status required | string | One of: warm, on_demand, closed, unavailable. |
data[].unavailable_reason | string or null | Why a region is unavailable right now, in plain words. Null otherwise. |
data[].first_site_seconds required | integer or null | Typical seconds from request to a live site. Null until measured on a real node. |
data[].is_default required | boolean | |
data[].closed_reason | string or null | Why a closed region takes no sites, in plain words. Null for an open region. |
data[].site_surcharge_cents | integer | The regional surcharge of one site a month here, in cents: 0 where Google prices the data center like us-east4, else a whole dollar amount each site whose live environment runs here adds to the plan. The plan price is the same everywhere. Optional so an older API parses. Range: 0 to any. |
data[].popular | boolean | True for one of the most popular data centers, at most five at a time. With 20 or more live sites on the platform these are the five regions with the most live sites; below that, the regions WordPress sites most commonly use. Only a region a customer can pick is popular. Optional so an older API still parses. |
next_cursor required | string or null | Send it as cursor to get the next page. Null on the last page. |