Get-GitHubBillingGithubBillingUsageSummaryReportOrg
SYNOPSIS
Get billing usage summary for an organization
SYNTAX
__AllParameterSets
Get-GitHubBillingGithubBillingUsageSummaryReportOrg [-Org] <string> [-Year <long>] [-Month <long>]
[-Day <long>] [-Repository <string>] [-Product <string>] [-Sku <string>] [-Accept <string>]
ALIASES
This cmdlet has the following aliases,
- Get-GHBillingGithubBillingUsageSummaryReportOrg
DESCRIPTION
The Get-GitHubBillingGithubBillingUsageSummaryReportOrg cmdlet invokes the GET method of the /organizations/{org}/settings/billing/usage/summary endpoint (Get billing usage summary for an organization)
[!NOTE] This endpoint is in public preview and is subject to change.
Gets a summary report of usage for an organization. To use this endpoint, you must be an administrator of an organization within an enterprise or an organization account.
Note: Only data from the past 24 months is accessible via this endpoint.
Endpoint: GET /organizations/{org}/settings/billing/usage/summary API version: 2026-03-10
EXAMPLES
EXAMPLE 1
Get-GitHubBillingGithubBillingUsageSummaryReportOrg -Org 'github'
Invokes GET /organizations/{org}/settings/billing/usage/summary
PARAMETERS
-Accept
The Accept header (media type) of the request Default value: application/vnd.github+json
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Day
If specified, only return results for a single day. The value of ‘day’ is an integer between ‘1’ and ‘31’. If no ‘year’ or ‘month’ is specified, the default ‘year’ and ‘month’ are used.
Query parameter [ day ]
Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Month
If specified, only return results for a single month. The value of ‘month’ is an integer between ‘1’ and ‘12’. Default value is the current month. If no year is specified the default ‘year’ is used.
Query parameter [ month ]
Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Org
The organization name. The name is not case sensitive.
Path parameter [ org ]
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Product
The product name to query usage for. The name is not case sensitive.
Query parameter [ product ]
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Repository
The repository name to query for usage in the format owner/repository.
Query parameter [ repository ]
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Sku
The SKU to query for usage.
Query parameter [ sku ]
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Year
If specified, only return results for a single year. The value of ‘year’ is an integer with four digits representing a year. For example, ‘2025’. Default value is the current year.
Query parameter [ year ]
Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
Objects with properties named like the path parameters can be piped to this function
{{ Fill in the Description }}
System.String
{{ Fill in the Description }}
OUTPUTS
The response of the GitHub API (objects
{{ Fill in the Description }}
NOTES
OperationId: billing/get-github-billing-usage-summary-report-org Category: billing / usage