Keyturn docsCommand reference

keyturn drapi

the Domino REST API

drapi statusR

whether the HCL Domino REST API is installed and running, its version, ports and configuration files

keyturn drapi status [--wait DURATION] [--server URL] [--user NAME] [--ca FILE]
Exampleskeyturn drapi statuskeyturn drapi status -o json

drapi startM

start the Domino REST API task (load restapi)

keyturn drapi start [--timeout DURATION] [--dry-run] [--wait DURATION] [--server URL] [--user NAME] [--ca FILE] [--otp CODE]
Exampleskeyturn drapi start --dry-runkeyturn drapi start --timeout 3m

drapi stopD

end the Domino REST API task (tell restapi quit)

keyturn drapi stop [--yes] [--timeout DURATION] [--dry-run] [--wait DURATION] [--server URL] [--user NAME] [--ca FILE] [--otp CODE]
Exampleskeyturn drapi stop --dry-runkeyturn drapi stop --yes

drapi restartM

restart the Domino REST API with its configuration read again (tell restapi reload)

keyturn drapi restart [--timeout DURATION] [--dry-run] [--wait DURATION] [--server URL] [--user NAME] [--ca FILE] [--otp CODE]
Exampleskeyturn drapi restartkeyturn drapi restart --timeout 3m

drapi refreshM

apply the Domino REST API's configuration without a restart (tell restapi refresh)

keyturn drapi refresh [--timeout DURATION] [--dry-run] [--wait DURATION] [--server URL] [--user NAME] [--ca FILE] [--otp CODE]
Exampleskeyturn drapi refresh --dry-runkeyturn drapi refresh

drapi config showR

the Domino REST API's ports, keepconfig.d files and running configuration (secrets hidden)

keyturn drapi config show [<key>] [--all] [--wait DURATION] [--server URL] [--user NAME] [--ca FILE]
Exampleskeyturn drapi config showkeyturn drapi config show -o json

drapi config setM

set or remove keys in Keyturn's keepconfig.d/keyturn.json, then apply them (refresh or reload)

keyturn drapi config set [<key=value…>] [--unset KEY]… [--apply auto|reload|refresh|none] [--timeout DURATION] [--dry-run] [--wait DURATION] [--server URL] [--user NAME] [--ca FILE] [--otp CODE]
Exampleskeyturn drapi config set METRICSPORT=8891 --dry-runkeyturn drapi config set versions.setup.active=false --apply reloadkeyturn drapi config set --unset METRICSPORT

drapi accounts listR

v07d: HCL's functional accounts for the Domino REST API (health check, metrics, Management console) in keepconfig.d: names, kinds, active, which file; never a secret

keyturn drapi accounts list [--server URL] [--user NAME] [--ca FILE]
Exampleskeyturn drapi accounts list

drapi accounts setM

v07d: add or change one of HCL's functional accounts (health, metrics or management) in keepconfig.d/keyturn-accounts.json, its salted secret only from your environment; restart DRAPI and sign in with it

keyturn drapi accounts set <kind> <name> [--salt-at URL] [--drapi-ca FILE] [--inactive] [--no-reload] [--timeout DURATION] [--dry-run] [--server URL] [--user NAME] [--ca FILE] [--otp CODE]
Exampleskeyturn drapi accounts set health kt-health --dry-runkeyturn drapi accounts set metrics prometheus --no-reloadkeyturn drapi accounts set health kt-health --salt-at http://mail1.acme.com:8889

drapi accounts removeM

v07d: remove one of the functional accounts Keyturn wrote (keepconfig.d/keyturn-accounts.json), then restart DRAPI

keyturn drapi accounts remove <kind> <name> [--yes] [--no-reload] [--timeout DURATION] [--dry-run] [--server URL] [--user NAME] [--ca FILE] [--otp CODE]
Exampleskeyturn drapi accounts remove metrics prometheus --dry-runkeyturn drapi accounts remove metrics prometheus --yes

drapi healthR

is the Domino REST API healthy: its task, its status, its API port, its health check and metrics ports

keyturn drapi health [--health-user NAME] [--metrics-user NAME] [--wait DURATION] [--server URL] [--user NAME] [--ca FILE]
Exampleskeyturn drapi health

drapi scope listR

the Domino REST API's scopes: each maps a name to a database and its schema (setup API)

keyturn drapi scope list [--drapi-url URL] [--drapi-ca FILE] [--server URL] [--user NAME] [--ca FILE]
Exampleskeyturn drapi scope listkeyturn drapi scope list -o csv

drapi scope createM

make a scope and its schema for a database with HCL's defaults (setup API quickconfig)

keyturn drapi scope create <name> [--db DB] [--schema NAME] [--max-access LEVEL] [--create-db] [--allow-deletion] [--description TEXT] [--dry-run] [--drapi-url URL] [--drapi-ca FILE] [--server URL] [--user NAME] [--ca FILE]
Exampleskeyturn drapi scope create sales --db apps/sales.nsf --max-access Editor --dry-runkeyturn drapi scope create sales --db apps/sales.nsf --drapi-url https://mail1.acme.com:8880 --drapi-ca drapi.pem

drapi scope deleteD

remove a scope (the database and its schema stay; setup API)

keyturn drapi scope delete <name> [--yes] [--dry-run] [--drapi-url URL] [--drapi-ca FILE] [--server URL] [--user NAME] [--ca FILE]
Exampleskeyturn drapi scope delete sales --dry-runkeyturn drapi scope delete sales --yes

drapi schema listR

a database's Domino REST API schemas (setup API)

keyturn drapi schema list [--db DB] [--drapi-url URL] [--drapi-ca FILE] [--server URL] [--user NAME] [--ca FILE]
Exampleskeyturn drapi schema listkeyturn drapi schema list -o csv