template.policy.definition.hubandspoke.preview

Operation: POST /dataservice/template/policy/definition/hubandspoke/preview

Preview policy definition

def preview_policy_definition_4(
    payload: Optional[Any] = None,
) -> Any: ...

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.template.policy.definition.hubandspoke.preview.preview_policy_definition_4()

Operation: GET /dataservice/template/policy/definition/hubandspoke/preview/{id}

Preview policy definition

def preview_policy_definition_by_id_4(id: str) -> Any: ...

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.template.policy.definition.hubandspoke.preview.preview_policy_definition_by_id_4()