pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python-gitlab/python-gitlab/blob/refs/heads/main/docs/gl_objects/clusters.rst

af.css" /> python-gitlab/docs/gl_objects/clusters.rst at refs/heads/main · python-gitlab/python-gitlab · GitHub
Skip to content

Latest commit

 

History

History
87 lines (59 loc) · 1.89 KB

File metadata and controls

87 lines (59 loc) · 1.89 KB

Clusters (DEPRECATED)

Warning

Cluster support was deprecated in GitLab 14.5 and disabled by default as of GitLab 15.0

Reference

Examples

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()
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy