Toggle table of contents sidebar
Clusters (DEPRECATED)¶Warning
Cluster support was deprecated in GitLab 14.5 and disabled by default as of GitLab 15.0
Reference¶v4 API:
GitLab API: https://docs.gitlab.com/api/project_clusters
GitLab API: https://docs.gitlab.com/api/group_clusters
List clusters for a project:
clusters = project.clusters.list(get_all=True)
Create an cluster for a project:
cluster = project.clusters.create( { "name": "cluster1", "platform_kubernetes_attributes": { "api_url": "http://url", "token": "tokenval", }, })
Retrieve a specific cluster for a project:
cluster = project.clusters.get(cluster_id)
Update an cluster for a project:
cluster.platform_kubernetes_attributes = {"api_url": "http://newurl"} cluster.save()
Delete an cluster for a project:
cluster = project.clusters.delete(cluster_id) # or cluster.delete()
List clusters for a group:
clusters = group.clusters.list(get_all=True)
Create an cluster for a group:
cluster = group.clusters.create( { "name": "cluster1", "platform_kubernetes_attributes": { "api_url": "http://url", "token": "tokenval", }, })
Retrieve a specific cluster for a group:
cluster = group.clusters.get(cluster_id)
Update an cluster for a group:
cluster.platform_kubernetes_attributes = {"api_url": "http://newurl"} cluster.save()
Delete an cluster for a group:
cluster = group.clusters.delete(cluster_id) # or cluster.delete()
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4