Ok, i'm at it again..
I"m trying to code using these new netapp cdot cmdlets and i'm struggling b/c im not understanding how they set it up..
PS C:\powershell> get-ncvol | gm
TypeName: DataONTAP.C.Types.Volume.VolumeAttributes
Name MemberType Definition
---- ---------- ----------
Equals Method bool Equals(System.Object obj)
GetHashCode Method int GetHashCode()
GetType Method type GetType()
ToString Method string ToString()
Validate Method void Validate()
Name Property string Name {get;set;}
NcController Property NetApp.Ontapi.Filer.C.NcController NcController {get;set;}
Volume64bitUpgradeAttributes Property DataONTAP.C.Types.Volume.Volume64bitUpgradeAttributes Volume64bitUpgradeAttributes {get;set;}
VolumeAntivirusAttributes Property DataONTAP.C.Types.Volume.VolumeAntivirusAttributes VolumeAntivirusAttributes {get;set;}
VolumeAutobalanceAttributes Property DataONTAP.C.Types.Volume.VolumeAutobalanceAttributes VolumeAutobalanceAttributes {get;set;}
VolumeAutosizeAttributes Property DataONTAP.C.Types.Volume.VolumeAutosizeAttributes VolumeAutosizeAttributes {get;set;}
VolumeCloneAttributes Property DataONTAP.C.Types.Volume.VolumeCloneAttributes VolumeCloneAttributes {get;set;}
VolumeDirectoryAttributes Property DataONTAP.C.Types.Volume.VolumeDirectoryAttributes VolumeDirectoryAttributes {get;set;}
VolumeExportAttributes Property DataONTAP.C.Types.Volume.VolumeExportAttributes VolumeExportAttributes {get;set;}
VolumeFlexcacheAttributes Property DataONTAP.C.Types.Volume.VolumeFlexcacheAttributes VolumeFlexcacheAttributes {get;set;}
VolumeHybridCacheAttributes Property DataONTAP.C.Types.Volume.VolumeHybridCacheAttributes VolumeHybridCacheAttributes {get;set;}
VolumeIdAttributes Property DataONTAP.C.Types.Volume.VolumeIdAttributes VolumeIdAttributes {get;set;}
VolumeInfinitevolAttributes Property DataONTAP.C.Types.Volume.VolumeInfinitevolAttributes VolumeInfinitevolAttributes {get;set;}
VolumeInodeAttributes Property DataONTAP.C.Types.Volume.VolumeInodeAttributes VolumeInodeAttributes {get;set;}
VolumeLanguageAttributes Property DataONTAP.C.Types.Volume.VolumeLanguageAttributes VolumeLanguageAttributes {get;set;}
VolumeMirrorAttributes Property DataONTAP.C.Types.Volume.VolumeMirrorAttributes VolumeMirrorAttributes {get;set;}
VolumePerformanceAttributes Property DataONTAP.C.Types.Volume.VolumePerformanceAttributes VolumePerformanceAttributes {get;set;}
VolumeQosAttributes Property DataONTAP.C.Types.Volume.VolumeQosAttributes VolumeQosAttributes {get;set;}
VolumeSecurityAttributes Property DataONTAP.C.Types.Volume.VolumeSecurityAttributes VolumeSecurityAttributes {get;set;}
The jyst is that volumeexportattributes is a property, so I can do -expandproperty and pull the information I'm looking for.. but i'm trying to write it in an expression statement and i'm struggling and i plan on using these objects to pass through to another cmdlet to get a full picture..
Here is what I tried.
So this works
PS C:\powershell> get-ncvol volume | select -expandproperty volumeexportattributes
NcController Policy
------------ ------
cluster policy1