GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation updates a specific cluster within a GitLab group by sending a PUT request to the GitLab API endpoint `/api/v4/groups/{id}/clusters/{cluster_id}`. It is useful for managing and modifying cluster configurations associated with a GitLab group, such as updating cluster details or settings.

Use Case Examples

  1. Updating cluster configuration for a specific group in GitLab.
  2. Modifying cluster details like name, environment scope, or platform settings within a GitLab group.

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.
baseUrl Base URL for the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET but PUT is used for this operation.
Path Parameters Parameters for the API path, including the group ID and cluster ID to identify the cluster to update.

Output

JSON

  • id - The ID of the updated cluster.
  • name - The name of the updated cluster.
  • environment_scope - The environment scope of the cluster.
  • platform_kubernetes_attributes - Attributes related to the Kubernetes platform of the cluster.
  • created_at - Timestamp when the cluster was created.
  • updated_at - Timestamp when the cluster was last updated.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the group ID and cluster ID path parameters are correctly set and valid to avoid 404 Not Found errors.
  • Verify that the authentication token is valid and has sufficient permissions to update clusters in the specified group to prevent 401 Unauthorized or 403 Forbidden errors.
  • Check the request body schema for required fields and correct data types to avoid 400 Bad Request errors.

Links

Discussion