app_registry.clusters

Operation: GET /dataservice/app-registry/clusters

Obtain all clusters with associated cloud accounts

def get(
    is_cached: Optional[bool] = True,
    offset: Optional[int] = 0,
    limit: Optional[int] = 0,
) -> List[ClusterProperties]: ...

Example:

from catalyswan.core import create_client

url = "example.com"
username = "admin"
password = "password123"

with create_client(
    url=url, username=username, password=password
) as client:
    client.app_registry.clusters.get()

Operation: POST /dataservice/app-registry/clusters

Manually upload kubeConfig

def post() -> None: ...

Example:

from catalyswan.core import create_client

url = "example.com"
username = "admin"
password = "password123"

with create_client(
    url=url, username=username, password=password
) as client:
    client.app_registry.clusters.post()

Operation: PUT /dataservice/app-registry/clusters/{id}

Edit the discovery status of a cluster

def put(id: str, payload: PutProperties) -> None: ...

Example:

from catalyswan.core import create_client

url = "example.com"
username = "admin"
password = "password123"

with create_client(
    url=url, username=username, password=password
) as client:
    client.app_registry.clusters.put()

Operation: DELETE /dataservice/app-registry/clusters/{id}

Delete manually uploaded cluster

def delete(id: str) -> None: ...

Example:

from catalyswan.core import create_client

url = "example.com"
username = "admin"
password = "password123"

with create_client(
    url=url, username=username, password=password
) as client:
    client.app_registry.clusters.delete()