Src/Private/Get-AbrOntapStorageFabricPoolConfig.ps1

function Get-AbrOntapEfficiencyAggrConfig {
    <#
    .SYNOPSIS
        Used by As Built Report to retrieve NetApp ONTAP Aggregate FabriPool Object Store Configuration 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 Aggregate FabriPool Object Store information."
    }

    process {
        try {
            $Data = Get-NcAggrObjectStoreConfig -Controller $Array
            $OutObj = @()
            if ($Data) {
                foreach ($Item in $Data) {
                    try {
                        $inObj = [ordered] @{
                            'Object Store Name' = $Item.ObjectStoreName
                            'S3 Name' = $Item.S3Name
                            'Server FQDN' = $Item.Server
                            'Port' = $Item.Port
                            'SSL Enabled' = ConvertTo-TextYN $Item.SslEnabled
                            'Provider Type' = $Item.ProviderType
                            'Used Space' = $Item.UsedSpace | ConvertTo-FormattedNumber -Type Datasize -NumberFormatString "0.0" -ErrorAction SilentlyContinue
                        }
                        $OutObj = [pscustomobject]$inobj

                        $TableParams = @{
                            Name = "Aggregate FabriPool Object Store Configuration - $($Item.ObjectStoreName)"
                            List = $true
                            ColumnWidths = 30, 70
                        }
                        if ($Report.ShowTableCaptions) {
                            $TableParams['Caption'] = "- $($TableParams.Name)"
                        }
                        $OutObj | Table @TableParams
                    } catch {
                        Write-PScriboMessage -IsWarning $_.Exception.Message
                    }
                }
            }
        } catch {
            Write-PScriboMessage -IsWarning $_.Exception.Message
        }
    }

    end {}

}