Cloudflare\User\Firewall\AccessRules::rules PHP Метод

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

List access rules (permission needed: #billing:read) Search, sort, and filter IP/country access rules
public rules ( string | null $mode = null, string | null $configuration_target = null, string | null $configuration_value = null, integer | null $page = null, integer | null $per_page = null, string | null $order = null, string | null $direction = null, string | null $match = null )
$mode string | null The action to apply to a matched request
$configuration_target string | null The rule configuration target
$configuration_value string | null Search by IP, range, or country code
$page integer | null Page number of paginated results
$per_page integer | null Number of items per page
$order string | null Field to order rules by
$direction string | null Direction to order rules
$match string | null Whether to match all search requirements or at least one (any)
    public function rules($mode = null, $configuration_target = null, $configuration_value = null, $page = null, $per_page = null, $order = null, $direction = null, $match = null)
    {
        $data = ['mode' => $mode, 'configuration_target' => $configuration_target, 'configuration_value' => $configuration_value, 'page' => $page, 'per_page' => $per_page, 'order' => $order, 'direction' => $direction, 'match' => $match];
        return $this->get('/user/firewall/access_rules/rules', $data);
    }