Plug Database icon

Plug Database

Run Plug Database commands over REST or Socket.

SQL → Get Client Token Policy

AI-generated

Summary

Retrieves the client token policy for the selected Plug agent through the Plug SQL JSON-RPC interface. Use guided mode for the built-in policy request or advanced mode to provide a clientToken.getPolicy command.

Inputs

  • Channel — Select REST or Socket; defaults to REST.
  • Agent ID — Overrides the agent ID from the credential when set.
  • Client Token — Overrides the client token from the credential when set.
  • Include Plug Metadata — Defaults to true; controls whether the output includes a __plug metadata object.
  • Input Mode — Choose Guided (default) or Advanced. Advanced mode requires a raw JSON-RPC command; the resolved client token is injected where supported.
  • Additional Options — In guided mode, optionally set the timeout, API version, command metadata JSON, request for server timings, and maximum parallel input items.
  • Socket Options — When using Socket, configure stream buffer limits, pull window size, relay fast path, and server timings.

Output shape

One or more n8n items containing the normalized JSON-RPC result.

The exact output fields depend on Plug's response and the selected response mode. With metadata enabled, items include __plug metadata. The operation is read-only; it does not change the policy.

Links

Discussion