Bash Nexus3:获取所有上传到原始存储库的文件列表
我们正在使用nexus 3.0Bash Nexus3:获取所有上传到原始存储库的文件列表,bash,rest,curl,nexus,Bash,Rest,Curl,Nexus,我们正在使用nexus 3.0 我使用curl将文件上传到原始存储库,如文档中所示: 我试着用: curl-u登录:pwhttps://mynexus/myrepo curl-u登录:pwhttps://mynexus/myrepo/ 但是只接收有错误的html 如何使用curl查询所有上传的文件 curl 'http://localhost:8081/nexus/service/extdirect' -H 'Content-Type: application/json' -H 'Accept
我使用
curl
将文件上传到原始存储库,如文档中所示:我试着用:
curl-u登录:pwhttps://mynexus/myrepo
curl-u登录:pwhttps://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
像这样的工作
类似这样的方法很有效您可以使用:
例如:
curl -u admin:admin123 -X GET 'http://localhost:8081/service/rest/v1/search?repository=maven-central&group=org.osgi'
您可以使用:
例如:
curl -u admin:admin123 -X GET 'http://localhost:8081/service/rest/v1/search?repository=maven-central&group=org.osgi'