Portainer icon

Portainer

Interact with Portainer via API

Actions190

Endpoints → Endpoint Force Update Service

AI-generated

Overview

This node interacts with the Portainer API to force an update on a specific endpoint. It is useful in scenarios where you need to programmatically trigger an update or refresh of an endpoint's configuration or status within Portainer, such as after changing deployment settings or updating container configurations.

Practical examples include:

  • Automatically refreshing endpoint data after infrastructure changes.
  • Triggering updates as part of a CI/CD pipeline to ensure the latest configurations are applied.
  • Managing multiple endpoints by forcing updates remotely without manual intervention.

Properties

Name Meaning
Id The unique identifier of the endpoint to be updated. This is a required numeric value.
Body A JSON string containing the details for the update request body. This is required and represents the payload sent to the API to specify what aspects of the endpoint should be updated.

Output

The node outputs JSON data representing the response from the Portainer API after attempting to force the update on the specified endpoint. This typically includes confirmation of the update action, status information, or error details if the operation failed.

No binary data output is involved.

Dependencies

  • Requires an active connection to a Portainer instance via its API.
  • Needs an API authentication token or key configured in the node credentials to authorize requests.
  • The base URL for the Portainer API must be provided in the credentials configuration.

Troubleshooting

  • Invalid Endpoint Id: If the provided endpoint ID does not exist or is incorrect, the API will return an error. Verify the endpoint ID before running the node.
  • Malformed Body JSON: The "Body" property must be a valid JSON string. Invalid JSON will cause the request to fail. Use proper JSON formatting.
  • Authentication Errors: Ensure that the API key or token is correctly set up and has sufficient permissions to perform endpoint updates.
  • Network Issues: Connectivity problems with the Portainer server will prevent the node from executing successfully. Check network access and firewall settings.
  • API Version Mismatch: Using incompatible API versions between the node and Portainer may cause unexpected errors.

Links and References

Discussion