GitLab API

GitlabTool

Actions1095

Clusters → getApiV4ProjectsIdClusters

AI-generated

Summary

Retrieve the list of clusters associated with a specific GitLab project by its ID or URL-encoded path.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project whose clusters are being requested.
  • page — The page number to retrieve in paginated cluster results (optional).
  • per_page — The number of cluster items to return per page (optional).
  • baseUrl — The base URL of the GitLab instance, defaulting to https://gitlab.com if not specified.
  • skipAuthentication — Option to skip authentication; when false, uses configured GitLab API credentials.
  • method — HTTP method to use, defaults to GET for this operation.

Output shape

a list of cluster objects associated with the specified project, potentially paginated according to 'page' and 'per_page' parameters

Supports pagination via 'page' and 'per_page' query parameters. Authentication can be optionally skipped if configured. Uses the GitLab API at /api/v4/projects/{id}/clusters endpoint.

Links

Discussion