Scaleway Server Information Retrieval and Dynamic Filtering - n8n Workflow

Use this robust n8n workflow to retrieve Scaleway server details across multiple zones and dynamically filter results by name, tags, IP, or zone using a custom n8n trigger webhook.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

DevOps Engineers needing automated infrastructure reporting from Scaleway.
System Administrators who manage multi-zone Scaleway deployments.
Users looking for advanced examples of flow control and custom data processing within an n8n workflow.
Anyone seeking professional, pre-built n8n templates for cloud infrastructure monitoring.

Overview

This expert devops n8n workflow provides a powerful, centralized solution for infrastructure management on Scaleway. Traditional API calls often require multiple requests and complex logic to handle varied server types (like Compute instances versus Baremetal). This comprehensive n8n workflow solves this by automatically querying servers across all defined zones, normalizing heterogeneous data structures, and aggregating the results. By leveraging the flexibility of the n8n node structure, particularly the Code n8n node for data transformation, this process is standardized. The primary value lies in its dynamic filtering capability: users initiate the process using a single webhook n8n trigger and receive pre-filtered data instantly based on criteria like server name, tags, or public IP. This n8n template significantly improves operational efficiency and reporting capabilities.

How it Works

This automation begins with a Webhook n8n trigger, configured to accept an authenticated HTTP POST request containing searchby (the field to filter) and search (the keyword) parameters. The workflow immediately captures these inputs in the Edit Fields n8n node, alongside defining the Scaleway API token and the regional zone lists (ZONEINSTANCE, ZONEBAREMETAL).

The Split Out ZONEINSTANCE n8n node initializes the multi-zone iteration. The workflow then loops through each zone using the Loop Over Zone Instance n8n node. An If n8n node checks if the current zone requires a Baremetal API call; if true, the request goes to the Get scw baremetal by zone n8n node, otherwise it hits the standard Get scw instance by zone n8n node.

Once all server data is retrieved from the various API endpoints across all zones, the critical Code n8n node aggregates all responses. This custom n8n node uses JavaScript functions to harmonize the different data formats (e.g., handling IPv4/IPv6 extraction, differing status/state fields, and user data across server types), creating a unified dataset of normalized server objects.

Finally, a Switch n8n node inspects the incoming searchby parameter. It routes the full dataset to one of four dedicated filtering Code n8n nodes: Code search Tags, Code search Name, Code search publicip, or Code search zone. These dedicated custom n8n node scripts apply the requested filter. If the search criteria is invalid, the flow is routed to an error response. The final, filtered list is returned to the original requester using a Respond to Webhook n8n node, completing the n8n workflow execution.

Installation Guide


  1. Import the n8n Workflow: Copy the provided JSON data and paste it into your n8n instance via the 'New' menu -> 'Import from JSON'. This imports the full n8n workflow structure.

  2. Set Up Credentials: Open the Webhook n8n trigger node and ensure the Basic Authentication credentials are set up for secure access.

  3. Configure Scaleway Token: Navigate to the Edit Fields n8n node.

Find the assignment named Scaleway-X-Auth-Token.
Replace the placeholder value () with your actual Scaleway API token. This is essential for the HTTP Request n8n nodes to function correctly.

  1. Activate: Save and activate the n8n workflow. The webhook URL is now ready to receive filter requests.

Node Details

Webhook (n8n trigger): The starting point of this n8n workflow. It is configured for a POST request using basic authentication, listening for filtering parameters (searchby and search).
Edit Fields (n8n node): Collects the incoming search
by and search parameters and defines necessary configuration variables, most critically the Scaleway-X-Auth-Token required for all API calls by the HTTP Request n8n nodes.
Split Out ZONEINSTANCE / Loop Over Zone Instance (n8n nodes): These flow control n8n nodes manage the iteration process, ensuring that the Scaleway API is queried for servers in every defined region.
Get scw instance/baremetal by zone (HTTP Request n8n nodes): Executes API calls to Scaleway to retrieve server data, utilizing the X-Auth-Token set earlier. It dynamically adjusts the URL based on the current zone being processed by the n8n workflow.
Code (Data Aggregation n8n node): This major custom n8n node normalizes the output from all preceding HTTP Request n8n nodes. It contains extensive JavaScript to handle differences between Scaleway's Compute and Baremetal JSON responses, ensuring consistent output fields like name, publicip, and state across all servers.
Switch (n8n node): Routes the aggregated server list based on the value of the dynamic search_by parameter, directing the data to the appropriate filtering logic.
Code search [Tags/Name/IP/Zone] (Custom Filtering n8n nodes): Four specialized n8n nodes that use JavaScript to filter the incoming server list against the user-provided search keyword based on the specified criteria (e.g., filtering all items where server.json.tags includes the search term).
Respond to Webhook (n8n node): Returns the final, filtered JSON array of Scaleway server objects back to the external system that initiated this powerful n8n workflow.

Related n8n Workflows

Free

Nodes: 10 Nodes
Updated: December 26 2025
View all
Created by

Featured*