Portainer icon

Portainer

Interact with Portainer via API

Actions190

Backup → Restore

AI-generated

Overview

This node's Backup - Restore operation allows users to restore data from a backup by sending a custom payload to the target system. It is useful in scenarios where you need to programmatically restore system states, configurations, or data snapshots via an API that accepts a restore request payload.

Practical examples include:

  • Restoring application settings after a failure.
  • Reverting to a previous state during deployment pipelines.
  • Automating disaster recovery processes by feeding backup data directly into the system.

Properties

Name Meaning
Restore Payload The JSON or string payload representing the restore request body to be sent to the API. This contains the backup data or instructions for restoration.

Output

The node outputs the response from the restore API call in the json field of the output data. This typically includes confirmation of success, error messages, or details about the restored data. If the API returns binary data (e.g., files), it would be included in the binary output, but based on the provided code and properties, the output is expected to be JSON.

Dependencies

  • Requires an API key credential for authenticating with the Portainer API or equivalent service.
  • Needs the base URL of the API endpoint configured in credentials.
  • Depends on the external API accepting the restore payload in the request body.

Troubleshooting

  • Invalid Payload Errors: Ensure the "Restore Payload" property contains correctly formatted JSON or string as expected by the API. Malformed payloads will cause the API to reject the request.
  • Authentication Failures: Verify that the API key or authentication token is valid and has sufficient permissions to perform restore operations.
  • Network Issues: Check connectivity to the API endpoint URL configured in credentials.
  • API Response Errors: Review the API response message in the node output for specific error codes or messages to guide troubleshooting.

Links and References

Discussion