Skip to main content
POST
Add a new origin to an origin group

Authorizations

AccessKey
string
header
required

API Access Key authorization header

Scopes

User
AccessKey
UserApi
AccessKey
SubuserAPIPullZones
AccessKey
SubuserPullZones
AccessKey
SubuserManage
AccessKey
SubuserAPIManage
AccessKey
ScopedApiKey
AccessKey
User
bearer
UserApi
bearer
SubuserAPIPullZones
bearer
SubuserPullZones
bearer
SubuserManage
bearer
SubuserAPIManage
bearer
ScopedApiKey
bearer

Path Parameters

loadBalancerId
integer<int64>
required
originGroupId
integer<int64>
required

Body

application/json

The model for the new origin

Name
string | null

The name of the origin

Weight
integer<byte> | null

The weight of the origin used for weighted load balancing

Enabled
boolean | null

Whether traffic should route to this origin

OriginType
enum<integer> | null

The type of origin to connect to. Magic Container origins must be CDN endpoints; Anycast endpoints are not supported, use a Standard origin for those

0 = Standard 1 = Storage Zone 2 = Edge Script 3 = Magic Container

Available options:
0,
1,
2,
3
EdgeScriptId
integer<int64> | null

The ID of the Edge Script to use as the origin - required when using the EdgeScript origin type

StorageZoneId
integer<int64> | null

The ID of the Storage Zone to use as the origin - required when using the Storage origin type

StandardOrigin
object | null

Standard origin settings - required when using the Standard origin type

MagicContainersOrigin
object | null

Magic Containers origin settings - required when using the Magic Containers origin type

Response

The newly created origin

Id
integer<int64>

The unique ID of the origin

Name
string | null

The name of the origin

Weight
integer<int32>

The weight of the origin used for weighted load balancing

Enabled
boolean

Whether traffic should route to this origin

HealthStatus
enum<integer>

Current health status of the origin

0 = Healthy 1 = Degraded

Available options:
0,
1
OriginType
enum<integer>

The type of origin to connect to. Magic Container origins must be CDN endpoints; Anycast endpoints are not supported, use a Standard origin for those

0 = Standard 1 = Storage Zone 2 = Edge Script 3 = Magic Container

Available options:
0,
1,
2,
3
EdgeScriptId
integer<int64> | null

The ID of the Edge Script when using this origin type

StorageZoneId
integer<int64> | null

The ID of the Storage Zone when using this origin type

StandardOrigin
object | null

Standard Origin settings - Required with Standard origin type

MagicContainersOrigin
object | null

Magic Containers Origin settings - Required with Magic Containers origin type