stream.device.capture
Operation: POST /dataservice/stream/device/capture
@overload
def post(payload: CreatePacketCaptureReq) -> PacketCaptureInfo: ...
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.stream.device.capture.post()
Operation: POST /dataservice/stream/device/capture/{deviceUUID}/{sessionId}
@overload
def post(
device_uuid: str, session_id: str
) -> FormPacketCaptureRes: ...
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.stream.device.capture.post()