Enables the OpenAPI server process.
This command has no arguments or variables.
The OpenAPI server is disabled by default unless IQAgent is enabled.
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:
http://<switch-ip>/rest/openapihttps://<switch-ip>/rest/openapihttps://<switch-ip>:9443/rest/openapiOther 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.
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
This command was first available in version 33.6.1.
This command is available on all Universal switches supported in this document.