Functions/Public/Get-Artifact.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
function Get-Artifact {
    [CmdletBinding()]
    param(
        [Parameter(Mandatory)]
        [ValidateNotNullOrEmpty()]
        [string]
        $Path
    )

    $Content = Invoke-ArtifactoryApi -Path "/api/storage/$Path"
    $Content.children.uri
}