Dataiku DSS icon

Dataiku DSS

Use the Dataiku DSS API

Actions364

Overview

This node integrates with the Dataiku DSS API to perform various operations related to security code environments, among many other resources. Specifically for the Security resource and the Update Code Env operation, it updates an existing code environment in Dataiku DSS. This is useful when you need to modify or configure the settings of a code environment used within Dataiku DSS projects, such as changing environment language or updating environment parameters.

Common scenarios include:

  • Updating Python or R environments used by Dataiku DSS for running recipes or notebooks.
  • Modifying environment configurations to add or remove packages or change runtime settings.
  • Automating environment management as part of CI/CD pipelines or project automation workflows.

Example use case:

  • You have a Python code environment named "py3_env" and want to update its configuration (e.g., package versions or environment variables) programmatically via n8n.

Properties

Name Meaning
Env Lang The programming language of the code environment to update (e.g., "python", "r").
Env Name The name identifier of the code environment to update.
Request Body JSON object containing the details and configuration to update the code environment with.

Output

The node outputs the response from the Dataiku DSS API after attempting to update the code environment. The output is provided in the json field and typically contains the updated code environment object or confirmation of the update.

If the operation involves downloading files (not applicable here), binary data would be returned, but for this operation, the output is JSON.

Dependencies

  • Requires an active connection to a Dataiku DSS instance.
  • Requires an API key credential for authenticating with the Dataiku DSS API.
  • The node expects the Dataiku DSS server URL and user API key to be configured in the credentials.

Troubleshooting

  • Missing Credentials Error: If the node throws "Missing Dataiku DSS API Credentials," ensure that the API key credential is properly set up in n8n.
  • Required Parameter Errors: The node validates required parameters like Env Lang and Env Name. Missing these will cause errors. Make sure these are provided.
  • API Errors: Errors returned from the Dataiku DSS API will be wrapped and shown with messages like "Error calling Dataiku DSS API." Check the API endpoint permissions and correctness of the request body.
  • Invalid JSON in Request Body: The Request Body must be valid JSON. Invalid JSON will cause parsing errors before sending the request.

Links and References


This summary focuses on the Security resource's Update Code Env operation as requested, based on static analysis of the provided source code and property definitions.

Discussion