Get-GitHubBillingGithubBillingPremiumRequestUsageReportOrg
SYNOPSIS
Get billing premium request usage report for an organization
SYNTAX
__AllParameterSets
Get-GitHubBillingGithubBillingPremiumRequestUsageReportOrg [-Org] <string> [-Year <long>]
[-Month <long>] [-Day <long>] [-User <string>] [-Model <string>] [-Product <string>]
[-Accept <string>]
ALIASES
This cmdlet has the following aliases,
- Get-GHBillingGithubBillingPremiumRequestUsageReportOrg
DESCRIPTION
The Get-GitHubBillingGithubBillingPremiumRequestUsageReportOrg cmdlet invokes the GET method of the /organizations/{org}/settings/billing/premium_request/usage endpoint (Get billing premium request usage report for an organization)
Gets a report of premium request 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/premium_request/usage API version: 2026-03-10
EXAMPLES
EXAMPLE 1
Get-GitHubBillingGithubBillingPremiumRequestUsageReportOrg -Org 'github'
Invokes GET /organizations/{org}/settings/billing/premium_request/usage
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: ''
-Model
The model name to query usage for. The name is not case sensitive.
Query parameter [ model ]
Type: System.String
DefaultValue: ''
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: ''
-User
The user name to query usage for. The name is not case sensitive.
Query parameter [ user ]
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-premium-request-usage-report-org Category: billing / usage