template.config.device.mode.cli

Operation: GET /dataservice/template/config/device/mode/cli

Generates a JSON object that contains a list of valid devices in CLI mode

def get(type_: TypeParam) -> List[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.config.device.mode.cli.get()

Operation: POST /dataservice/template/config/device/mode/cli

Given a JSON list of devices not managed by any third member partners, push to devices from a CLI template

def post(payload: Any) -> 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.config.device.mode.cli.post()