Cluster discovery API (certificate-based) (deprecated)
Tier: Free, Premium, Ultimate
Offering: GitLab.com, GitLab Self-Managed, GitLab Dedicated
This feature was deprecated in GitLab 14.5.
Discover certificate-based clusters
Gets certificate-based clusters that are registered to a group, subgroup, or project.
GET /discover-cert-based-clusters
Parameters:
Attribute | Type | Required | Description |
---|---|---|---|
group_id
| integer/string | yes | The ID of the group |
Example request:
curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/discover-cert-based-clusters?group_id=1"
Example response:
{
"groups": {
"my-clusters-group": [
{
"id": 2,
"name": "group-cluster-1"
}
],
"my-clusters-group/subgroup1/subsubgroup1": [
{
"id": 4,
"name": "subsubgroup-cluster"
}
]
},
"projects": {
"my-clusters-group/subgroup1/subsubgroup1/subsubgroup-project-with-cluster": [
{
"id": 3,
"name": "subsubgroup-project-cluster"
}
],
"my-clusters-group/project1-with-clustser": [
{
"id": 1,
"name": "test"
}
]
}
}