予算および使用量管理 API が一般提供開始
GitHub は、プログラムによる予算の作成・更新・削除や使用量の追跡、コストセンターデータの取得を可能にする拡張された請求 API の一般提供を開始した。
GitHub’s expanded billing APIs to programmatically manage budgets, track usage, and access cost center data are now generally available.
Manage budgets via APIs
You can now manage the full lifecycle of budgets via API. Previously, budgets could only be managed through the UI. Now, you can programmatically create, update, and delete budgets, as well as adjust the budget amount and alert notifications. There is currently a temporary limit of 50 budgets per account.
For more details, refer to our documentation on REST API endpoints for budgets.
Track usage with the new usage summary API
The new Usage summary API allows you to retrieve usage information for your entire account or filter by specific organizations, repositories, cost centers, products, or SKUs. Usage can be queried by year, month, or day.
For more details, refer to our documentation on the Usage summary REST API endpoint.
Additional improvements
Cost center API improvement: The Get all cost centers for an enterprise API now includes an optional state parameter, which allows you to only get active cost centers by adding ?state=active when calling the endpoint.
Usage report API changes: We’ve removed the hour parameter from the existing Usage report API and reduced the granularity of the response when using the day parameter to provide daily totals instead of hourly breakdowns. For more details, refer to our documentation on the Get billing usage report for an enterprise REST API endpoint.
Who can use these features
Enterprise owners and billing managers on GitHub Enterprise plans
Organization owners on GitHub Team plans
Individuals on personal plans
Join the discussion within GitHub Community.
The post Budget and usage management APIs now generally available appeared first on The GitHub Blog.
関連記事
GitHub Actions の失敗時に Copilot で修正する機能が Pro、Pro+、Max プランに追加
GitHub は、Copilot Pro、Pro+、Max ユーザー向けに、Actions ジョブの失敗時にワンクリックで Cloud Agent が原因調査と修正を自動実行し、ブランチへプッシュしてレビュー依頼する機能を新設した。
Copilot Pro、Pro+、Max ユーザー向けに Agent タスク REST API が公開
GitHub は Copilot Pro、Pro+、Max のユーザーに対し、クラウドエージェントのタスクをプログラムで開始・追跡できる「Agent tasks REST API」をパブリックプレビューとして提供を開始した。これにより、カスタム自動化への統合が容易になる。
請求使用状況レポートへの API アクセスが一般提供開始
GitHub が企業管理者向けに、REST API を通じて請求使用状況レポートを CSV 形式で要求・ダウンロードできる機能を一般提供した。これにより、UI で利用可能な同様のレポートをプログラムから作成可能になった。