How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

GitLab Clusters API

> [!warning]> These certificate-based cluster endpoints are [deprecated](https://gitlab.com/groups/gitlab-org/configure/-/work_items/8).Use this API to manage and discover the certificate-based Kubernetes clusters of an[instance](https://docs.gitlab.com/user/instance/clusters/), a[group](https://docs.gitlab.com/user/group/clusters/), or a[project](https://docs.gitlab.com/user/project/clusters/). Connecting a cluster to a group or aninstance lets you use the same cluster across multiple projects.Instance endpoints require administrator access. Group and project endpoints require the Maintaineror Owner role.

GitLab Clusters API is one of 189 APIs that GitLab publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

This API exposes 16 JSON Schema definitions.

Tagged areas include Cluster. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, authentication docs, an API reference, rate-limit docs, an AsyncAPI specification, and 16 JSON Schemas.

This API exposes 16 operations across 10 paths, and defines 19 schemas. It is described by OpenAPI 3.2.0, at version 19.6.

Requests are made against a single base URL, https://{hostname}.

16 operations 10 paths 19 schemas 3 DELETE7 GET3 POST3 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
19.6
Base URL
https://gitlab.com/api/v4
Authentication
HTTP Bearer, OAuth 2.0, API Key
Terms of Service
Resource Areas
1

Authentication & Security 3

GitLab Clusters API declares 3 security schemes for authenticating requests. It accepts HTTP bearer tokens (http). It supports OAuth 2.0 (oauth2) using the authorizationCode flow, exposing 9 scopes. An API key is passed in the header as PRIVATE-TOKEN (apiKey). By default, every request must be authenticated.

Paths & Operations 16

Across 10 paths, the API surfaces 16 operations — 3 DELETE, 7 GET, 3 POST, 3 PUT. Each is listed below with its method, path, parameters, and response codes.

Clusters 16

[!warning] These certificate-based cluster endpoints are deprecated. Use this API to manage and discover the certificate-based Kubernetes clusters of an instance, a group, or a pr…

GET
/api/v4/projects/{id}/clusters
List all clusters in a project
getApiV4ProjectsIdClusters 3 params → 200403404400
GET
/api/v4/projects/{id}/clusters/{cluster_id}
Retrieve a cluster from a project
getApiV4ProjectsIdClustersClusterId 2 params → 200403404400
PUT
/api/v4/projects/{id}/clusters/{cluster_id}
Update a cluster in a project
putApiV4ProjectsIdClustersClusterId 2 params body → 200400403404
DELETE
/api/v4/projects/{id}/clusters/{cluster_id}
Delete cluster from a project
deleteApiV4ProjectsIdClustersClusterId 2 params → 200403404400
POST
/api/v4/projects/{id}/clusters/user
Add a cluster to a project
postApiV4ProjectsIdClustersUser 1 param body → 201400403404
GET
/api/v4/groups/{id}/clusters
List all group clusters
getApiV4GroupsIdClusters 3 params → 200403404400
GET
/api/v4/groups/{id}/clusters/{cluster_id}
Retrieve a group cluster
getApiV4GroupsIdClustersClusterId 2 params → 200403404400
PUT
/api/v4/groups/{id}/clusters/{cluster_id}
Update a group cluster
putApiV4GroupsIdClustersClusterId 2 params body → 200400403404
DELETE
/api/v4/groups/{id}/clusters/{cluster_id}
Delete a group cluster
deleteApiV4GroupsIdClustersClusterId 2 params → 200403404400
POST
/api/v4/groups/{id}/clusters/user
Create a group cluster
postApiV4GroupsIdClustersUser 1 param body → 201400403404
GET
/api/v4/discover-cert-based-clusters
List all certificate-based clusters
getApiV4DiscoverCertBasedClusters 1 param → 200403400
GET
/api/v4/admin/clusters
List all instance clusters
getApiV4AdminClusters → 200403
GET
/api/v4/admin/clusters/{cluster_id}
Retrieve a single instance cluster
getApiV4AdminClustersClusterId 1 param → 200403404400
PUT
/api/v4/admin/clusters/{cluster_id}
Update an instance cluster
putApiV4AdminClustersClusterId 1 param body → 200400403404
DELETE
/api/v4/admin/clusters/{cluster_id}
Delete instance cluster
deleteApiV4AdminClustersClusterId 1 param → 200403404400
POST
/api/v4/admin/clusters/add
Create an instance cluster
postApiV4AdminClustersAdd body → 201400403404

Schemas 19

The contract defines 19 schemas that model the data the API accepts and returns. The most detailed are APIEntitiesBasicProjectDetails (24 properties), APIEntitiesClusterProject (16 properties), APIEntitiesClusterGroup (16 properties), APIEntitiesCluster (15 properties). Each schema is shown below with its type and property counts.

putApiV4ProjectsIdClustersClusterIdRequest
object
8 properties
APIEntitiesLicenseBasic
object
5 properties
APIEntitiesProjectIdentity
object
7 properties
APIEntitiesCluster
object
15 properties
APIEntitiesUserBasic
object
10 properties
APIEntitiesProviderGcp
object
7 properties
APIEntitiesCustomAttribute
object
2 properties
APIEntitiesNamespaceBasic
object
8 properties
APIEntitiesBasicGroupDetails
object
3 properties
postApiV4ProjectsIdClustersUserRequest
object
8 properties 2 required
APIEntitiesClusterProject
object
16 properties
putApiV4GroupsIdClustersClusterIdRequest
object
8 properties
APIEntitiesDiscoveredClusters
object
2 properties
postApiV4GroupsIdClustersUserRequest
object
8 properties 2 required
putApiV4AdminClustersClusterIdRequest
object
8 properties
APIEntitiesPlatformKubernetes
object
4 properties
APIEntitiesBasicProjectDetails
object
24 properties
APIEntitiesClusterGroup
object
16 properties
postApiV4AdminClustersAddRequest
object
8 properties 2 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

gitlab-clusters-api-openapi.yml Raw ↑

Other APIs GitLab publishes across the network.

GitLab Orbit gRPC API
GitLab GraphQL API
GitLab Applications API
GitLab Authorization API
GitLab Broadcast Messages API
GitLab Groups API
GitLab Metadata API
GitLab Project Webhooks API
GitLab Projects API
GitLab Tokens API
GitLab User Info API
GitLab Webhook Configuration API
Where this information came from

This is an independent, third-party profile of GitLab Clusters API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.