v1.policy_group.device.preview

Operation: POST /dataservice/v1/policy-group/{policyGroupId}/device/{deviceId}/preview

Get a preview of the configuration for a device

def post(
    policy_group_id: str,
    device_id: str,
    payload: GetPolicyGroupDeviceConfigurationPreviewPostRequest,
) -> GetPolicyGroupDeviceConfigurationPreviewPostResponse: ...

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.policy_group.device.preview.post()