Ssl

Available endpoints:
NameMethodPath
get/v3/ssl/sni
post/v3/ssl/sni
patch/v3/ssl/sni/{id}
delete/v3/ssl/sni/{id}

List of SNI Certificates

gethttps://api.cdn77.com/v3/ssl/sni

Responses

200List of customer SSL SNI Certificates returned.
// response
[
  {
    "id": "9880280c-0507-46d1-88f3-71cfee83fa57",
    "certificate": "---BEGIN CERTIFICATE---MIIEvwIBADANBgkqhkiG9w0BAQEFAAS---END CERTIFICATE---",
    "cnames": [
      "cname.your-domain.com"
    ],
    "expires_at": "2022-09-27T07:59:25.840Z",
    "assigned_resources": [
      {
        "id": 1234567890,
        "label": "My cdn"
      }
    ]
  }
]

Add SNI SSL Certificate

posthttps://api.cdn77.com/v3/ssl/sni

Request bodyrequired

// request body
{
  "certificate": "---BEGIN CERTIFICATE---MIIEvwIBADANBgkqhkiG9w0BAQEFAAS---END CERTIFICATE---",
  "private_key": "---BEGIN RSA PRIVATE KEY---MNQCS6FJUOgqF7bsfs2MsoDP---END PRIVATE KEY---"
}
certificate
requiredstring

SNI certificate.

private_key
requiredstring

Private key of the SSL certificate.

Responses

201SNI SSL Certificate created.
// response
{
  "id": "9880280c-0507-46d1-88f3-71cfee83fa57",
  "certificate": "---BEGIN CERTIFICATE---MIIEvwIBADANBgkqhkiG9w0BAQEFAAS---END CERTIFICATE---",
  "cnames": [
    "cname.your-domain.com"
  ],
  "expires_at": "2022-09-27T07:59:25.840Z",
  "assigned_resources": [
    {
      "id": 1234567890,
      "label": "My cdn"
    }
  ]
}
422Unable to create SNI SSL Certificate.

Edit SNI SSL Certificate

patchhttps://api.cdn77.com/v3/ssl/sni/{id}

Request parameters

id
requiredstring in path

ID of the SSL certificate.

Request bodyrequired

// request body
{
  "certificate": "---BEGIN CERTIFICATE---MIIEvwIBADANBgkqhkiG9w0BAQEFAAS---END CERTIFICATE---",
  "private_key": "---BEGIN RSA PRIVATE KEY---MNQCS6FJUOgqF7bsfs2MsoDP---END PRIVATE KEY---"
}
certificate
requiredstring

SNI certificate.

private_key
string

Private key of the SSL certificate.

Responses

200SNI SSL Certificate edited.
// response
{
  "id": "9880280c-0507-46d1-88f3-71cfee83fa57",
  "certificate": "---BEGIN CERTIFICATE---MIIEvwIBADANBgkqhkiG9w0BAQEFAAS---END CERTIFICATE---",
  "cnames": [
    "cname.your-domain.com"
  ],
  "expires_at": "2022-09-27T07:59:25.840Z",
  "assigned_resources": [
    {
      "id": 1234567890,
      "label": "My cdn"
    }
  ]
}
422Unable to edit SNI SSL Certificate.

Delete SNI Certificate

deletehttps://api.cdn77.com/v3/ssl/sni/{id}

Request parameters

id
requiredstring in path

ID of the SSL certificate.

Responses

204SSL SNI Certificate removed.
404SSL SNI Certificate not found.