enable openapi

enable openapi

Description

Enables the OpenAPI server process.

Syntax Description

This command has no arguments or variables.

Default

The OpenAPI server is disabled by default unless IQAgent is enabled.

Usage Guidelines

Use this command to enable the OpenAPI server, which provides RESTful API access for integration with third-party management tools such as Ansible. The OpenAPI server is accessible via HTTP (port 80) or HTTPS (ports 443/9443) using the URI path /rest/openapi.

IQAgent Interaction:

When IQAgent is enabled, the OpenAPI server is automatically enabled and remains operational regardless of user configuration. This ensures continuous cloud connectivity. The server state will show as "Enabled (by IQAgent)" when IQAgent requires it.

URI Path Access:

The web server multiplexes multiple applications based on URI paths. The OpenAPI server is accessed at:

Other applications such as Chalet (root path), RESTCONF (/rest/restconf), and authentication (/auth/token) remain accessible on their respective URI paths.

Configuration Persistence:

The OpenAPI server enable/disable state persists across reboots.

Example

The following command enables the OpenAPI server:

enable openapi

Verify the server is enabled:

show openapi

Sample output:

State            : Enabled (by user)
Server Status    : Healthy
Version          : 1.4.12.16
Schema Version   : 0.2.0

History

This command was first available in version 33.6.1.

Platform Availability

This command is available on all Universal switches supported in this document.