v1.topology_group

Operation: POST /dataservice/v1/topology-group

Create a new Topology Group

def post(payload: CreateTopologyGroupPostRequest) -> str: ...

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.v1.topology_group.post()

Operation: PUT /dataservice/v1/topology-group/{topologyGroupId}

Edit a Topology Group

def put(
    topology_group_id: str, payload: EditTopologyGroupPutRequest
) -> str: ...

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.v1.topology_group.put()

Operation: DELETE /dataservice/v1/topology-group/{topologyGroupId}

Delete Topology Group

def delete(topology_group_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.v1.topology_group.delete()

Operation: GET /dataservice/v1/topology-group

@overload
def get(solution: Optional[str] = None) -> List[TopologyGroup]: ...

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.v1.topology_group.get()

Operation: GET /dataservice/v1/topology-group/{topologyGroupId}

@overload
def get(topology_group_id: str) -> TopologyGroup: ...

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.v1.topology_group.get()