GitLab API icon

GitLab API

Gitlab

Actions917

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 for the request, defaulting to GitLab API key authentication.
baseUrl Base URL for the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, defaulting to PUT for this operation.
Path Parameters Parameters for the request path, including the project ID or URL-encoded path and the cluster ID to update.

Output

JSON

  • id - The unique identifier of the updated cluster.
  • name - The name of the cluster.
  • environment_scope - The environment scope associated with the cluster.
  • platform_kubernetes_attributes
    • api_url - The API URL of the Kubernetes platform for the cluster.
    • token - The token used for Kubernetes platform authentication.
    • ca_cert - The CA certificate for the Kubernetes platform.
  • created_at - Timestamp when the cluster was created.
  • updated_at - Timestamp when the cluster was last updated.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and cluster ID are correctly specified and exist in GitLab to avoid 404 errors.
  • Verify that the API key used for authentication has sufficient permissions to update clusters in the project.
  • Check the request body schema to ensure all required fields are provided and correctly formatted to prevent validation errors.
  • If skipping authentication, ensure the GitLab instance allows unauthenticated requests for this operation, otherwise the request will fail.

Links

Discussion