Laravel Forge JavaScript SDK

Regions

Regions

List all regions

Method

forge.regions.list()

Usage

1const forge = new Forge('API_TOKEN');
2
3const regions = await forge.regions.list();

Example Response

1{
2 "regions": {
3 "ocean2": [
4 {
5 "id": "ams2",
6 "name": "Amsterdam 2",
7 "sizes": [
8 {
9 "id": "01",
10 "size": "s-1vcpu-1gb",
11 "name": "1GB RAM - 1 CPU Core - 25GB SSD"
12 }
13 ]
14 }
15 ],
16 "linode": [],
17 "vultr": [],
18 "aws": []
19 }
20}

Edit this page on GitHub

On this page