SSL

Available endpoints:
NameMethodPath
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

200List 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

201SNI 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"
    }
  ]
}

422Unable 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

200Detail 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"
    }
  ]
}

404SNI 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

200SNI 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"
    }
  ]
}

422Unable 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

204SSL SNI Certificate removed.

404SSL SNI Certificate not found.