Cloudflare\Zone\Pagerules::list_pagerules PHP Метод

list_pagerules() публичный Метод

List page rules [BETA] (permission needed: #zone:read)
public list_pagerules ( string $zone_identifier, string | null $status = null, string | null $order = null, string | null $direction = null, string | null $match = null )
$zone_identifier string API item identifier tag
$status string | null Status of the page rule
$order string | null Field to order page rules by (status, priority)
$direction string | null Direction to order page rules (asc, desc)
$match string | null Whether to match all search requirements or at least one (any) (any, all)
    public function list_pagerules($zone_identifier, $status = null, $order = null, $direction = null, $match = null)
    {
        $data = ['status' => $status, 'order' => $order, 'direction' => $direction, 'match' => $match];
        return $this->get('zones/' . $zone_identifier . '/pagerules', $data);
    }