Software Development Kit (SDK) and API Discussions

PowerShell Toolkit - Get-NcVol - Get Properties for Thin Provisiong and Style.

McGill

Looking for the property values for 'Thin Provisioned' and 'Style' under the cmdlet Get-NcVol, that are displayed in the GUI/WEB under Volumes.  Below is what I have so far for the data I want to pull/display.  Any assistance would be appreciated, cheers

 

$NcVolInfo = Get-NcVol -Name *$VolumeName*
$NcVolInfo | 
    Select-Object @{n='VolumeName';e={$_.Name}},
                  State,
                  Aggregate,
                  @{n='Available Space';e={convertto-formattednumber $_.available datasize "0.00"}},
                  @{n='Total Space';e={convertto-formattednumber $_.TotalSize datasize "0.00"}},
                  @{n='Used Space';e={convertto-formattednumber ($_.VolumeSpaceAttributes).sizeused datasize "0.00"}},
                  @{n='Type';e={($_.VolumeIdAttributes).Type}},
                  Dedupe,
                  Vserver,
                  IsInfiniteVolume | Format-Table -AutoSize
1 ACCEPTED SOLUTION

donny_lang

Based on your example code, "$_.VolumeSpaceAttributes.SpaceGuarantee" will get you the volume provisioning type (options are "none", "volume", or "file").

 

"$_.VolumeIdAttributes.Style" will get you the volume style. 

 

Hope that helps!  

 

Donny

View solution in original post

1 REPLY 1

donny_lang

Based on your example code, "$_.VolumeSpaceAttributes.SpaceGuarantee" will get you the volume provisioning type (options are "none", "volume", or "file").

 

"$_.VolumeIdAttributes.Style" will get you the volume style. 

 

Hope that helps!  

 

Donny

View solution in original post

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public