Create origin group
Changed onCreate an origin group with one or more origin sources.
Request
- Base URLhttps://api.gcore.com
- URLhttps://api.gcore.com/cdn/origin_groups
- AuthHTTP apikey
Request body
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.
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
gcoreenum 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
gcoreenum value to the request property///// - info
added to the response body
anyOflist 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
- breaking
the
//response's property type changed fromobjecttoarrayfor status - warning
removed the optional property
///from the response with the status
- breaking