Regions
Regions are independent geographic areas that are made up of one or more zones where users can host their resources. There are currently a variety of regions around the world, scattered across North America, South America, Europe, Asia, and Australia.
Get the available regions per Provider
- Curl
- Python
curl -X 'GET' \
'https://api.gigapipe.com/v1/regions?provider=<your_provider_id>' \
-H 'accept: application/json' \
-H 'Authorization: Bearer <your_access_token>'
# Payload response ::Array[Dictionary]
[
{
"name": "Ashburn, Virginia",
"code": "us-east-1",
"id": 4,
"provider": {
"id": 1,
"name": "AWS"
}
}
...
]
regions = gigapipe_client.root.get_regions(provider_id=your_provider_id)
# Payload response ::Array[Dictionary]
[
{
"name": "Ashburn, Virginia",
"code": "us-east-1",
"id": 4,
"provider": {
"id": 1,
"name": "AWS"
}
}
...
]
Parameters
Attributes
provider ::Integer
The provider id which you want to get the regions for
The Region Object
Attributes
id ::Integer
The id of the region on Gigapipe
name ::String
The name of the region according to the provider
code ::String
The code that identifies the region according to the provider
provider ::Provider