Add CDN Resource

Posthttps://api.cdn77.com/v3/cdn

Request body≥1 required

  • cnamesarray of strings

    All CNAMEs should be mapped via DNS to CDN URL. Otherwise it's not possible to generate SSL certificate.Maximum number of CNAMEs is "10". To add more, contact our support.

  • labelstringrequired

    The label helps you to identify your CDN Resource.

  • notestring

    Optional note for the CDN Resource.

  • origin_idstringrequired

    ID of attached Origin (content source for CDN Resource). More information in our Origin API documentation.

Example of the request body
{
  "cnames": [
    "cname.your-domain.com"
  ],
  "label": "My cdn",
  "note": "Note for my CDN",
  "origin_id": "e56564d1-8d3e-4457-93a6-082b054bc736"
}

Responses

CDN Resource created.

Response parameters

  • idinteger

    ID of the CDN Resource. This is also used as the CDN Resource URL.

  • cnamesarray of objects

    All CNAMEs should be mapped via DNS to CDN URL. Otherwise it's not possible to generate SSL certificate. Maximum number of CNAMEs is "10".To add more, contact our support.

  • creation_timestring, format date-time

    Timestamp when CDN Resource was created.

  • labelstring

    The label helps you to identify your CDN Resource.

  • notestring

    Optional note for the CDN Resource.

  • origin_idstring

    ID of attached Origin (content source for CDN Resource). More information in our Origin API documentation.

  • urlstring

    URL of the CDN Resource. Automatically generated when the CDN Resource is created. The number is the same as the CDN Resource ID.

  • mp4_pseudo_streamingobject

    Turn this option on if using a flash-based video player with MP4 files. Pseudo-streaming is used mainly in flash players. HTML5 players use range-requests. When enabled the "query_string" option must be set to ignore all parameters.

Example of the response
{
  "id": 1234567890,
  "cnames": [
    {
      "id": "9880280c-0507-46d1-88f3-71cfee83fa57",
      "cname": "cname.your-domain.com"
    }
  ],
  "creation_time": "2024-11-26T15:12:46.916Z",
  "label": "My cdn",
  "note": "Note for my CDN",
  "origin_id": "e56564d1-8d3e-4457-93a6-082b054bc736",
  "url": "1234567890.rsc.cdn77.org",
  "mp4_pseudo_streaming": {
    "enabled": true
  }
}
Can’t find what you are looking for?