我想使用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.
发布评论
评论(1)
我的猜测是您正在使用错误的URL。这对我有用:
My guess is you're using the wrong URL. This works for me: