通过 REST API 使用计费以创建预算或查询使用情况时,需要使用特定的产品和 SKU 标识符。 此引用提供这些标识符的有效值。
产品级标识符
对于 ProductPricing 预算或按产品查询使用情况,请使用以下值之一:
actions- GitHub Actionspackages- GitHub Packagescodespaces- GitHub Codespacescopilot- GitHub Copilotghas- GitHub Advanced Securityghec- GitHub Enterprise Cloud
SKU 级别标识符
对于 SkuPricing 预算或按 SKU 查询使用情况,请使用以下值之一:
GitHub Actions SKU列表
actions_cache_storage- Actions 缓存存储actions_custom_image_storage- Actions 自定义映像存储actions_linux- Actions Linux 运行器actions_linux_2_core_advanced- Actions Linux 2 核高级actions_linux_2_core_arm- Actions Linux 2核 ARMactions_linux_32_core- Actions Linux 32 核处理器actions_linux_32_core_arm- Actions Linux 32核 ARMactions_linux_4_core- Actions Linux 4 核actions_linux_4_core_arm- Actions Linux 4 核 ARMactions_linux_4_core_gpu- Actions Linux 4 核 GPUactions_linux_64_core- Actions Linux 64 核actions_linux_64_core_arm- Actions Linux 64 核 ARMactions_linux_8_core- Actions Linux 的 8 核心actions_linux_8_core_arm- 操作 Linux 8 核 ARMactions_linux_96_core- Actions Linux 96核actions_linux_arm- 操作 Linux ARMactions_linux_slim- Actions Linux 轻量化actions_macos- Actions macOS 运行器actions_macos_l- Actions macOS 大型actions_macos_xl- 操作 macOS XLactions_storage-动作存储actions_windows- Actions Windows 运行器actions_windows_16_core- Actions Windows 16 核actions_windows_2_core- Actions Windows 2 核actions_windows_2_core_advanced- Windows 双核高级操作actions_windows_2_core_arm- Actions Windows 2 核 ARMactions_windows_4_core_arm- 操作 Windows 4 核 ARMactions_windows_32_core- Actions Windows 32 核actions_windows_32_core_arm- Actions Windows 32 核 ARMactions_windows_4_core- Actions Windows 4 核actions_windows_4_core_gpu- 操作 Windows 4 核 GPUactions_windows_64_core- Actions Windows 64 核actions_windows_64_core_arm- Actions Windows 64 核 ARMactions_windows_8_core- Actions Windows 8 核actions_windows_8_core_arm- Actions Windows 8 核 ARMactions_windows_arm- Windows ARM 操作
GitHub Codespaces SKU
codespaces_compute_d16- Codespaces 计算(16 核)codespaces_compute_d2- Codespaces 计算(2 核)codespaces_compute_d32- Codespaces 计算(32 核)codespaces_compute_d4- Codespaces 计算(4 核)codespaces_compute_d8- Codespaces 计算(8核)codespaces_prebuild_storage- Codespaces 预生成存储codespaces_storage- Codespaces 存储
GitHub Copilot SKU
copilot_agent_premium_request- Copilot 智能体高级请求copilot_enterprise- Copilot Enterprisecopilot_for_business- Copilot 企业版copilot_premium_request- Copilot 高级请求copilot_standalone- Copilot 独立版
GitHub Advanced Security SKU
ghas_code_security_licenses- GHAS 代码安全许可证ghas_licenses- GHAS 许可证ghas_secret_protection_licenses- GHAS 机密保护许可证
其他 SKU
ghec_licenses- GitHub Enterprise Cloud 许可证git_lfs_bandwidth- Git LFS 带宽git_lfs_storage- Git LFS 存储models_inference- 模型推理packages_bandwidth- 包带宽packages_storage- 包存储spark_premium_request- Spark 高级请求
注意
可用的确切 SKU 可能会因企业或组织配置和已启用的功能而异。 如果在通过 REST API 创建预算时收到 404 错误,请查看错误响应以查看帐户的有效 SKU 的当前列表。