Skip to content
This repository has been archived by the owner on Nov 2, 2022. It is now read-only.

Commit

Permalink
Added notes to Access Rules endpoint. Closes #57
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesryanbell committed Apr 28, 2017
1 parent 003b869 commit 312e14e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "jamesryanbell/cloudflare",
"description": "CloudFlare API - PHP",
"license": "MIT",
"version": "1.10.2",
"version": "1.10.3",
"keywords": ["cloudflare", "api"],
"authors": [
{
Expand Down
5 changes: 4 additions & 1 deletion src/CloudFlare/Zone/Firewall/AccessRules.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ class AccessRules extends Api
* @param string|null $order Field to order rules by
* @param string|null $direction Direction to order rules
* @param string|null $match Whether to match all search requirements or at least one (any)
* @param string|null $notes Search in the access rules by notes.
*/
public function rules($zone_id, $scope_type = null, $mode = null, $configuration_target = null, $configuration_value = null, $page = null, $per_page = null, $order = null, $direction = null, $match = null)

public function rules($zone_id, $scope_type = null, $mode = null, $configuration_target = null, $configuration_value = null, $page = null, $per_page = null, $order = null, $direction = null, $match = null, $notes = null)
{
$data = [
'scope_type' => $scope_type,
Expand All @@ -43,6 +45,7 @@ public function rules($zone_id, $scope_type = null, $mode = null, $configuration
'order' => $order,
'direction' => $direction,
'match' => $match,
'notes' => $notes,
];

return $this->get('/zones/'.$zone_id.'/firewall/access_rules/rules', $data);
Expand Down

0 comments on commit 312e14e

Please sign in to comment.