简体   繁体   English

如何使用REST API重建nexus存储库元数据?

[英]How to rebuild nexus repository metadata using REST API?

I found out in the nexus REST API the /service/local/metadata/{domain}/{target}/content. 我在REST API中找到了/ service / local / metadata / {domain} / {target} / content。

But when I try to execute it (for example with curl) 但是当我尝试执行它时(例如使用curl)

curl -v --request DELETE  --user "login:password"  --silent http://nexusHost/local/metadata/repositories/myRepository/content

I got a this message back and the work is not done 我收到此消息,但工作尚未完成

HTTP/1.1 405 La m�thode HTTP DELETE n''est pas support�e par cette URL

Can you help me make this work ? 你能帮我做这个工作吗? thanks. 谢谢。

Note: using Nexus 2.11.3-01 注意:使用Nexus 2.11.3-01

You just mispell you request! 您只是拼错了您的要求! (you forgot to add service/ before local. (您忘记在本地添加服务/

curl -v --request DELETE  --user "login:password"  --silent http://nexusHost/service/local/metadata/repositories/myRepository/content

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM