TrueNAS SCALE Version DocumentationThis content follows the TrueNAS SCALE 23.10 (Cobia) releases. Use the Product and Version selectors above to view content specific to different TrueNAS software or major version.
API_Key
6 minute read.
Last Modified 2024-03-19 08:38 EDTThe SCALE CLI guide is a work in progress! New namespace and command documentation is continually added and maintained, so check back here often to see what is new!
The api_key namespace has five commands and is based on API key management functions found in the SCALE API and web UI. It provides access to API key creation and management methods through the api_key commands.
The following api_key commands allow you to create, view, and delete API keys.
You can enter commands from the main CLI prompt or from the auth namespace prompt.
The SCALE CLI guide is a work in progress! New namespace and command documentation is continually added and maintained, so check back here often to see what is new!
Enter the
--
flag following any CLI command to open the interactive arguments editor text-based user interface (TUI).
The create
command lets you create simple or complex API keys.
The delete
command deletes an API key.
The get_instance
command returns a table of properties for the specified API key.
The query
command returns a table of properties for all API keys.
The update command allows you to update existing API keys.