Skip to main content
POST
/
loadbalancer
/
{loadBalancerId}
/
origingroup
Add a new origin group to a Load Balancer profile
curl --request POST \
  --url https://api.bunny.net/loadbalancer/{loadBalancerId}/origingroup \
  --header 'AccessKey: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "Name": "<string>",
  "Enabled": true,
  "HealthCheckSettings": {
    "Enabled": true,
    "Path": "<string>"
  },
  "Latitude": 123,
  "Longitude": 123,
  "Weight": 123,
  "Priority": 123
}
'
{
  "Id": 123,
  "Name": "<string>",
  "Enabled": true,
  "Latitude": 123,
  "Longitude": 123,
  "Weight": 123,
  "Priority": 123,
  "Origins": [
    {
      "Id": 123,
      "Weight": 123,
      "Enabled": true,
      "EdgeScriptId": 123,
      "StorageZoneId": 123,
      "StandardOrigin": {
        "OriginUrl": "<string>",
        "HostHeader": "<string>",
        "VerifySsl": true
      },
      "MagicContainersOrigin": {
        "AppId": "<string>",
        "EndPointId": "<string>"
      }
    }
  ],
  "HealthCheckSettings": {
    "Enabled": true,
    "Path": "<string>"
  }
}

Authorizations

AccessKey
string
header
required

API Access Key authorization header

Path Parameters

loadBalancerId
integer<int64>
required

Body

application/json

The model for the new origin group

Name
string | null

The name of the origin group

Enabled
boolean | null

Set to true if the origin group is enabled

HealthCheckSettings
object

Health check settings for monitoring origins in the group

OriginLoadBalancingMethod
enum<integer>

The load balancing method used for selecting origins within the group

Available options:
0,
1,
2,
3
Latitude
number<double> | null

The latitude of the origin group location

Longitude
number<double> | null

The longitude of the origin group location

Weight
integer<byte> | null

The weight of the origin group used for weighted load balancing

Priority
integer<byte> | null

The priority of the origin group used for failover load balancing

Response

The newly created origin group

Id
integer<int64>

The unique ID of the origin group

Name
string | null

The name of the origin group

Enabled
boolean

Set to true if the origin group is enabled

Latitude
number<double>

The latitude of the origin group location

Longitude
number<double>

The longitude of the origin group location

Weight
integer<byte>

The weight of the origin group used for weighted load balancing

Priority
integer<byte>

The priority of the origin group used for failover load balancing

OriginLoadBalancingMethod
enum<integer>

The load balancing method used for selecting origins within the group

Available options:
0,
1,
2,
3
Origins
object[] | null

The list of origins associated with the origin group

HealthCheckSettings
object

Health settings for the origin group