AvantGuard - CIPP icon

AvantGuard - CIPP

AvantGuard - CIPP

Actions136

Overview

This node operation, "Retrieve List Sites" under the "List" resource, is designed to fetch site information filtered by specific criteria. It allows users to query a list of sites based on tenant identification, type, URL-only flag, and user principal name (UPN). This can be particularly useful in scenarios where you need to programmatically retrieve site data from an external system for reporting, monitoring, or integration purposes.

For example, a user might want to get all sites associated with a particular tenant and user, filtering by site type and whether only URLs should be returned. This enables automation workflows that depend on dynamic site lists without manual intervention.

Properties

Name Meaning
Tenantfilter A string used to filter the sites by tenant.
Type The type/category of sites to retrieve.
Urlonly A flag indicating whether to return only URLs of the sites.
Userupn The user principal name (UPN) to filter sites associated with a specific user.

Output

The node outputs JSON data containing the list of sites matching the provided filters. Each item in the output JSON typically represents a site with its details as returned by the external API. If the urlonly property is set, the output may contain only the URLs of these sites.

No binary data output is indicated in the source code or properties.

Dependencies

  • Requires an API key credential for authentication to the external AvantGuard CIPP API.
  • The base URL for the API is configured via credentials (resourceApiUrl).
  • The node uses HTTP headers to accept and send JSON content.
  • Depends on the @avantguardllc/n8n-openapi-node package and an OpenAPI specification file (openapi.json) bundled with the node.

Troubleshooting

  • Missing or invalid API credentials: Ensure that the API key credential is correctly configured and has access to the target API.
  • Incorrect property values: All four properties (tenantfilter, type, urlonly, userupn) are required. Missing or empty values may cause the API request to fail or return no results.
  • Network or API errors: Check network connectivity and API endpoint availability. Verify that the base URL in credentials is correct.
  • Unexpected response format: If the API changes, the node might not parse the response correctly. Updating the OpenAPI spec or node version may be necessary.

Links and References

Discussion