DefensX icon

DefensX

Call DefensX Partner API endpoints.

Actions47

Policies → Get list of policy groups

AI-generated

Summary

Retrieves all policy groups for a specified customer ID from the DefensX API. Supports pagination with configurable 'Return All' and 'Limit' options to control the number of results fetched.

Inputs

  • Customer ID (required) — The ID of the customer whose policy groups are to be retrieved.

Output shape

A list of policy group items, each including an enriched field 'customerId' set to the specified customer ID. If the 'Single Item (Raw)' output mode is selected, the full response is returned as a single item.

Supports pagination. Use the 'Return All' boolean to fetch all pages automatically, or set a 'Limit' to restrict the number of items returned. Output includes a 'customerId' field added to each item to provide context.

Examples

Example 1: List all policies for a specific customer using the default 'One Item Per Element' mode.

Customer ID: 12345

Example 2: Retrieve policies with a custom page size and limit.

Customer ID: 12345, Page Size: 50, Limit: 5

Example 3: Get the raw API response for a single customer.

Customer ID: 12345, Output Mode: Single Item (Raw)

Links

Discussion