Skip to main content

Managing Gateway API Keys on Zenconsole

Published on:
.
2 min read

Zenconsole allows you to enable or disable the Zenarmor API and manage API keys for individual gateways through its centralized management interface.

The Zenarmor API enables you to build custom integrations between your Zenarmor gateway and external applications or security solutions. API keys are used to authenticate requests to the Zenarmor API.

Through the API settings page, you can perform the following tasks:

  • Enable or disable the Zenarmor API for a gateway.
  • Generate API keys for custom integrations.
  • View generated API keys and their details.
  • Revoke API keys that are no longer required.

Accessing Gateway API Settings​

To access the API settings page, follow the steps below:

  1. Log in to Zenconsole account.
  2. Navigate to Settings → Gateway Settings.
  3. Select the gateway you want to configure.
  4. Click API in the gateway settings menu.

The API Keys page opens, displaying the current API status and available management options.

When the API is disabled, Zenconsole displays the following message: "API is not enabled yet."

You must enable the API before generating API keys.

Figure 1 Gateway API Settings Page on Zenconsole

Enabling the Zenarmor API​

Before generating API keys, you must enable the Zenarmor API for the selected gateway.

To enable the API, follow the steps below:

  1. Navigate to Settings → Gateway Settings → [Your Gateway] → API.
  2. Locate the API Keys section.
  3. Click the Disabled button in the upper-right corner of the section.
  4. Verify that the API status changes to Enabled.

Once enabled, the + Generate API Key button becomes available.

If no API keys have been generated, Zenconsole displays the following message:

"There are no API keys generated for this gateway yet."

Figure 2. Enabling the Zenarmor API on Zenconsole

Generating an API Key​

You can generate API keys to authenticate requests from external applications and integrations.

To generate an API key, follow the steps below:

  1. Navigate to Settings → Gateway Settings → [Your Gateway] → API.

  2. Make sure that the API status is Enabled.

  3. Click + Generate API Key.

  4. In the Generate API key dialog, enter a username in the User field, such as developer.

    Figure 3. Generating an API Key on Zenconsole

  5. Click Generate to create the API key.

The generated API key is displayed on the API settings page along with its associated details.

warning

API keys provide access to supported Zenarmor API operations. Keep your API keys secure and do not expose them in public repositories, client-side applications, or other publicly accessible locations.

Viewing Generated API Keys​

After generating an API key, you can view its details directly on the API settings page.

Each generated API key displays the following information:

  • User: The username associated with the API key.
  • API Key: The generated key used to authenticate API requests.
  • Added on: The date when the API key was generated.
  • Expires on: The expiration date of the API key.

To view generated API keys, follow the steps below:

  1. Navigate to Settings → Gateway Settings → [Your Gateway] → API.

  2. Locate the list of generated API keys below the API Keys section.

  3. Review the username, API key value, creation date, and expiration date for each entry.

    Figure 4. Viewing Generated API Keys on Zenconsole

Revoking an API Key​

You can revoke an existing API key when it is no longer needed or should no longer be used to access the Zenarmor API.

To revoke an API key, follow the steps below:

  1. Navigate to Settings → Gateway Settings → [Your Gateway] → API.

  2. Locate the API key you want to revoke.

  3. Click Revoke next to the corresponding API key.

    Figure 5. Revoking an API Key on Zenconsole

  4. A Warning dialog appears with the following message: "Are you sure you want to revoke access?"

  5. Click Revoke to confirm the action, or Cancel to keep the API key.

Once revoked, the API key is removed from the list and can no longer be used to authenticate API requests.

If no API keys remain, Zenconsole displays the following message: "There are no API keys generated for this gateway yet."

note

Revoking an API key may interrupt any existing integrations that use it. Make sure the key is no longer required before revoking access.

Disabling the Zenarmor API​

You can disable the Zenarmor API when API access is no longer required for the selected gateway.

To disable the API, follow the steps below:

  1. Navigate to Settings → Gateway Settings → [Your Gateway] → API.
  2. Locate the API Keys section.
  3. Click the Enabled button in the upper-right corner of the section.
  4. Verify that the API status changes to Disabled.

When disabled, the API key management options are no longer displayed, and Zenconsole shows the following message: "API is not enabled yet."