Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To retrieve a folder from the Artifactory repository using PowerShell, you can use the following command:

Invoke-RestMethod -Method Get -Uri "https://artifactory-url/api/storage/folder-path?list&deep=1" -Headers @{Authorization="Bearer YOUR_API_KEY"}

Replace "https://artifactory-url" and "folder-path" with the appropriate Artifactory URL and folder path.

Replace "YOURAPIKEY" with your Artifactory API key.

This command will return a JSON object containing information about the folder and its contents.