簡體   English   中英

聯系 3:獲取所有上傳文件的列表到原始存儲庫

[英]nexus 3: get list of all uploaded files to raw repository

我們正在使用 nexus 3.0
我使用curl將我的文件上傳到原始存儲庫,如文檔中所示:
https://books.sonatype.com/nexus-book/3.0/reference/raw.html#_uploading_files_to_hosted_raw_repositories

我試圖查詢:
curl -u login:pw https://mynexus/myrepo
curl -u login:pw https://mynexus/myrepo/
但只收到有錯誤的 html

如何使用curl查詢所有上傳的文件?

curl 'http://localhost:8081/nexus/service/extdirect' -H 'Content-Type: application/json' -H 'Accept: */*' --data-binary '{"action":"coreui_Component","method":"readAssets","data":[{"page":1,"start":0,"limit":300,"sort":[{"property":"name","direction":"ASC"}],"filter":[{"property":"repositoryName","value":"repo_raw"}]}],"type":"rpc","tid":15}' --compressed

像這樣的工作

您可以使用Nexus REST API

例如:

curl -u admin:admin123 -X GET 'http://localhost:8081/service/rest/v1/search?repository=maven-central&group=org.osgi'

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM