Lathe Engines API
The engines API from Lathe — 22 operation(s) for engines.
Operations 28
GET
/instances/{instance_id}/postgres/databases
Postgres databases on the instance with size and open connections
#
POST
/instances/{instance_id}/postgres/databases
Create a Postgres database owned by the instance's role
#
DELETE
/instances/{instance_id}/postgres/databases/{name}
Drop a Postgres database (confirm = its name; open sessions are terminated)
#
GET
/instances/{instance_id}/postgres/databases/{name}/extensions
Extensions installed in a database and the ones this instance offers
#
PUT
/instances/{instance_id}/postgres/databases/{name}/extensions/{extension}
Install an extension from the offered list
#
DELETE
/instances/{instance_id}/postgres/databases/{name}/extensions/{extension}
Remove an extension from a database
#
PUT
/instances/{instance_id}/redis/console
The Redis console the portal runs: off, ro or rw (also gates the endpoints…
#
GET
/instances/{instance_id}/redis/keys/{name}
One key's value (first 200 members of a collection)
#
POST
/instances/{instance_id}/redis/command
Run one Redis command (read-only or read-write per the console mode; server…
#
DELETE
/instances/{instance_id}/couchdb/databases/{name}
Delete a CouchDB database (confirm = its name)
#
GET
/instances/{instance_id}/nats/streams
JetStream streams with subjects, messages, bytes and consumers
#
POST
/instances/{instance_id}/nats/streams/{name}/actions/purge
Purge every message from a stream (confirm = its name)
#
DELETE
/instances/{instance_id}/s3/buckets/{name}
Empty a bucket and delete it (confirm = its name)
#
GET
/instances/{instance_id}/auth/users
The app's users: address, how they sign in, when they were created and last…
#
POST
/instances/{instance_id}/auth/users
Create a user (optionally with a password; confirmed unless you say otherwise)
#
POST
/instances/{instance_id}/auth/users/actions/invite
Mail an invitation: the server makes the user and sends them a link that signs…
#
POST
/instances/{instance_id}/auth/users/actions/send-link
Mail somebody who already has an account a sign-in link or a password reset
#
PUT
/instances/{instance_id}/auth/users/{user_id}/ban
Ban a user or lift a ban. Nothing of theirs is lost either way
#
DELETE
/instances/{instance_id}/auth/users/{user_id}
Delete a user from the sign-in engine (confirm = their email address)
#
POST
/instances/{instance_id}/engines/postgres/query
Run one SQL statement and get the rows; the SQL console's mode decides whether…
#
GET
/instances/{instance_id}/engines/postgres/connections
Who holds a Postgres connection: by role, application_name and state, against…
#