Press Ticket icon

Press Ticket

Interage com a API do Press Ticket®

Sistema → Reiniciar PM2

AI-generated

Overview

This node interacts with the Press Ticket® API to perform system-related operations. Specifically, for the 'Sistema' resource and 'Reiniciar PM2' operation, it sends a POST request to the API endpoint to restart the PM2 process manager. This is useful for automating system maintenance tasks such as restarting background services managed by PM2.

Use Case Examples

  1. Automate restarting the PM2 process manager on your server to apply configuration changes or recover from errors without manual intervention.
  2. Integrate system restart commands into your workflow to ensure high availability and uptime.

Output

JSON

  • success - Indicates if the PM2 restart request was successful
  • message - Response message from the API regarding the restart operation

Dependencies

  • Press Ticket® API with an API token credential

Troubleshooting

  • Ensure the API token credential is valid and has permissions to perform system operations.
  • Check network connectivity to the Press Ticket® API endpoint.
  • If the restart operation fails, verify that the PM2 process manager is installed and accessible on the target system.

Discussion