Portainer icon

Portainer

Interact with Portainer via API

Actions190

Resource Controls → Resource Control Update

AI-generated

Overview

This node allows updating a specific resource control in Portainer by sending updated details to the Portainer API. It is useful when you need to modify access controls or permissions associated with resources managed in Portainer, such as containers, volumes, or other entities. For example, you might update who can access a container or change the security settings of a resource.

Properties

Name Meaning
Id The unique identifier of the resource control to update. This specifies which resource control will be modified.
Body The JSON string containing the updated details of the resource control. This should include all necessary fields that define the new state of the resource control.

Output

The node outputs the response from the Portainer API after attempting to update the resource control. The output is structured as JSON and typically contains the updated resource control data or status information confirming the update. There is no binary data output.

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 node uses HTTP requests with JSON payloads to communicate with the Portainer API.

Troubleshooting

  • Invalid Id: If the provided resource control ID does not exist, the API will likely return an error indicating the resource was not found. Verify the ID before running the node.
  • Malformed Body: The body must be a valid JSON string representing the resource control details. Invalid JSON or missing required fields will cause the API to reject the request.
  • Authentication Errors: Ensure the API key credential is valid and has sufficient permissions to update resource controls.
  • Network Issues: Connectivity problems to the Portainer server will result in request failures. Check network access and the correctness of the base URL.

Links and References

Discussion