GET /accounts/{account_id}/cloudforce-one/rules

List all rules for an account with optional filtering.

Servers

Path parameters

Name Type Required Description
account_id String Yes

Cloudflare account ID.

Query parameters

Name Type Required Description
namespace No

Filter by namespace. Repeat the parameter to filter by multiple namespaces (e.g. namespace=foo&namespace=bar).

limit Number No

Default value: 50

is_public String No

Filter by public visibility.

Valid values:

  • "false"
  • "true"
search String No
recursive String No

Customer accounts only: when true, namespace filtering matches descendants. Does NOT affect path filtering (paths are always exact-match).

Valid values:

  • "false"
  • "true"
path No

Filter by path using exact-match semantics (no descendant matching). Omit the parameter to return rules from all paths. Pass an empty string (path=) to return only rules with an empty/uncategorized path. Pass a non-empty value (e.g. path=yara) for an exact match against that path. Repeat the parameter (e.g. path=yara&path=expr) to OR-match across multiple paths (SQL IN (...) semantics). Note: the recursive flag does NOT affect path filtering — it only affects namespace filtering for customer accounts.

offset Number No

Default value: 0

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.