Origins

Get origin groups list

Changed on

Get all origin groups and related origin sources.

get/cdn/origin_groups

Request

  • Base URL
    https://api.gcore.com
  • URL
    https://api.gcore.com/cdn/origin_groups
  • Auth
    HTTP apikey

Query parameters

namestring

Origin group name.

sourcesstring

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

has_related_resourcesboolean

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.
limitinteger

Maximum number of items to return in the response. Cannot exceed 1000.

offsetinteger

Number of items to skip from the beginning of the list.

Response

Successful.

OR

Example response

[
  {
    "id": 1,
    "name": "YourOriginGroup",
    "use_next": true,
    "proxy_next_upstream": [
      "error",
      "timeout"
    ],
    "auth_type": "none",
    "sources": [
      {
        "backup": false,
        "enabled": true,
        "source": "origin.example.com"
      }
    ],
    "path": "",
    "has_related_resources": true
  }
]

Changes

    • breaking

      the response property /////// became optional for the status

    • breaking

      the response property /////// became optional for the status

    • breaking

      the response property ///////// became optional for the status

    • breaking

      the response property ///////// became optional for the status

    • warning

      added the new gcore enum value to the /////// response property for the response status

    • warning

      added the new gcore enum value to the ///////// response property for the response status

    • info

      added the optional property /////// to the response with the status

    • info

      added the optional property ///////// to the response with the status

    • info

      the /////// response's property pattern ^[A-Za-z0-9_.:-]+$ was added for the status

    • info

      the ///////// response's property pattern ^[A-Za-z0-9_.:-]+$ was added for the status

    • warning

      removed the optional property ////// from the response with the status

    • warning

      removed the optional property ////// from the response with the status

    • warning

      removed the optional property ////// from the response with the status

    • warning

      removed the optional property //////// from the response with the status

    • warning

      removed the optional property //////// from the response with the status

    • warning

      removed the optional property //////// from the response with the status