{"type":"api","title":"Enable DM Log","meta":{"id":"/apps/pubhub/media/cisco-catalyst-sd-wan-api-guide-20-18/1c4807bcb76af36988ebb37dc2e455b1787a155e/d2f02ba2-fd0d-3a26-bcc5-feafc8f24d17","info":{"title":"Monitoring and Troubleshooting","description":"Includes API operations for the following:\n- Real-time monitoring\n- Accessing statistics APIs and statistics bulk APIs\n- Retrieving device state\n- Managing alarms and events\n","contact":{"email":"vmanage@cisco.com"},"version":"20.18 - 2025-08-15"},"openapi":"3.1.0","servers":[{"url":"/dataservice"}]},"spec":{"tags":["Troubleshooting Tools - Diagnostics"],"description":"Create DMLog session","operationId":"enableDMLog","requestBody":{"description":"DMLog Parameters","content":{"application/json":{"schema":{"type":"object","properties":{"deviceUUID":{"type":"string","example":"C8K-942126aa-964b-4f49-bb37-45fede1a8f45"},"enableRotation":{"type":"boolean","example":false},"enableTimer":{"type":"boolean","example":true},"interfaceName":{"type":"string","example":"GigabitEthernet5"},"modem":{"type":"boolean","example":true},"stopTime":{"type":"string","example":"12:34"},"vpn":{"type":"string","example":"0"}},"$$ref":"#/components/schemas/CreateDMLogReq"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"@rid":{"type":"integer","format":"int32","example":3765},"JSessionId":{"type":"string","example":"2j1QnIq4iFxEjwoxHfYK_zefKjpB7c3fFl483jac"},"isNewSession":{"type":"boolean","example":true},"isOwner":{"type":"boolean","example":true},"renewalTime":{"type":"integer","format":"int64","example":1695089425303},"requestStatus":{"type":"string","enum":["START","STOP","IN_PROGRESS","NOT_STARTED"]},"sessionId":{"type":"string","format":"uuid","example":"a9fd18d5-0303-43d1-b821-2358992e0274"},"startTime":{"type":"integer","format":"int64","example":1695089425303},"status":{"type":"string","example":"success","enum":["success","failure"]},"statusMessage":{"type":"string","example":"ok"},"type":{"type":"string","example":"pcap"},"user":{"type":"string","example":"admin"},"userIp":{"type":"string","example":"10.0.1.1"},"uuid":{"type":"string","example":"C8K-86adc384-8408-4cec-acdb-8117c40a8a24"}},"$$ref":"#/components/schemas/DmlogInfo"}}}},"400":{"description":"Bad Request"},"403":{"description":"Forbidden"},"500":{"description":"Internal Server Error"}},"method":"post","path":"/stream/dmlog"}}