CloudFlare\Zone::zones PHP Method

zones() public method

List zones (permission needed: #zone:read) List, search, sort, and filter your zones
public zones ( string | null $name = null, string | null $status = null, integer | null $page = null, integer | null $per_page = null, string | null $order = null, string | null $direction = null, string | null $match = null )
$name string | null A domain name
$status string | null Status of the zone (active, pending, initializing, moved, deleted)
$page integer | null Page number of paginated results
$per_page integer | null Number of zones per page
$order string | null Field to order zones by (name, status, email)
$direction string | null Direction to order zones (asc, desc)
$match string | null Whether to match all search requirements or at least one (any) (any, all)
    public function zones($name = null, $status = null, $page = null, $per_page = null, $order = null, $direction = null, $match = null)
    {
        $data = ['name' => $name, 'status' => $status, 'page' => $page, 'per_page' => $per_page, 'order' => $order, 'direction' => $direction, 'match' => $match];
        return $this->get('zones', $data);
    }