Flash Storage​

 View Only

 How to I authorize & authenticate a block storage using REST API

Qualys Storage Operations's profile image
Qualys Storage Operations posted 04-18-2022 07:00
Expecting commands.
Tanmoy Panja's profile image
Tanmoy Panja
Hello,

//For resgistering a storage
curl -v -H "Accept:application/json" -H "Content-Type:application/json" -u maintenance:raid-maintenance -X POST -d " { \"model\" : \"VSP 5100\",\"serialNumber\" : \"30031\", \"svpIp\" : \"172.23.67.25\",\"changeNotificationSetting\" : {\"isNotifiable\" : false }}" http://172.23.91.74:23450/ConfigurationManager/v1/objects/storages

//Registering an E series storage through Controller IP

curl -v -H "Accept:application/json" -H "Content-Type:application/json" -u maintenance:raid-maintenance -X POST -d " { \"model\" : \"VSP E1090\",\"serialNumber\" : \"715007\", \"ctl1Ip\" : \"172.23.67.165\",\"changeNotificationSetting\" : {\"isNotifiable\" : false }}" http://172.23.91.50:23450/ConfigurationManager/v1/objects/storages


Mentioning cred in API query is a simplest approach it removes the token responsibility from user

Please let me know if this works for you.

William Jansen van Nieuwenhuizen's profile image
William Jansen van Nieuwenhuizen