com.limdm.printers¶
Console: Printers.
{"printers": [{"name": "office", "uri": "ipps://printer.example.com/ipp/print", "location": "2nd floor",
"description": "Office printer", "default": true, "duplex": "two-sided-long-edge", "paper_size": "A4"}],
"install_cups": false}
| Field | Type | Rules |
|---|---|---|
printers[].name |
text | lower case letters, digits, ., _, -; unique |
printers[].uri |
text | ipp://, ipps://, socket:// or lpd:// with a host, up to 512 characters, no credentials, spaces, quotes or control characters |
printers[].ppd |
text | a model as lpinfo -m lists it; required for socket:// and lpd:// |
printers[].package |
text | package that provides the PPD, installed first |
printers[].location |
text | one line up to 128 characters, no quotes |
printers[].description |
text | name print dialogs show, defaults to name; one line up to 128 characters |
printers[].default |
true or false | system default printer; at most one |
printers[].duplex |
text | one-sided, two-sided-long-edge or two-sided-short-edge |
printers[].paper_size |
text | media name such as A4, Letter or iso_a4_210x297mm |
install_cups |
true or false | install CUPS where it is missing |
Not a list type: the item evaluated last wins. At most 100 printers. CUPS print queues are set
up with lpadmin (separate arguments, no shell).
- The queue is named
limdm-<name>. Queues with thelimdm-prefix that are no longer declared are deleted, every other queue is left alone. Removing the item deletes all managed queues. ipp://oripps://withoutppdgives a driverless IPP Everywhere queue (lpadmin -m everywhere).duplexsetssides-default,paper_sizesetsmedia-default.- Queues are never shared (
printer-is-shared=false). - A queue is only set up again when its entry changes:
-m everywhereasks the printer for its capabilities and fails while it is off, then the agent retries on the next cycle. - Devices without CUPS are skipped, unless
install_cupsis true: then the agent installs thecupspackage and starts the service.
Field reference¶
Generated from the payload schema of the server (GET /api/v1/schemas/{type}), the same reference the console editor shows. Unknown fields are rejected.
com.limdm.printers¶
Console: Printers. CUPS print queues, driverless IPP Everywhere or with a PPD.
| Field | Type | Meaning | Limits |
|---|---|---|---|
printers |
list of object | Printers | |
printers[].name |
string | Queue name After the limdm- prefix. | |
printers[].uri |
string | URI ipp:// or ipps://; socket:// and lpd:// only with a PPD. | |
printers[].ppd |
string | PPD model As lpinfo -m lists it; empty uses driverless IPP Everywhere. | |
printers[].package |
string | Driver package Installed first, provides the PPD. | |
printers[].location |
string | Location | |
printers[].description |
string | Display name | |
printers[].default |
boolean | Default printer | |
printers[].duplex |
string | Duplex | one of "one-sided" (One sided), "two-sided-long-edge" (Long edge), "two-sided-short-edge" (Short edge) |
printers[].paper_size |
string | Paper size For example A4 or Letter. | |
install_cups |
boolean | Install CUPS Where it is missing; otherwise such devices are skipped. |