GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves details of a specific cluster associated with a project in GitLab using the GitLab API. It is useful for scenarios where you need to fetch cluster information by providing the project ID or URL-encoded path and the cluster ID. For example, it can be used to monitor or manage Kubernetes clusters linked to GitLab projects.

Use Case Examples

  1. Fetch cluster details for project ID '123' and cluster ID '456' to monitor cluster status.
  2. Retrieve cluster configuration for a specific project to automate deployment workflows.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated endpoints.
Authentication Type of authentication to use, defaulting to GitLab API key authentication.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Path Parameters Parameters to specify the project ID or URL-encoded path and the cluster ID to identify the cluster to retrieve.

Output

JSON

  • id - The unique identifier of the cluster.
  • name - The name of the cluster.
  • environment_scope - The environment scope the cluster is associated with.
  • status - The current status of the cluster.
  • platform_kubernetes_version - The Kubernetes version of the cluster platform.
  • 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 project ID and cluster ID are correctly provided and URL-encoded if necessary.
  • Verify that the GitLab API key credential has sufficient permissions to access cluster information.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct.
  • Common error messages include 404 Not Found if the cluster or project does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion