GitLab API

GitlabTool

Actions905

Overview

This node operation updates a specific cluster associated with a project in GitLab using the GitLab API. It is useful for managing and modifying cluster configurations within GitLab projects, such as updating cluster details or settings. For example, a DevOps engineer might use this node to update the cluster information for a project to reflect changes in infrastructure or deployment environments.

Use Case Examples

  1. Updating cluster details for a project in GitLab to change its configuration or metadata.
  2. Modifying cluster settings to enable or disable certain features or integrations within a GitLab project.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method used for the request, defaulting to PUT for this operation.
Path Parameters Parameters in the request path identifying the project and cluster to update.

Output

JSON

  • response - The JSON response from the GitLab API after updating the cluster, containing the updated cluster details.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and cluster ID are correct and exist in GitLab to avoid 404 errors.
  • Verify that the API key has sufficient permissions to update clusters in the project to prevent authorization errors.
  • Check the request body schema matches the expected format to avoid validation errors from the API.

Links

Discussion