Hi All, a quick question, I'm calling get-NcVolAutosize ... What exactly does it return? I thought I would get an "isEnabled" value (i.e. whether or not autosizing turned on for a specific volume) ... but the powershell code seems to get a null value for every volume (other attributes are there, I see for example "grow" or "grow-shrink" as well as the % thresholds.) Thanks in advance!
Cheers,
Robb.
#Q: get-NcVolAutosize +/- isEnabled ?
1 messages · Page 1 of 1 (latest)
I think you'll need to check the mode. The IsEnabled attribute does not appear to populate...
NcController : REDACTED
Name : REDACTED
IsEnabled :
IncrementSize : 0
MaximumSize : 109951162777600
MinimumSize : 10995116277760
GrowThresholdPercent : 98
ShrinkThresholdPercent : 93
Mode : grow_shrink
After turning on the debug logging for the module, we can see that the command is getting /api/storage/volumes?name=REDACTED&fields=autosize
The PATCH documentation here:
https://docs.netapp.com/us-en/ontap-restapi/unified/swagger-ui/index.html#/Storage/volume_modify
(bottom of screenshot) Shows what should be expected in the 'Mode' attribute of the powershell object.
I think the IsEnabled is a remnant of a simpler time and still there for backward compatibility.
PS /> $ncvolautosize.IsEnabled -or $ncvolautosize.Mode -inotmatch 'off'
True
PS />