Skip to main content

We've Moved!

Product Documentation has moved to docs.hitachivantara.com
Hitachi Vantara Knowledge

Enabling Native REST API

This document covers API version 8.1 supported by the HNAS native REST API. Native API mode was introduced in software release 13.9.6800, and will be used for future API improvements and features, replacing the previous legacy API versions.

The legacy REST API has been removed from software release 14.6.7500, so can no longer be enabled.

To check if the Native REST API is enabled, use either the rest-server-status or rest-server-show commands:

G800-443037-1:$ rest-server-status

RestAPI server is not running
 supported API versions:
  07.2.1
  08.1.0

RestAPI server current mode is native.
G800-443037-1:$ rest-server-show
The RestAPI server is not running.
G800-443037-1:$

To enable the REST API server, use the rest-server-start command:

G800-443037-1:$ rest-server-start
The RestAPI server has been successfully started.
G800-443037-1:$ rest-server-status

RestAPI server is running
 supported API versions:
  07.2.1
  08.1.0

RestAPI server current mode is native.
G800-443037-1:$

 

  • Was this article helpful?