Origins

Create origin group

Changed on

Create an origin group with one or more origin sources.

post/cdn/origin_groups

Request

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

Request body

OR

Example request

{
  "name": "YourOriginGroup",
  "use_next": true,
  "proxy_next_upstream": [
    "error",
    "timeout",
    "invalid_header",
    "http_500",
    "http_502",
    "http_503",
    "http_504"
  ],
  "auth_type": "none",
  "sources": [
    {
      "source": "origin.example.com",
      "enabled": true
    }
  ]
}

Response

Successful.

OR

Example response

{
  "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": [
    {
      "source": "origin.example.com",
      "backup": false,
      "enabled": true,
      "host_header_override": null
    },
    {
      "source": "192.0.2.10:5500",
      "backup": true,
      "enabled": true,
      "host_header_override": null
    },
    {
      "origin_type": "s3",
      "config": {
        "s3_type": "amazon",
        "s3_bucket_name": "example-bucket",
        "s3_region": "eu-west-1",
        "s3_access_key_id": "SECRET_VALUE",
        "s3_secret_access_key": "SECRET_VALUE",
        "s3_auth_type": "awsSignatureV4"
      },
      "backup": true,
      "enabled": true,
      "host_header_override": null
    },
    {
      "origin_type": "s3",
      "config": {
        "s3_type": "gcore",
        "storage_id": 123,
        "s3_bucket_name": "example-bucket",
        "s3_auth_type": "awsSignatureV4"
      },
      "backup": true,
      "enabled": true,
      "host_header_override": null
    }
  ],
  "has_related_resources": true
}

Changes

    • breaking

      added the pattern ^[A-Za-z0-9_.:-]+$ to the request property /////

    • breaking

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

    • breaking

      the response property ///// became optional 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

    • 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

    • warning

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

    • warning

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

    • info

      added the new optional request property /////

    • info

      the request property ///// became optional

    • info

      the request property ///// became optional

    • info

      added the new gcore enum value to the request property /////

    • info

      added to the response body anyOf list 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

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

    • info

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

    • info

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

    • info

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

    • info

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

    • info

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

    • info

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

    • info

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

    • info

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

    • info

      added the optional property //// to the response with the 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

    • breaking

      the // response's property type changed from object to array for status

    • warning

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