Tomacco

Docs Operation reference catalog operations

catalog operations#

4 operations. Generated from assets/operations.json; all areas.

On this page (4)

catalog.list#

Device catalog

List built-in and custom device profiles with provenance.

Annotations: read-only, idempotent, open world.

ArgumentTypeRequiredDefaultDetails
platformstringone of ios, android, generic
tomaccoctl call catalog.list

catalog.import#

Import models

Validate and atomically import custom device profile JSON. Built-ins are immutable.

Annotations: writes, not idempotent, open world.

ArgumentTypeRequiredDefaultDetails
pathstringyesnon-empty; Absolute local filesystem path
replacebooleanfalse
tomaccoctl call catalog.import '{"path":"<path>"}'

catalog.export#

Export model

Export a profile to a new JSON file.

Annotations: writes, not idempotent, open world.

ArgumentTypeRequiredDefaultDetails
profile_idstringyes
pathstringyesnon-empty; Absolute local filesystem path
tomaccoctl call catalog.export '{"profile_id":"<profile_id>","path":"<path>"}'

catalog.remove#

Remove custom model

Remove a custom profile by ID.

Annotations: destructive, idempotent, open world.

ArgumentTypeRequiredDefaultDetails
profile_idstringyes
tomaccoctl call catalog.remove '{"profile_id":"<profile_id>"}'

View this page as Markdown on GitHub