Portainer icon

Portainer

Interact with Portainer via API

Actions190

Kubernetes → Delete Cluster Role Bindings

AI-generated

Overview

This node operation allows you to delete multiple Kubernetes Cluster Role Bindings in a specified environment. It is useful for managing access control by removing cluster role bindings that are no longer needed or should be revoked. For example, if you want to revoke certain permissions granted to users or service accounts across your Kubernetes cluster, this operation can batch delete those bindings efficiently.

Properties

Name Meaning
Id Environment identifier (a numeric ID) specifying which Kubernetes environment to target.
Payload A string representing a list of cluster role bindings to delete.

Output

The output JSON will typically contain the response from the Kubernetes API after attempting to delete the specified cluster role bindings. This may include success confirmations or error details for each binding deletion request. The node does not explicitly handle binary data output.

Dependencies

  • Requires an API key credential for authenticating with the Kubernetes environment.
  • The node interacts with the Kubernetes API endpoint corresponding to the provided environment ID.
  • Proper network access and permissions to delete cluster role bindings in the targeted Kubernetes cluster are necessary.

Troubleshooting

  • Invalid Environment ID: If the environment identifier is incorrect or does not exist, the node will fail to connect or perform deletions. Verify the environment ID before running.
  • Malformed Payload: The payload must be a correctly formatted string listing cluster role bindings. Improper formatting may cause API errors.
  • Insufficient Permissions: The API key or credentials used must have permission to delete cluster role bindings; otherwise, authorization errors will occur.
  • API Connectivity Issues: Network problems or incorrect API URLs can prevent successful requests.

Links and References

Discussion