Cloudflare\User\LoadBalancers\Origins::update PHP Method

update() public method

Modify an origin Modify a configured origin
public update ( string $identifier, string | null $name = null, string | null $address = null, boolean | null $enabled = null, string | null $notifier = null )
$identifier string
$name string | null Object name
$address string | null 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 update($identifier, $name = null, $address = null, $enabled = null, $notifier = null)
    {
        $data = ['name' => $name, 'address' => $address, 'enabled' => $enabled, 'notifier' => $notifier];
        return $this->patch('/user/load_balancers/origins/' . $identifier, $data);
    }