Skip to main content
GET
/
cdn
/
shieldingpop_v2
Python
import os
from gcore import Gcore

client = Gcore(
    api_key=os.environ.get("GCORE_API_KEY"),  # This is the default and can be omitted
)
shields = client.cdn.shields.list()
print(shields)
[
  {
    "id": 1,
    "datacenter": "Ashburn",
    "country": "United States",
    "city": "Ashburn"
  },
  {
    "id": 2,
    "datacenter": "Frankfurt",
    "country": "Germany",
    "city": "Frankfurt"
  }
]

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

limit
integer

Maximum number of items to return in the response. Cannot exceed 1000.

Required range: 1 <= x <= 1000
offset
integer

Number of items to skip from the beginning of the list.

Required range: x >= 0

Response

200 - application/json

Successful.

id
integer

Origin shielding location ID.

datacenter
string

Name of origin shielding location datacenter.

country
string

Country of origin shielding location.

city
string

City of origin shielding location.