Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PD-1601 / 25.04 / Pd 1601 update docs for new versioned api #3431

Merged
merged 32 commits into from
Jan 28, 2025
Merged
Show file tree
Hide file tree
Changes from 28 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
7043e7b
Update ManagingAPIKeys.md
DjP-iX Jan 10, 2025
ac1d97f
Create APIKeyCopy.png
DjP-iX Jan 10, 2025
6d8f729
Create APIKeyExpires.png
DjP-iX Jan 10, 2025
6defe94
Update APIKeysScreen.png
DjP-iX Jan 10, 2025
b2f1b2f
Update 25.04FeatureList.md
DjP-iX Jan 10, 2025
c378e12
Update ManagingAPIKeys.md
DjP-iX Jan 13, 2025
3c0aaac
Update APIKeysDelete.png
DjP-iX Jan 13, 2025
c31f91e
Update APIKeysEdit.png
DjP-iX Jan 13, 2025
caf0075
Update APIKeysScreen.png
DjP-iX Jan 13, 2025
7cba725
Update ManagingAPIKeys.md
DjP-iX Jan 13, 2025
8baffbc
Update APIKeysScreen.md
DjP-iX Jan 13, 2025
33e3468
Update ManagingAPIKeys.md
DjP-iX Jan 13, 2025
e0850a1
Update APIKeysScreen.md
DjP-iX Jan 13, 2025
2800007
Update ManagingAPIKeys.md
DjP-iX Jan 13, 2025
bdf0fec
Update _index.md
DjP-iX Jan 14, 2025
1df628b
Update _index.md
DjP-iX Jan 14, 2025
2bd8e0b
Update ManagingAPIKeys.md
DjP-iX Jan 14, 2025
2d19f2b
Update AdvancedSettingsScreen.md
DjP-iX Jan 14, 2025
ab946dc
Update _index.md
DjP-iX Jan 14, 2025
81bd1d1
Update APIKeysScreen.md
DjP-iX Jan 14, 2025
0ff58bb
Create APIDocs.md
DjP-iX Jan 14, 2025
e98fee6
Update SCALEReleaseNotes.md
DjP-iX Jan 14, 2025
dc1746b
Update 25.04FeatureList.md
DjP-iX Jan 14, 2025
64b1288
Update RESTAPIDeprecationNotice.md
DjP-iX Jan 14, 2025
8b74b4f
Merge branch 'master' into PD-1601-update-docs-for-new-versioned-api
DjP-iX Jan 14, 2025
dd8b2de
Revert "Merge branch 'master' into PD-1601-update-docs-for-new-versio…
DjP-iX Jan 14, 2025
efcddc9
Update _index.md
DjP-iX Jan 14, 2025
85759b2
Merge branch 'master' into PD-1601-update-docs-for-new-versioned-api
DjP-iX Jan 14, 2025
80d5458
Update static/includes/APIDocs.md
DjP-iX Jan 15, 2025
a995963
PD-1561 / None / Pd 1561 api key from api content (#3437)
DjP-iX Jan 24, 2025
888a5fb
Merge branch 'master' into PD-1601-update-docs-for-new-versioned-api
DjP-iX Jan 27, 2025
fdf90fd
Merge branch 'master' into PD-1601-update-docs-for-new-versioned-api
micjohnson777 Jan 28, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions content/SCALE/API/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ related: false

{{< include file="/static/includes/RESTAPIDeprecationNotice.md" >}}

You can access TrueNAS API documentation in the web interface by clicking **<i class="material-icons" aria-hidden="true">account_circle</i> > API Keys > API Docs**.
You can access TrueNAS API documentation in the web interface by clicking <i class="material-icons" aria-hidden="true" title="laptop" style="vertical-align: top;">laptop</i> **My API Keys** on the top right toolbar <i class="material-icons" aria-hidden="true">account_circle</i> user settings dropdown menu to open the **User API Keys** screen.
Click **API Docs** to view API documentation.
DjP-iX marked this conversation as resolved.
Show resolved Hide resolved

![SCALEapidocs](/images/SCALE/Dashboard/APIKeysScreen.png "API Docs location")

Alternatively, append `/api/docs/` to your TrueNAS host name or IP address in a browser to access the API documentation.

For convenience, we store static builds of the current 2.0 API documentation on the Docs Hub:
* [Websocket Protocol](/api/scale_websocket_api.html)
{{< include file="/static/includes/APIDocs.md" >}}
5 changes: 5 additions & 0 deletions content/SCALE/GettingStarted/SCALEReleaseNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ More details are available from [Software Releases]({{< relref "/TrueNASUpgrades

* {{< include file="/static/includes/RESTAPIDeprecationNotice.md" >}}

{{< include file="/static/includes/APIDocs.md" >}}

You can access TrueNAS API documentation in the web interface by clicking <i class="material-icons" aria-hidden="true" title="laptop" style="vertical-align: top;">laptop</i> **My API Keys** on the top right toolbar <i class="material-icons" aria-hidden="true">account_circle</i> user settings dropdown menu to open the **User API Keys** screen.
Click **API Docs** to view API documentation.

* The default libvirt account UID and GID is changed to to avoid possible clashes with user created Active Directory (AD) users. TrueNAS automatically updates libvirt UID and GIDs when upgraded to 25.04. Users attempting revert to 24.10 or an earlier release must manually review and update libvirt-qemu user and group IDs back to the values that were default in that version (64055:64055 for 24.10).


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ This is not used for SMB authentication or determining the user session token or
Click **Save**.

## Managing Groups

Click anywhere on a row to expand that group and show the group management buttons.

{{< trueimage src="/images/SCALE/Credentials/GroupsListedExpandedSCALE.png" alt="Expanded Group Screen" id="Expanded Group Screen" >}}
Expand Down
10 changes: 0 additions & 10 deletions content/SCALE/SCALETutorials/Shares/SMB/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,6 @@ Windows clients use [WS-Discovery](https://docs.oasis-open.org/ws-dd/ns/discover
Discoverability through broadcast protocols is a convenience feature and is not required to access an SMB server.
{{< /hint >}}

### SMB Share Limitations
Sharing protocols have file-related limitations such as name and path lengths, permitted characters, file or volume size, permissions through access control lists (ACLs), and ACL entries based on the underlying client operating system (Windows, Linux, MacOS).
SMB protocol version limits are based on the version (SMB1, SMB2, SMB3).

There are limitations and issues related to using third-party file managers instead of native tools.

For more on limits, click below.

{{< include file="/static/includes/SMBLimitations.md" >}}

## Sharing Administrator Access

{{< include file="/static/includes/SharingAdminRole.md" >}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ This article provides information on sysctl, system dataset pool, setting the ma

## Configuring System Auditing

The **Audit** widget displays the current audit storage and retention policy settings. The public-facing API allows querying
audit records, exporting audit reports, and configuring audit dataset settings and retention periods.
The **Audit** widget displays the current audit storage and retention policy settings. The public-facing [TrueNAS API]({{< relref "/SCALE/API/_index.md" >}}) allows querying audit records, exporting audit reports, and configuring audit dataset settings and retention periods.

{{< trueimage src="/images/SCALE/SystemSettings/SystemAdvancedAuditWidget.png" alt="Advanced System Setting Audit Widget" id="Advanced System Setting Audit Widget" >}}

Expand Down
7 changes: 5 additions & 2 deletions content/SCALE/SCALETutorials/TopToolbar/ManagingAPIKeys.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ tags:
- apikeys
---

The <i class="material-icons" aria-hidden="true" title="laptop" style="vertical-align: top;">laptop</i> **My API Keys** option on the top right toolbar **Settings** (user icon) dropdown menu displays the **User API Keys** screen.
Click <i class="material-icons" aria-hidden="true" title="laptop" style="vertical-align: top;">laptop</i> **My API Keys** on the top right toolbar <i class="material-icons" aria-hidden="true">account_circle</i> user settings dropdown menu to open the **User API Keys** screen.

This screen displays a list of API keys added to your system and allows you to add, search, edit, or delete keys.
Click **API Docs** to view [API Documentation](#api-documentation).

Expand Down Expand Up @@ -71,4 +72,6 @@ Select **Confirm** then click **Delete**.

## API Documentation

Click **API Docs** to access the TrueNAS API documentation that is built into the system.
Click **API Docs** to access the TrueNAS API documentation built into the system.

{{< include file="/static/includes/APIDocs.md" >}}
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ Click **Add** to open the **Add Group** configuration screen.
{{< /truetable >}}

## Edit Group Screen

Click **Edit** on an expanded group in the **Groups** screen to open the **Edit Group** screen.

{{< trueimage src="/images/SCALE/Credentials/EditGroup.png" alt="Edit Group Screen" id="Edit Group Screen" >}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ There are also options to configure a remote syslog server for recording system
{{< /expand >}}

## Audit Widget
The **Audit** widget displays the current audit storage and retention policy settings. The public-facing API allows querying
audit records, exporting audit reports, and configuring audit dataset settings and retention periods.
The **Audit** widget displays the current audit storage and retention policy settings. The public-facing [TrueNAS API]({{< relref "/SCALE/API/_index.md" >}}) allows querying audit records, exporting audit reports, and configuring audit dataset settings and retention periods.

{{< trueimage src="/images/SCALE/SystemSettings/SystemAdvancedAuditWidget.png" alt="Advanced System Setting Audit Widget" id="Advanced System Setting Audit Widget" >}}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ tags:
- toolbar
---

The <i class="material-icons" aria-hidden="true" title="laptop" style="vertical-align: top;">laptop</i> **My API Keys** option on the top right toolbar **Settings** (user icon) dropdown menu displays the **User API Keys** screen.
<i class="material-icons" aria-hidden="true" title="laptop" style="vertical-align: top;">laptop</i> **My API Keys** on the top right toolbar <i class="material-icons" aria-hidden="true">account_circle</i> user settings dropdown menu to opens the **User API Keys** screen.

This screen displays a list of API keys added to your system and allows you to add, search, edit, or delete keys.
**API Docs** opens the [API Documentation](#api-documentation).

Expand All @@ -34,3 +35,5 @@ This screen displays a list of API keys added to your system and allows you to a
## API Documentation

**API Docs** opens the TrueNAS API documentation that is built into the system.

{{< include file="/static/includes/APIDocs.md" >}}
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,17 @@ tags:
- toolbar
---

The <span class="material-icons">account_circle</span> **Settings** icon button displays a menu of general system settings options.
The options are **Change Password**, **Preferences**, **API Keys**, **Guide** and **About**.
The <span class="material-icons">account_circle</span> **Settings** icon button displays a menu of general system settings options.
The options are **Change Password**, **Preferences**, **My API Keys**, **Guide** and **About**.

## Change Password

{{< include file="/static/includes/ChangeLoggedInUserPassword.md" >}}

## API Keys
## My API Keys

Click on <span class="material-icons">laptop</span> **API Keys** to display the **API Keys** screen where you can add new or manage existing API keys on your system.
Click on <span class="material-icons">laptop</span> **My API Keys** to display the **User API Keys** screen where you can add or manage API keys on your system.
Click **API Docs** on the **User API Keys** screen to view API documentation.

## Guide

Expand Down
Binary file modified static/images/SCALE/Credentials/AddGroupScreen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/images/SCALE/Network/NetworkInterfacesBridgeSCALE.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion static/includes/25.04FeatureList.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@

* iSCSI Fibre Channel support (Enterprise Feature)

* Versioned TrueNAS API
* Versioned TrueNAS JSON-RPC 2.0 over WebSocket API (see [API Reference]({{< relref "/SCALE/API/_index.md" >}})).

* User-linked API Keys (see [Managing API Keys]({{< relref "/scale/scaletutorials/toptoolbar/managingapikeys.md" >}}))

* User-linked API Keys (see [Managing API Keys]({{< relref "/scale/scaletutorials/toptoolbar/managingapikeys.md" >}}))

Expand Down
12 changes: 12 additions & 0 deletions static/includes/APIDocs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
&NewLine;

TrueNAS 25.04 and later uses a versioned JSON-RPC 2.0 over WebSocket API.
API versions are numbered in conjunction with TrueNAS version releases.

The API documentation provides information about supported API Methods and Events.
DjP-iX marked this conversation as resolved.
Show resolved Hide resolved
Documentation is included for all API versions supported by the current TrueNAS release and defaults to the latest supported API.
Use the dropdown to view documentation for different supported API versions.

Advanced users can interact with the TrueNAS API to perform management tasks using the [TrueNAS API Client](https://github.com/truenas/api_client) as an alternative to the TrueNAS web UI.
This websocket client provides the command line tool `midclt` and allows users to communicate with middleware using Python by making API calls.
The client can connect to the local TrueNAS instance or to a specified remote socket.
11 changes: 1 addition & 10 deletions static/includes/RESTAPIDeprecationNotice.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
&NewLine;

{{< hint type="info" title="REST API Deprecation Notice" >}}
The TrueNAS REST API is deprecated in TrueNAS 25.04 and replaced by the [TrueNAS websocket client](https://github.com/truenas/api_client).
The TrueNAS REST API is deprecated in TrueNAS 25.04.
Full removal of the REST API is planned for a future release.

This new API Client is not the deprecated TrueNAS CLI (midcli).
The API Client is integrated in TrueNAS 25.04 onwards.
It provides the `midclt` command-line tool, and the means to easily communicate with middleware using Python to make calls through the websocket API.

This API client allows for better integration of TrueNAS into third-party solutions.
Use this as a reference for projects that require direct TrueNAS integration.

TrueNAS API documentation remains available in the UI and through the [TrueNAS Documentation Hub]({{< relref "/content/SCALE/api/_index.md" >}}).
{{< /hint >}}
Loading
Loading