AvantGuard - ConnectSecure icon

AvantGuard - ConnectSecure

AvantGuard - ConnectSecure

Actions223

Overview

This node operation, "Post Migrate Agents" under the "Agent" resource, is designed to send a POST request to migrate or manage agents within a system. It allows users to perform actions such as migrating companies associated with agents, restarting agents, or updating agent information by sending appropriate messages and data in the request body.

Common scenarios where this node would be beneficial include:

  • Migrating agents from one company to another.
  • Restarting specific agents remotely.
  • Updating agent details programmatically.

For example, an IT administrator could use this node to automate the migration of multiple agents to a new company ID or restart agents after deploying updates.

Properties

Name Meaning
X USER ID The user identifier required for authentication or tracking purposes, sent as a header.
Additional Body Fields Optional fields to customize the request body:
- Company Id Numeric ID of the source company related to the agents.
- Dest Company Id Numeric ID of the destination company to which agents will be migrated.
- Message Action to perform; options are: "migrate_company", "restart_agent", or "update_agent".
- Agent Ids JSON array of agent IDs to target for the operation (e.g., agents to migrate or restart).

Output

The node outputs JSON data representing the response from the API after performing the requested operation on agents. This typically includes status information about the migration, restart, or update process. There is no indication that binary data is output by this node.

Dependencies

  • Requires an API key credential for authentication with the AvantGuard ConnectSecure service.
  • Depends on the base URL and headers configured via credentials.
  • Uses the @avantguardllc/n8n-openapi-node package and an OpenAPI specification (openapi.json) to build request properties dynamically.

Troubleshooting

  • Missing or invalid X USER ID: The node requires the "X USER ID" header; ensure it is provided and correct to avoid authentication errors.
  • Invalid JSON in Agent Ids: The "agent_ids" field expects valid JSON; malformed JSON will cause parsing errors.
  • Incorrect company IDs or message values: Using invalid or unsupported company IDs or message options may result in API errors.
  • API connectivity issues: Verify the base URL and network connectivity to the AvantGuard API endpoint.
  • Credential errors: Ensure the API key credential is correctly set up and has necessary permissions.

Links and References

Discussion