provider billing GET
/organizations/{org}/settings/billing/budgets @utdk/github
/organizations/{org}/settings/billing/budgets Get all budgets for an organization
Gets all budgets for an organization. The authenticated user must be an organization admin or billing manager.
Each page returns up to 10 budgets.
- org path required
- The organization name. The name is not case sensitive.
- string
- page query
- The page number of the results to fetch.
- integer
- per_page query
- The number of results per page (max 10).
- integer
- scope query
- Filter budgets by scope type.
- enum: enterprise, organization, repository, cost_center…
- user query
- Filter consumed amount details for budgets by the specified user login.
- string
Try it
Authentication
Configure credentials for GitHub v3 REST API
Code snippet
Updates live as you fill in the form above.
TypeScript
import github from '@utdk/github';
await github.billing.getAllBudgetsOrg({
"page": 1,
"per_page": 10
})