Table of Contents

Managing APIs and tokens in DataMiner Cube

Note

Before you try to execute these procedures, make sure you have the user permissions available under Modules > User-Defined APIs.

Configuring APIs and tokens

  1. Go to System Center > User-Defined APIs.

  2. Use the buttons below the table to create an API or token, or to edit or delete the selected API or token.

API module in DataMiner Cube
User-Defined APIs page in DataMiner 10.6.9

Note
  • You can also create an API and tokens in the Automation app. See Creating an API and tokens in DataMiner Automation. This is very similar to the creation in System Center, except you can only configure the APIs and tokens for one specific script at a time.
  • It is not possible to delete a token that is in use by an API. You first need to unassign the token from all APIs using it before you can delete it. If you want to block access to a token rapidly, you can disable it instead.

Enabling or disabling API tokens

  1. Go to System Center > User-Defined APIs.

  2. Right-click the token in the Tokens table and select Enable or Disable.

Enabling or disabling an API token in DataMiner Cube
Enabling or disabling an API token in DataMiner 10.3.6

Configuring a rate limit for an API token

From DataMiner 10.6.9/10.7.0 onwards, when creating or editing an API token, you can configure a rate limit for that token. The rate limit restricts the number of requests a client can make within a specified time window.

  1. Go to System Center > User-Defined APIs.

  2. Under Tokens, select Create in the lower-right corner.

    New tokens are created with a default rate limit of 60 requests per minute.

  3. If you want to change the default rate limit, configure the following settings:

    • Limit (1): Maximum number of requests allowed within the configured window (from 1 to 100).

    • Window (2): Sliding time window during which the limit applies (from 1 second to 1 day).

    Create API token pop-up window
    Create API token window in DataMiner 10.6.9

  4. Select Generate token.

Note

A configured rate limit restricts the number of requests a client can make within a specified time window. However, it does not guarantee that the server can process all requests up to that limit. Actual throughput depends on several factors, including the execution time of the API script, the number of concurrently active tokens, and overall server load.

Getting the API URL blueprint

  1. Go to System Center > User-Defined APIs.

  2. Right-click the API in the APIs table and select Copy URL.

Copying an API URL in DataMiner Cube
Copying an API URL in DataMiner 10.3.6

Advanced search syntax