public create ( string $name, string $address, boolean | null $enabled = null, string | null $notifier = null ) | ||
$name | string | Object name |
$address | string | Origin server IPv4 or IPv6 address |
$enabled | boolean | null | Whether this origin is enabled or not |
$notifier | string | null | The ID of the notifier object to use for notifications relating to the health status of this origin. |
public function create($name, $address, $enabled = null, $notifier = null)
{
$data = ['name' => $name, 'address' => $address, 'enabled' => $enabled, 'notifier' => $notifier];
return $this->post('/user/load_balancers/origins', $data);
}