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

client = Gcore(
    api_key="My API Key",
)
origin_shielding_updated = client.cdn.resources.shield.replace(
    resource_id=0,
)
print(origin_shielding_updated)
{
  "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.

Body

application/json
shielding_pop
integer | null

Shielding location ID.

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

Response

Successful.

The response is of type object.

I