{"meta":{"title":"下载您的企业或组织的许可证使用数据","intro":"获取有关GitHub、Copilot和Advanced Security许可证使用情况的数据。","product":"计费与付款","breadcrumbs":[{"href":"/zh/billing","title":"计费与付款"},{"href":"/zh/billing/how-tos","title":"操作指南"},{"href":"/zh/billing/how-tos/products","title":"产品"},{"href":"/zh/billing/how-tos/products/download-license-use","title":"下载许可证使用情况"}],"documentType":"article"},"body":"# 下载您的企业或组织的许可证使用数据\n\n获取有关GitHub、Copilot和Advanced Security许可证使用情况的数据。\n\n可以通过用户界面或 REST API 下载 CSV 文件，其中包含付费许可证使用 GitHub 的详细信息。\n\n有关所有付费产品更详细的使用情况报告，请参阅[查看按流量计费的产品和许可证的使用情况](/zh/billing/how-tos/products/view-productlicense-use)。\n\n## 在 GitHub Enterprise Cloud 上\n\n1. 导航到您的企业。 例如，从 [https://github.com/settings/enterprises](https://github.com/settings/enterprises?ref_product=ghec\\&ref_type=engagement\\&ref_style=text)。\n\n2. 在“计费和许可”页面列表中，单击“ **许可**”。\n\n3. 在相关许可证区域中，单击“Download CSV report”\\*\\*\\*\\*。 如果提供了选择，请选择自己偏好的报表。\n\n报告将通过电子邮件发送到与帐户 GitHub 关联的默认电子邮件地址。 有关字段的信息，请参阅[许可证报告参考](/zh/billing/reference/license-reports)。\n\n## 在 GitHub Enterprise Server 上\n\n1. 导航到您的企业。 例如，从 GitHub.com 上的 [公司](https://github.com/settings/enterprises?ref_product=ghec\\&ref_type=engagement\\&ref_style=text) 页面。\n2. 在“<svg version=\"1.1\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" class=\"octicon octicon-gear\" aria-label=\"gear\" role=\"img\"><path d=\"M8 0a8.2 8.2 0 0 1 .701.031C9.444.095 9.99.645 10.16 1.29l.288 1.107c.018.066.079.158.212.224.231.114.454.243.668.386.123.082.233.09.299.071l1.103-.303c.644-.176 1.392.021 1.82.63.27.385.506.792.704 1.218.315.675.111 1.422-.364 1.891l-.814.806c-.049.048-.098.147-.088.294.016.257.016.515 0 .772-.01.147.038.246.088.294l.814.806c.475.469.679 1.216.364 1.891a7.977 7.977 0 0 1-.704 1.217c-.428.61-1.176.807-1.82.63l-1.102-.302c-.067-.019-.177-.011-.3.071a5.909 5.909 0 0 1-.668.386c-.133.066-.194.158-.211.224l-.29 1.106c-.168.646-.715 1.196-1.458 1.26a8.006 8.006 0 0 1-1.402 0c-.743-.064-1.289-.614-1.458-1.26l-.289-1.106c-.018-.066-.079-.158-.212-.224a5.738 5.738 0 0 1-.668-.386c-.123-.082-.233-.09-.299-.071l-1.103.303c-.644.176-1.392-.021-1.82-.63a8.12 8.12 0 0 1-.704-1.218c-.315-.675-.111-1.422.363-1.891l.815-.806c.05-.048.098-.147.088-.294a6.214 6.214 0 0 1 0-.772c.01-.147-.038-.246-.088-.294l-.815-.806C.635 6.045.431 5.298.746 4.623a7.92 7.92 0 0 1 .704-1.217c.428-.61 1.176-.807 1.82-.63l1.102.302c.067.019.177.011.3-.071.214-.143.437-.272.668-.386.133-.066.194-.158.211-.224l.29-1.106C6.009.645 6.556.095 7.299.03 7.53.01 7.764 0 8 0Zm-.571 1.525c-.036.003-.108.036-.137.146l-.289 1.105c-.147.561-.549.967-.998 1.189-.173.086-.34.183-.5.29-.417.278-.97.423-1.529.27l-1.103-.303c-.109-.03-.175.016-.195.045-.22.312-.412.644-.573.99-.014.031-.021.11.059.19l.815.806c.411.406.562.957.53 1.456a4.709 4.709 0 0 0 0 .582c.032.499-.119 1.05-.53 1.456l-.815.806c-.081.08-.073.159-.059.19.162.346.353.677.573.989.02.03.085.076.195.046l1.102-.303c.56-.153 1.113-.008 1.53.27.161.107.328.204.501.29.447.222.85.629.997 1.189l.289 1.105c.029.109.101.143.137.146a6.6 6.6 0 0 0 1.142 0c.036-.003.108-.036.137-.146l.289-1.105c.147-.561.549-.967.998-1.189.173-.086.34-.183.5-.29.417-.278.97-.423 1.529-.27l1.103.303c.109.029.175-.016.195-.045.22-.313.411-.644.573-.99.014-.031.021-.11-.059-.19l-.815-.806c-.411-.406-.562-.957-.53-1.456a4.709 4.709 0 0 0 0-.582c-.032-.499.119-1.05.53-1.456l.815-.806c.081-.08.073-.159.059-.19a6.464 6.464 0 0 0-.573-.989c-.02-.03-.085-.076-.195-.046l-1.102.303c-.56.153-1.113.008-1.53-.27a4.44 4.44 0 0 0-.501-.29c-.447-.222-.85-.629-.997-1.189l-.289-1.105c-.029-.11-.101-.143-.137-.146a6.6 6.6 0 0 0-1.142 0ZM11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0ZM9.5 8a1.5 1.5 0 1 0-3.001.001A1.5 1.5 0 0 0 9.5 8Z\"></path></svg> Settings”下，单击“Licensing”\\*\\*\\*\\*\\*\\*\\*\\*。\n\n该页面显示贵企业用于 GitHub Enterprise 和 GitHub Advanced Security 的许可证摘要。 使用页面上的链接来查看更详细的信息。\n\n若要下载 GitHub Advanced Security 的许可证使用情况报告：\n\n* **企业**：在“”GitHub Advanced Security中，单击 <svg version=\"1.1\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" class=\"octicon octicon-download\" aria-label=\"download\" role=\"img\"><path d=\"M2.75 14A1.75 1.75 0 0 1 1 12.25v-2.5a.75.75 0 0 1 1.5 0v2.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25v-2.5a.75.75 0 0 1 1.5 0v2.5A1.75 1.75 0 0 1 13.25 14Z\"></path><path d=\"M7.25 7.689V2a.75.75 0 0 1 1.5 0v5.689l1.97-1.969a.749.749 0 1 1 1.06 1.06l-3.25 3.25a.749.749 0 0 1-1.06 0L4.22 6.78a.749.749 0 1 1 1.06-1.06l1.97 1.969Z\"></path></svg>**“CSV 报表**”。\n* **组织**：在“ORGANIZATION”表中，单击与要下载 CSV 报表的组织对应的 <svg version=\"1.1\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" class=\"octicon octicon-download\" aria-label=\"Download CSV report\" role=\"img\"><path d=\"M2.75 14A1.75 1.75 0 0 1 1 12.25v-2.5a.75.75 0 0 1 1.5 0v2.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25v-2.5a.75.75 0 0 1 1.5 0v2.5A1.75 1.75 0 0 1 13.25 14Z\"></path><path d=\"M7.25 7.689V2a.75.75 0 0 1 1.5 0v5.689l1.97-1.969a.749.749 0 1 1 1.06 1.06l-3.25 3.25a.749.749 0 0 1-1.06 0L4.22 6.78a.749.749 0 1 1 1.06-1.06l1.97 1.969Z\"></path></svg>。\n* **用户命名空间**：在“用户命名空间”表中，点击与您要为其下载 CSV 报告的用户关联的 <svg version=\"1.1\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" class=\"octicon octicon-download\" aria-label=\"Download CSV report\" role=\"img\"><path d=\"M2.75 14A1.75 1.75 0 0 1 1 12.25v-2.5a.75.75 0 0 1 1.5 0v2.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25v-2.5a.75.75 0 0 1 1.5 0v2.5A1.75 1.75 0 0 1 13.25 14Z\"></path><path d=\"M7.25 7.689V2a.75.75 0 0 1 1.5 0v5.689l1.97-1.969a.749.749 0 1 1 1.06 1.06l-3.25 3.25a.749.749 0 0 1-1.06 0L4.22 6.78a.749.749 0 1 1 1.06-1.06l1.97 1.969Z\"></path></svg>。\n* 仓库：在“ORGANIZATION”表中，单击组织名称以显示组织的设置页面\\*\\*\\*\\*。 在 GitHub Advanced Security 存储库表中，单击 <svg version=\"1.1\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" class=\"octicon octicon-kebab-horizontal\" aria-label=\"GHAS repository actions\" role=\"img\"><path d=\"M8 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM1.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm13 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z\"></path></svg> 并选择“ **下载 CSV 报表**”。\n\n有关报表中包含的字段的详细信息，请参阅[许可证报告参考](/zh/billing/reference/license-reports)。\n\n## 使用 REST API\n\n你可以使用计费 API 检索有关 Advanced Security 付费使用情况的信息。\n\n* 组织级数据（仅限云）使用 `/organizations/{org}/settings/billing/usage` 终结点。 有关详细信息，请参阅 [使用情况计费](/zh/rest/billing/usage?apiVersion=2022-11-28#get-billing-usage-report-for-an-organization)。\n\n* 对于企业级数据，使用 `/enterprises/{enterprise}/settings/billing/usage` 终结点。 有关详细信息，请参阅文档中的 [](/zh/enterprise-cloud@latest/rest/billing/usage?apiVersion=2022-11-28#get-billing-usage-report-for-an-enterprise)GitHub Enterprise Cloud。"}