Block Storage

 REST API Question for a newbie

  • Flash Storage
  • Flash Storage
  • Hitachi Virtual Storage Platform VSP
Shyam Hazari's profile image
Shyam Hazari posted 08-17-2018 15:38

Hello,

I am new to Hitachi. We have a bunch of AMS2500, HINAS and a few VSP's. I have installed the Hitachi Configuration Manager for REST API. But Have not found a way to register the storage system with configuration manager. Familiar with Perl/Python. Appreciate if someone point a link on a step by step procedure for registering a Hitachi with config manager.

Config manager version:

curl -H "Accept:application/json" -H "Content-Type:application/json" -X GET https://localhost:23451/ConfigurationManager/configuration/version -k

 

{

  "productName" : "Configuration Manager REST API",

  "apiVersion" : "1.10.0"

 

Obviously get not data because none of the storage systems were registered yet.

 

curl -H "Accept:application/json" -H "Content-Type:application/json" -X GET https://localhost:23451/ConfigurationManager/v1/objects/storages -k

 

{

  "data" : [ ]

 

Thanks Again

 

Shyam


#FlashStorage
#HitachiVirtualStoragePlatformVSP
Craig Chan's profile image
Craig Chan

Configuration Manager REST API does not support the AMS2500 or HNAS.  To register a VSP:

First create a file with the following code in it.  Let's call this file "input.json"

{

  "svpIp": "192.0.2.100",

  "serialNumber": 123456,

  "model": "VSP",

  "rmiPort": 1099,

  "changeNotificationSetting": {

     "isNotifiable": true,

     "mappWebServerHttpsPort": 443

  }

}

I'm assuming you haven't changed any of the default settings so your ports should be: rmiPort = 1099, and CM REST Port = 443.

Replace "svpIp" with your IP Address of the SVP (same as SN2 IP address)

Replace "serialNumber" with your VSP serial number (can be found in SN2)

Execute the following curl in the same directory as your "input.json" file:

curl -v -H "Accept:application/json" -H "Content-Type:application/json" -u <user>:<password> -X POST --data-binary @./input.json https://localhost:23451/ConfigurationManager/v1/objects/storages 

Make sure to replace <user> with your username for the SVP (same one you use for SN2) and the corresponding <password>.

Please see the manual herefor more detailed information about using this command.

Please go to this site to get more samples and more instructions on how to use Configuration Manager REST API.

Shyam Hazari's profile image
Shyam Hazari

Thanks Craig for the detailed response.

I am  getting the following error. Wondering if there is a workaround for this. I tried on a different VSP, get the same error.

{

  "errorSource" : "/ConfigurationManager/v1/objects/storages",

  "message" : "The specified parameter is not supported for the specified storage system. (parameter name = changeNotificationSetting)",

  "solution" : "Check and, if necessary, revise the parameter.",

  "messageId" : "KART40124-E",

  "detailCode" : "40124E-0"

* Closing connection #0

Thanks Again

Shyam