CDN77 API reference

List of Origins

Gethttps://api.cdn77.com/v3/origin

Responses

Origin list for CDN Resource setup was returned

Response parameters

  • MISSING TITLEone of objects
    • cdnsarray of objects
      List of all CDN Resources assigned to the Origin.
    • idstringrequired
      Origin ID.
    • labelstringrequired
      Origin label.
    • notestring
      Optional note for the Origin.
    • schemestring

      Available values: http, https

    • base_dirstring
      Base directory for the object storage. This is optional and can be used to specify a subdirectory in the bucket. If not specified, the root of the bucket will be used.
    • bucket_namestringrequired
      Name of your bucket.
    • created_atstring, format date-timerequired
    • hoststringrequired
      Origin host without scheme and port.
    • portinteger
      Origin port. If not specified, the default scheme port is used. Allowed range is between 1 and 65535.
    • primary_origin_idstring
      Origin ID.
    • fallback_originsarray of objects
    • fallback_policyobject
    • typestring

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

    • usageobject
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",
    "bucket_name": "my-bucket",
    "created_at": "2027-07-07T00:00:00.000Z",
    "host": "region.cdn77-storage.com",
    "port": 8080,
    "primary_origin_id": "e56564d1-8d3e-4457-93a6-082b054bc736",
    "fallback_origins": [
      {
        "id": {
          "id": "9880280c-0507-46d1-88f3-71cfee83fa57"
        },
        "label": "My fallback origin",
        "usage": {
          "file_count": 1500,
          "size_bytes": 1073741824
        }
      }
    ],
    "fallback_policy": {
      "balancer": "closest",
      "max_fails": 0,
      "fail_timeout": 0,
      "max_fail_timeout": 0,
      "next_upstream": [
        "error"
      ]
    },
    "type": "object-storage",
    "usage": {
      "file_count": 1500,
      "size_bytes": 1073741824
    }
  }
]