为什么我的Confluence Wiki空间清单空?
我有一个超过1000个空间的汇合Wiki。我尝试使用卷曲查询来检索Confluence Wiki的空间列表:
curl -D -u user:password -X GET \
-H "Content-Type: application/json" https://[hostname]/rest/api/space
它返回空格的空列表:
{"results":[],"start":0,"limit":25,"size":0,
"_links":{"self":https://[hostname]/rest/api/space,
"e":https://[hostname],"context":""}}
问题是什么?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这确实是一个许可问题:用于制作卷曲查询的帐户均未允许任何空间。
https://developer.atlassian.com/cloud/confluence/rest/api-group-space/#api-wiki-rest-api-space-get states:
That was indeed a permission issue: the account used to make the curl query had no permission for any spaces.