1

我需要使用 REST API 从旧工件中手动清理 Jfrog 工件。

出于这些目的,首先,我必须识别在特定日期范围内创建的工件。

问题是当我使用

curl -u user:password -X GET "http://artifactory:8081/artifactory/api/search"

我收到这个错误

{
  "errors" : [ {
    "status" : 405,
    "message" : "Method Not Allowed"
  } ]

什么意思,那个方法是不允许的?我该如何处理?

完整的命令是

curl -u user:password "http://artifactory:8081/artifactory/api/search?from=long&to=long&repos=currentrepo"
4

1 回答 1

2

您错误地使用了其余的 api。

这是完整命令的样子: curl -u admin:password " http://localhost:8081/artifactory/api/search/ dates ? dateFields=created &from=1461052559000&to=1492588559000&repos=libs-snapshot-local"

于 2017-04-19T07:58:59.760 回答