Note: This library is under active development as I expand it to cover Cloudflare API. Consider the public API of this package a little unstable as I work towards a v1.0. See Coverage.

Holds

Zone holds prevent other teams in your organization from adding zones that are already active in another account.

Cloudflare API docs

Get

Retrieve whether the zone is subject to a zone hold, and metadata about the hold.

php
$response = $client->zones()->holds()->details('zone_id');

Create

Enforce a zone hold on the zone, blocking the creation and activation of zones with this zone's hostname.

php
$response = $client->zones()->holds()->create('zone_id', true);

Remove

Stop enforcement of a zone hold on the zone, permanently or temporarily, allowing the creation and activation of zones with this zone's hostname.

php
$response = $client->zones()->holds()->delete('zone_id', 'hold_after');
Table of Contents