GitLab API icon

GitLab API

Gitlab

Actions1062

Clusters → getApiV4AdminClustersClusterId

AI-generated

Summary

Retrieve detailed information about a specific GitLab cluster using its cluster ID.

Inputs

  • cluster_id (required) — The unique identifier of the cluster to retrieve details for.
  • skipAuthentication — Optionally skip authentication for this request; defaults to false.
  • baseUrl — The base URL of the GitLab instance; defaults to 'https://gitlab.com'.
  • method — HTTP method to use; defaults to 'GET'.

Output shape

a JSON object containing the detailed properties of the specified cluster.

The cluster_id path parameter is required. Authentication is used by default unless explicitly skipped. The operation calls the endpoint '/api/v4/admin/clusters/{cluster_id}' using the GET method.

Examples

Example 1: Retrieve cluster details

Set cluster_id to the desired cluster's numeric ID; leave other parameters as default to authenticate and use GitLab's public base URL.

Links

Discussion