Portainer icon

Portainer

Interact with Portainer via API

Actions190

Intel → Device Action

AI-generated

Overview

This node performs a "Device Action" operation within the "Intel" resource context. It allows users to send specific commands or actions to a device identified by its unique device ID and environment ID. This is useful in scenarios where you need to remotely control or trigger operations on Intel devices, such as updating configurations, rebooting devices, or executing custom commands.

Practical examples include:

  • Remotely restarting an Intel device in a network.
  • Sending configuration updates or commands to a specific device.
  • Triggering diagnostic or maintenance tasks on targeted hardware.

Properties

Name Meaning
Id The environment identifier representing the context or group where the device resides.
Device Id The unique identifier of the target device on which the action will be performed.
Body The content of the device action, typically a command or JSON string describing the action to execute.

Output

The node outputs JSON data representing the response from the device action request. This typically includes status information about the execution of the action, any returned data from the device, or error messages if the action failed.

If the device action involves binary data (not indicated here), it would be included in the output accordingly, but based on the provided code and properties, the output is primarily JSON.

Dependencies

  • Requires an API key credential for authenticating requests to the Intel device management service.
  • The node depends on a configured base URL endpoint for the Intel API.
  • No additional external libraries are explicitly required beyond standard HTTP request handling.

Troubleshooting

  • Common issues:

    • Invalid or missing environment or device IDs can cause the action to fail.
    • Malformed or incorrect body content may result in errors or unexpected behavior.
    • Network connectivity problems or incorrect API endpoint configuration can prevent successful requests.
  • Error messages:

    • Authentication failures indicate missing or invalid API credentials; ensure the API key is correctly set.
    • "Device not found" or similar errors suggest incorrect device identifiers.
    • Validation errors on the body content require checking the format and content of the action payload.

Links and References

  • Intel device management API documentation (refer to your Intel device API docs for detailed action formats).
  • n8n documentation on creating and using custom nodes with API integrations.

Discussion