PATCH
/
cdn
/
resources
/
{id}
Issue Let's Encrypt certificate
curl --request PATCH \
  --url https://api.gcore.com/cdn/resources/{id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "sslData": 192,
  "sslEnabled": true
}'
This response does not have an example.

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

id
integer
required

CDN resource ID.

Body

application/json
sslData
integer
required

ID of Let's Encrypt certificate obtained [here][1]. It can be used only with "sslEnabled": true. [1]: /docs/api-reference/ssl-certificates/add-ssl-certificate

Example:

192

sslEnabled
boolean
required

Defines whether the HTTPS protocol is enabled for CDN resource. Possible values:

  • true — HTTPS is enabled for the CDN resource. Certificate can be linked.
  • false — HTTPS is disabled for the CDN resource. Certificate cannot be linked.
Example:

true

Response

Successful.