v1.topology_group.device.preview

Operation: POST /dataservice/v1/topology-group/{topologyGroupId}/device/{deviceId}/preview

Get a preview of the configuration for a device

def get_topology_group_device_configuration_preview(
    topology_group_id: str,
    device_id: str,
    payload: Optional[
        GetTopologyGroupDeviceConfigurationPreviewPostRequest
    ] = None,
) -> 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.device.preview.get_topology_group_device_configuration_preview()