Skip to main content
POST
/
cdn
/
resources
/
{resource_id}
/
ssl
/
le
/
pre-validate
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
)
client.cdn.resources.prevalidate_ssl_le_certificate(
    0,
)
{
  "errors": [
    "An error occurred when connecting to the validation URL. Please ensure that DNS records are pointed to our services, and check whether the rules you created overlap the path \"/.well-known/acme-challenge/\". If you have just created a CDN resource, it may take up to 15 minutes to activate it. In this case, please wait until the CDN resource is activated and try to issue the certificate again."
  ]
}

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

Successful.