Src/Private/Get-AbrOntapSecuritySSLVserver.ps1
function Get-AbrOntapSecuritySSLVserver { <# .SYNOPSIS Used by As Built Report to retrieve NetApp ONTAP Security Vserver SSL information from the Cluster Management Network .DESCRIPTION .NOTES Version: 0.6.7 Author: Jonathan Colon Twitter: @jcolonfzenpr Github: rebelinux .EXAMPLE .LINK #> [CmdletBinding()] param ( ) begin { Write-PScriboMessage "Collecting ONTAP Security Vserver SSL information." } process { try { $Data = Get-NcSecuritySsl -Controller $Array | Where-Object { $_.Vserver -notin $Options.Exclude.Vserver } $OutObj = @() if ($Data) { foreach ($Item in $Data) { try { $inObj = [ordered] @{ 'Common Name' = $Item.CommonName 'Certificate Authority' = $Item.CertificateAuthority 'Client Auth' = ConvertTo-TextYN $Item.ClientAuth 'Server Auth' = ConvertTo-TextYN $Item.ServerAuth 'Serial Number' = $Item.CertificateSerialNumber 'Vserver' = $Item.Vserver } $OutObj += [pscustomobject]$inobj } catch { Write-PScriboMessage -IsWarning $_.Exception.Message } } $TableParams = @{ Name = "Per Vserver SSL - $($ClusterInfo.ClusterName)" List = $false ColumnWidths = 20, 19, 8, 8, 25, 20 } if ($Report.ShowTableCaptions) { $TableParams['Caption'] = "- $($TableParams.Name)" } $OutObj | Table @TableParams } } catch { Write-PScriboMessage -IsWarning $_.Exception.Message } } end {} } |