For the complete documentation index, see llms.txt. This page is also available as Markdown.

Getting started with WEKA REST API

The WEKA system provides a RESTful API, enabling you to automate interactions with the WEKA system and integrate them into your workflows or monitoring systems.

It is essential to have a solid understanding of the WEKA system, the CLI commands, and their parameters.

Access the REST API

You can access the REST API using one of the following methods:

Using port 14000 and the URL /api/v2.

By browsing to: https://<cluster name>:14000/api/v2/docs

Select the three dots on the upper right menu and select REST API.

Access the REST API through the WEKA GUI

Browse to api.docs.weka.io and select the REST API version from the definition selector.

In addition, you can create a client code using the OpenAPI client generator and the .json file.

api.docs.weka.io

Explore the REST API through the GUI

Explore the REST API through the GUI

Obtain an access token

To use the WEKA REST API, provide an access or refresh token.

You can generate an access or refresh for the REST API usage through the CLI or the GUI. SeeObtain authentication tokens.

You can also call the login API to obtain access or refresh tokens through the API, providing it with a username and password.

If you already obtained a refresh token, you can use the login/refresh API to refresh the access token.

The response includes the access token (valid for 5 minutes) to use in the other APIs requiring token authentication, along with the refresh token (valid for 1 year), for getting additional access tokens without using the username/password.

Call the REST API

Once you obtain an access token, you can call WEKA REST API commands with it. For example, you can query the cluster status:

Last updated