为什么我的Confluence Wiki空间清单空?

发布于 2025-02-11 22:19:10 字数 389 浏览 0 评论 0 原文

我有一个超过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":""}}

问题是什么?

I have a Confluence wiki with over 1000 spaces. I try to retrieve the list of spaces of my Confluence wiki using the curl query:

curl -D -u user:password -X GET \
     -H "Content-Type: application/json" https://[hostname]/rest/api/space

It returns an empty list of spaces:

{"results":[],"start":0,"limit":25,"size":0,
 "_links":{"self":https://[hostname]/rest/api/space,
 "e":https://[hostname],"context":""}}

What could be the issue?

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

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

发布评论

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

评论(1

樱娆 2025-02-18 22:19:10

注意,返回的列表将仅包含当前用户有权查看的空间。

这确实是一个许可问题:用于制作卷曲查询的帐户均未允许任何空间。

https://developer.atlassian.com/cloud/confluence/rest/api-group-space/#api-wiki-rest-api-space-get states:

Note, the returned list will only contain spaces that the current user has permission to view.

That was indeed a permission issue: the account used to make the curl query had no permission for any spaces.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文