JFROG Artifactory Access API返回404未找到 /请求是回购请求,并且不匹配任何回购密钥

发布于 2025-01-22 19:05:56 字数 675 浏览 1 评论 0 原文

我想使用Access API来管理令牌。
例如,通过致电:get/access/api/v1/dokens获取所有令牌列表。

我使用的是管理访问令牌,其到期期限为1小时,网络UIS管理|身份&访问|访问令牌部分作为承载令牌(我可以使用此令牌来调用其他端点)。

尝试调用访问API时,我会在Postman中获得“未找到状态404”,并且系统日志显示“请求/Access/api/v1/tokens应该是回购请求,并且不匹配任何repo键

”错过?我需要指定标题或以不同的方式配置令牌?

Jfrog Ref:

商业许可证7.35.2


更新:我称/artifactory /access/access/api/v1/dokens而不是/访问/API/V1/令牌

纠正URL解决了我的问题。

I want to use the access API to manage tokens.
For example to get a list of all tokens by calling: GET /access/api/v1/tokens .

I am using an admin access token with an expiration period of 1 hour generated in the web uis Administration | Identity & Access | Access Tokens section as bearer token (I am able to call other endpoints using this token).

When trying to call the access API I get a "Status 404 Not Found" in Postman and the System Logs show "Request /access/api/v1/tokens should be a repo request and does not match any repo key"

Is there anything I missed? Do I need to specify headers or configure the token differently?

JFrog ref:
https://www.jfrog.com/confluence/display/JFROG/Artifactory+REST+API#ArtifactoryRESTAPI-GetTokens.1

Commercial license 7.35.2


Update: I called /artifactory/access/api/v1/tokens instead of /access/api/v1/tokens

Correcting the URL solved my problem.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

你与清晨阳光 2025-01-29 19:05:56

我的猜测是您正在使用错误的URL。这对我有用:

curl https://<INSTANCEID>.jfrog.io/access/api/v1/tokens -H "Authorization: Bearer <TOKEN>"

My guess is you're using the wrong URL. This works for me:

curl https://<INSTANCEID>.jfrog.io/access/api/v1/tokens -H "Authorization: Bearer <TOKEN>"
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文