GLPI Rest API V2 (Fork) icon

GLPI Rest API V2 (Fork)

GLPI Rest API Node compatible with GLPI 9.x and above.

Actions34

Rule → Get

AI-generated

Summary

Retrieves a specific GLPI rule or lists all rules within a specified collection.

Inputs

  • showCredentials — If enabled, outputs the configured credentials and skips any API requests.
  • data — Optional fields to include in the request payload (Name, Description, Additional JSON).
  • confirmDelete — Must be true to allow deletion (relevant for delete operations).
  • collection — Collection of rules (e.g., 'global', 'user', or specific scope).
  • returnAll — If true, returns all matching items without pagination limits.
  • limit — Maximum number of items to return when Return All is false (default 50).
  • itemid — ID of the rule to retrieve; leave empty to list all rules in the collection.

Output shape

A single record if itemid is provided, or a list of items if listing rules.

The node returns raw JSON data from the GLPI API. When Return All is false, results are limited to the specified limit.

Examples

Example 1: List all global rules

Set Collection to 'global', leave Item ID empty, and Return All to false (default limit 50).

Example 2: Retrieve a specific rule by ID

Set Collection to 'user' and provide the specific Rule ID in the Item ID field.

Links

Discussion