Hi Erwan,  thanks so much for you help. I missed "[" and "]" in combination with accessMask. I am pretty sure I tried both but most likely never in this combination. It is working now even I have it slightly different as the accessMask is under hostAccess directly instead of under host: btw. I am working on Unity 4.2.0.9392909: Here is what is working for me print Dumper(request(POST, '/api/types/storageResource/action/createLun',     {         "name" => "LUN-RestAPI",         "lunParameters" =>         {             "pool" =>             {                 "id" => "pool_1"             },             "size" => 21474836480,             "hostAccess" =>             [             {                 "host" =>                 {                     "id" => "Host_1"                 },                 "accessMask" => 1             },             {                 "host" =>                 {                     "id" => "Host_2"                 },                 "accessMask" => 1             }             ]         }     } ));  Once again everybody thank you so much.  best regards Ronald
Hi all,  hope this is the correct audience here to ask. I am testing on a UnityVSA Version 4.2 RestAPI call. Adding a lun to a pool is not an issues at all and is just working fine. At next step I like to automatically assign this lun to a host where the id is Host_1. here is how I am running the call:  #Create a 20GB LUN print Dumper(request(POST, '/api/types/storageResource/action/createLun',     {          "name" => "LUN-RestAPI",         "lunParameters" =>         {              "pool" =>              {                  "id" => "pool_1"             },             "size" => 21474836480, #            "hostAccess" => #            {  #                "host" =>  #                {  #                    "id" => "Host_1" #                } #            }         }     } ));  Call is working but when I remove the "#" to have the lun added to the host it is displaying:  C:\tmp>perl restapi.pl HTTP error code: 422 HTTP error message: Unprocessable Entity 0  Somebody has any Idea?
RestAPI: add LUN and assign host