cml_openapi
Returns the live OpenAPI specification for Cisco CML2 as a JSON string, enabling programmatic access to API endpoints. Caches results for 24 hours with an option to force refresh.
Instructions
Return CML2's live OpenAPI spec as a JSON string.
Cached at $CML_CACHE_DIR/openapi.json (default ~/.cache/cml/) for 24h. Set refresh=True to force a re-fetch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| refresh | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |