使用API 获取Github Enterprise Stats
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了使用API 获取Github Enterprise Stats相关的知识,希望对你有一定的参考价值。
我正在尝试根据https://developer.github.com/enterprise/2.15/v3/enterprise-admin/admin_stats/使用以下命令获取GitHub实例的统计信息
curl -u username:password https://<hostname>/api/v3/enterprise/stats/:all
但是我收到以下消息。请帮我解决这个问题
{
"message": "Not Found",
"documentation_url": "https://developer.github.com/enterprise/2.14/v3"
}
答案
通过在api中删除:
(之前)来排序问题
另一答案
由于文件说明:
它仅适用于经过身份验证的站点管理员。 普通用户如果尝试访问它将收到404响应。
首先检查您是否在GitHub Enterprise服务器上声明为站点管理员。
以上是关于使用API 获取Github Enterprise Stats的主要内容,如果未能解决你的问题,请参考以下文章
404 Not Found - Github Oauth App 请求访问 Github Enterprise
ruby 使用Gist for Github Enterprise
Visual Studio 2017 Enterprise + TFS 2018 + Git Clone = 无法获取本地颁发者证书
从 Terraform 云功能连接到 Enterprise GitHub
Enterprise:使用 Elastic Stack 8.2 中的 Elasticsearch API 来定位 App Search 中的文档