Create Your Origin

Posthttps://api.cdn77.com/v3/origin/url

Request body≥1 required

  • base_dirstring

    Directory where the content is stored on the URL Origin. It must not end with the slash. Maximum length is 255.

  • labelstringrequired

    The label helps you to identify your URL Origin.

  • notestring

    Optional note for the Origin.

  • portinteger

    URL Origin port. If not specified, default scheme port is used. Allowed range is between 1 and 65535.

  • schemestring

    Available values: http, https

  • hoststringrequired

    URL Origin host without scheme and port. Can be domain name or IP address.

Example of the request body
{
  "base_dir": "/pictures/images",
  "label": "My URL Origin",
  "note": "Note for my Origin",
  "port": 8080,
  "scheme": "https",
  "host": "my-domain.com"
}

Responses

Origin created.

Response parameters

  • cdnsarray of objects

    List of all CDN Resources assigned to the Origin.

  • idstring

    Origin ID.

  • labelstring

    Origin label.

  • notestring

    Optional note for the Origin.

  • schemestring

    Available values: http, https

  • base_dirstring

    Directory where the content is stored on the URL Origin. Maximum length is 255.

  • hoststring

    Origin URL host without scheme and port. Can be a domain name or an IP address.

  • portinteger

    Origin URL port. If not specified, the default scheme port is used. Allowed range is between 1 and 65535.

  • typestring

    Available values: aws, object-storage, storage, url

Example of the response
{
  "cdns": [
    {
      "id": 1234567890,
      "label": "My cdn"
    }
  ],
  "id": "e56564d1-8d3e-4457-93a6-082b054bc736",
  "label": "My origin",
  "note": "Note for my Origin",
  "scheme": "https",
  "base_dir": "/pictures/images",
  "host": "my-domain.com",
  "port": 8080,
  "type": "url"
}
Can’t find what you are looking for?