Portainer icon

Portainer

Interact with Portainer via API

Actions190

Resource Controls → Resource Control Delete

AI-generated

Overview

This node operation deletes a specific resource control in Portainer by its identifier. It is useful when you need to programmatically remove access restrictions or permissions associated with a resource control in your Portainer environment. For example, if a resource control is no longer needed or was created by mistake, this operation allows you to clean it up automatically as part of an automation workflow.

Properties

Name Meaning
Id The unique identifier of the resource control to delete. This is a required numeric value specifying which resource control will be removed.

Output

The output JSON typically contains the response from the Portainer API after attempting to delete the resource control. This may include confirmation of deletion or error details if the operation failed. The node does not output binary data.

Dependencies

  • Requires an API key credential for authenticating with the Portainer API.
  • The node expects the base URL of the Portainer instance to be configured in the credentials.
  • The Portainer API must be accessible from the n8n environment where this node runs.

Troubleshooting

  • Common issues:
    • Invalid or missing resource control ID will cause the deletion to fail.
    • Network connectivity problems or incorrect Portainer URL can prevent API communication.
    • Insufficient permissions on the API key may result in authorization errors.
  • Error messages:
    • "Resource control not found" indicates the specified ID does not exist.
    • "Unauthorized" or "Forbidden" suggests the API key lacks necessary permissions.
    • "Network Error" points to connectivity issues; verify the URL and network access.

Links and References

Discussion