GET
/
cdn
/
origin_groups
curl --request GET \
  --url https://api.gcore.com/cdn/origin_groups \
  --header 'APIKey: <api-key>'
[
  {
    "id": 1,
    "name": "YourOriginGroup",
    "use_next": true,
    "proxy_next_upstream": [
      "error",
      "timeout",
      "invalid_header",
      "http_500",
      "http_502",
      "http_503",
      "http_504"
    ],
    "auth_type": "none",
    "sources": [
      {
        "backup": false,
        "enabled": true,
        "source": "yourwebsite.com"
      },
      {
        "backup": true,
        "enabled": true,
        "source": "1.2.3.4:5500"
      }
    ],
    "path": "",
    "has_related_resources": true
  }
]

Authorizations

APIKey
string
header
required

API key for authentication.

Query Parameters

name
string

Origin group name.

sources
string

Origin sources (IP addresses or domains) in the origin group.

Defines whether the origin group has related CDN resources. Possible values:

  • true – Origin group has related CDN resources.
  • false – Origin group does not have related CDN resources.

Response

200
application/json

Successful.