Skip to main content
GET
/
cdn
/
resources
/
{resource_id}
/
shielding_v2
Python
from gcore import Gcore

client = Gcore(
    api_key="My API Key",
)
origin_shielding = client.cdn.resources.shield.get(
    0,
)
print(origin_shielding.shielding_pop)
{
  "shielding_pop": 4
}

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

Path Parameters

resource_id
integer
required

CDN resource ID.

Response

200 - application/json

Successful.

shielding_pop
integer | null

Shielding location ID.

If origin shielding is disabled, the parameter value is null.

I