The capabilities of another token on each path: POST sys/capabilities (the caller needs
update on sys/capabilities; otherwise PermissionDeniedError).
The capabilities of the client token on each path: POST sys/capabilities-self. Returns a
map from each requested path to its capabilities (create, read, update, patch,
delete, list, sudo, root or deny), so callers can check a policy before acting.
const caps = await client.sys.capabilitiesSelf(["secret/data/app/db"]);
if (caps.allows("secret/data/app/db", Capability.Read)) { ... }
Creates or updates an AppRole role: POST auth/<mount>/role/<name>.
Deletes an AppRole role.
Disables an auth method; its tokens are revoked.
Disables (unmounts) a secrets engine; its data is deleted.
Enables an auth method at path.
Enables a secrets engine at path. A used path raises ValidationError.
Generates a new secret id for an AppRole role.
GET sys/health (unauthenticated). Sealed, standby and uninitialised nodes are no error.
GET sys/leader (unauthenticated).
AppRole role names; [] when there is none.
Auth methods by path ("approle/" → info).
Secrets engines by path ("secret/" → info).
ACL policy names (includes default and root).
Reads an ACL policy; NotFoundError when missing.
The role id of an AppRole role; NotFoundError for unknown roles.
GET sys/seal-status (unauthenticated).
Server version from sys/health; UnsupportedError when the server reports none.
Creates or replaces an ACL policy: PUT sys/policies/acl/<name>.
System backend:
client.sys. Most write calls need a privileged (root/sudo) token.