SSL
Available endpoints:
Name | Method | Path |
---|---|---|
get | /v3/ssl/sni | |
post | /v3/ssl/sni | |
get | /v3/ssl/sni/{id} | |
patch | /v3/ssl/sni/{id} | |
delete | /v3/ssl/sni/{id} |
List of SNI Certificates
gethttps://api.cdn77.com/v3/ssl/sni
Responses
200 – List of customer SSL SNI Certificates returned.
// example of the response
[
{
"id": "9880280c-0507-46d1-88f3-71cfee83fa57",
"certificate": "---BEGIN CERTIFICATE---MIIEvwIBADANBgkqhkiG9w0BAQEFAAS---END CERTIFICATE---",
"cnames": [
"cname.your-domain.com"
],
"expires_at": "2024-04-25T06:57:16.325Z",
"assigned_resources": [
{
"id": 1234567890,
"label": "My cdn"
}
]
}
]
Add SNI SSL Certificate
posthttps://api.cdn77.com/v3/ssl/sni
Request bodyrequired
// example of the request body
{
"certificate": "---BEGIN CERTIFICATE---MIIEvwIBADANBgkqhkiG9w0BAQEFAAS---END CERTIFICATE---",
"private_key": "---BEGIN RSA PRIVATE KEY---MNQCS6FJUOgqF7bsfs2MsoDP---END PRIVATE KEY---"
}
certificaterequiredstring
SNI certificate.
private_keyrequiredstring
Private key of the SSL certificate.
Responses
201 – SNI SSL Certificate created.
// example of the response
{
"id": "9880280c-0507-46d1-88f3-71cfee83fa57",
"certificate": "---BEGIN CERTIFICATE---MIIEvwIBADANBgkqhkiG9w0BAQEFAAS---END CERTIFICATE---",
"cnames": [
"cname.your-domain.com"
],
"expires_at": "2024-04-25T06:57:16.326Z",
"assigned_resources": [
{
"id": 1234567890,
"label": "My cdn"
}
]
}
422 – Unable to create SNI SSL Certificate.
Detail of SNI SSL Certificate
gethttps://api.cdn77.com/v3/ssl/sni/{id}
Request parameters
idrequiredstring in path
ID of the SSL certificate.
Responses
200 – Detail of customer SSL SNI Certificate returned.
// example of the response
{
"id": "9880280c-0507-46d1-88f3-71cfee83fa57",
"certificate": "---BEGIN CERTIFICATE---MIIEvwIBADANBgkqhkiG9w0BAQEFAAS---END CERTIFICATE---",
"cnames": [
"cname.your-domain.com"
],
"expires_at": "2024-04-25T06:57:16.326Z",
"assigned_resources": [
{
"id": 1234567890,
"label": "My cdn"
}
]
}
404 – SNI SSL Certificate not found.
Edit SNI SSL Certificate
patchhttps://api.cdn77.com/v3/ssl/sni/{id}
Request parameters
idrequiredstring in path
ID of the SSL certificate.
Request bodyrequired
// example of the request body
{
"certificate": "---BEGIN CERTIFICATE---MIIEvwIBADANBgkqhkiG9w0BAQEFAAS---END CERTIFICATE---",
"private_key": "---BEGIN RSA PRIVATE KEY---MNQCS6FJUOgqF7bsfs2MsoDP---END PRIVATE KEY---"
}
certificaterequiredstring
SNI certificate.
private_keystring
Private key of the SSL certificate.
Responses
200 – SNI SSL Certificate edited.
// example of the response
{
"id": "9880280c-0507-46d1-88f3-71cfee83fa57",
"certificate": "---BEGIN CERTIFICATE---MIIEvwIBADANBgkqhkiG9w0BAQEFAAS---END CERTIFICATE---",
"cnames": [
"cname.your-domain.com"
],
"expires_at": "2024-04-25T06:57:16.327Z",
"assigned_resources": [
{
"id": 1234567890,
"label": "My cdn"
}
]
}
422 – Unable to edit SNI SSL Certificate.
Delete SNI Certificate
deletehttps://api.cdn77.com/v3/ssl/sni/{id}
Request parameters
idrequiredstring in path
ID of the SSL certificate.
Responses
204 – SSL SNI Certificate removed.
404 – SSL SNI Certificate not found.