Functions/Public/Get-ArtifactStatistics.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
function Get-ArtifactStatistics {
    [Diagnostics.CodeAnalysis.SuppressMessageAttribute(
        "PSUseSingularNouns", 
        "", 
        Justification = "That's how it is called"
    )]
    [CmdletBinding()]
    param(
        [Parameter(Mandatory)]
        [ValidateNotNullOrEmpty()]
        [string]
        $Path
    )

    Invoke-ArtifactoryApi -Path "/api/storage/$($Path)?stats"
}