disable openapi

disable openapi

Description

Disables the OpenAPI server process.

Syntax Description

This command has no arguments or variables.

Default

N/A.

Usage Guidelines

Use this command to disable the OpenAPI server when it is not needed. Disabling the server stops the OpenAPI process and prevents API access via the /rest/openapi URI path.

IQAgent Override:

When IQAgent is enabled, the OpenAPI server is required for cloud connectivity and cannot be disabled by the user. Attempting to disable the server when IQAgent is enabled displays the following message:

Note: The OpenAPI server is required by IQAgent and will remain operational 
while IQAgent is enabled.

The server will remain running and the state will show as "Enabled (by IQAgent)" even after issuing the disable command. To disable the OpenAPI server when IQAgent is enabled, you must first disable IQAgent.

Configuration Persistence:

The OpenAPI server enable/disable state persists across reboots.

Example

The following command disables the OpenAPI server:

disable openapi

Verify the server is disabled:

show openapi

Sample output:

State            : Disabled
Server Status    : Stopped
Version          : 1.4.12.16
Schema Version   : 0.2.0

Attempting to disable when IQAgent is enabled:

disable openapi
Note: The OpenAPI server is required by IQAgent and will remain operational 
while IQAgent is enabled.

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.