GET
/
storage
/
provisioning
/
v2
/
locations
Python
from gcore import Gcore

client = Gcore(
    api_key="My API Key",
)
page = client.storage.locations.list()
page = page.results[0]
print(page.address)
{
  "count": 1,
  "results": [
    {
      "address": "s-ed1.cloud.example.com",
      "allow_for_new_storage": "allow",
      "name": "s-ed1",
      "title": "S3 Luxembourg",
      "type": "s3"
    }
  ]
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Query Parameters

offset
integer
Required range: x >= 0
limit
integer
default:10
Required range: 1 <= x <= 1000

Response

LocationListEndpointResV2

LocationListEndpointResV2 response for v2

count
integer
required

Total number of locations available

Example:

1

results
object[]
required

The list of locations