Add Custom SNI SSL Certificate to CDN Resource

To add a custom SNI SSL certificate to a CDN HTTP Pull or Push resource, use the following request:

PUT /cdn_resources/:id.xml
PUT /cdn_resources/:id.json

XML Request Example

curl -i -X PUT -u user:userpass -H 'Accept: application/xml' -H 'Content-type: application/xml' --url 'http://onapp.test/cdn_resources/12.xml' -d '<cdn_resource><cdn_ssl_certificate_id>ssl_sert_id</cdn_ssl_certificate_id></cdn_resource>'

JSON Request Example

curl -i -X PUT -u user:userpass -H 'Accept: application/json' -H 'Content-type: application/json' --url 'http://onapp.test/cdn_resources/12.json' -d '{"cdn_resource":{"cdn_ssl_certificate_id":"ssl_cert_id"}}'

Where:

cdn_ssl_certificate_id - the ID of the custom SNI SSL certificate you want to add to the resource