HewlettPackard / hpe3par_pstoolkit

The HPE Alletra 9000 and Primera and 3PAR PowerShell Toolkit supports cmdlets, which are wrappers around the native HPE Alletra 9000 or HPE Primera or HPE 3PAR storage CLI commands and Web Services API (WSAPI).
Other
12 stars 13 forks source link

Editing descriptos of existing host does not work with wsapi cmdlets #43

Open apol76 opened 3 years ago

apol76 commented 3 years ago

I think this is know within HPE, but it's not on this board, so:

Editing descriptors (OS, comment, ...) of existing hosts does not work with wsapi cmdlets.

harikumar-r commented 3 years ago

It will be so great if you can describe the issue in details, so that I can work with the team to correct/fix it. Thanks a lot.

apol76 commented 2 years ago

Sorry for the delay...

According to documentation, the descriptors-Paraameter should accept a string as input. I tried

Update-Host_WSAPI -HostName "api_test1" -Descriptors "whatever" -WsapiConnection $connection_1 Update-Host_WSAPI -HostName "api_test1" -Descriptors "location:whatever" -WsapiConnection $connection_1 Update-Host_WSAPI -HostName "api_test1" -Descriptors "location=whatever" -WsapiConnection $connection_1 Update-Host_WSAPI -HostName "api_test1" -Descriptors "location-whatever" -WsapiConnection $connection_1 Update-Host_WSAPI -HostName "api_test1" -Descriptors "lcoation","whatever" -WsapiConnection $connection_1

All I get is "The array sends an error message: invalid input: wrong type for value."

Btw, I'm still working with documentation for V3.0, I can't find the pdf for V3.1