GetQuotaUtilizationReport
Retrieves the quota utilization report for your Amazon Web Services account. This operation returns paginated results showing your quota usage across all Amazon Web Services services, sorted by utilization percentage in descending order (highest utilization first).
You must first initiate a report using the StartQuotaUtilizationReport
operation. The report generation process is asynchronous and may take several seconds to
complete. Poll this operation periodically to check the status and retrieve results when
the report is ready.
Each report contains up to 1,000 quota records per page. Use the NextToken
parameter to retrieve additional pages of results. Reports are automatically deleted after
15 minutes.
Related Actions
Request Syntax
{
"MaxResults": number,
"NextToken": "string",
"ReportId": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
The request accepts the following data in JSON format.
- MaxResults
-
The maximum number of results to return per page. The default value is 1,000 and the maximum allowed value is 1,000.
Type: Integer
Valid Range: Minimum value of 1. Maximum value of 1000.
Required: No
- NextToken
-
A token that indicates the next page of results to retrieve. This token is returned in the response when there are more results available. Omit this parameter for the first request.
Type: String
Length Constraints: Maximum length of 2048.
Pattern:
^[a-zA-Z0-9/+]*={0,2}$Required: No
- ReportId
-
The unique identifier for the quota utilization report. This identifier is returned by the
StartQuotaUtilizationReportoperation.Type: String
Length Constraints: Minimum length of 1. Maximum length of 128.
Pattern:
[0-9a-zA-Z][a-zA-Z0-9-]{1,128}Required: Yes
Response Syntax
{
"ErrorCode": "string",
"ErrorMessage": "string",
"GeneratedAt": number,
"NextToken": "string",
"Quotas": [
{
"Adjustable": boolean,
"AppliedValue": number,
"DefaultValue": number,
"Namespace": "string",
"QuotaCode": "string",
"QuotaName": "string",
"ServiceCode": "string",
"ServiceName": "string",
"Utilization": number
}
],
"ReportId": "string",
"Status": "string",
"TotalCount": number
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
- ErrorCode
-
An error code indicating the reason for failure when the report status is
FAILED. This field is only present when the status isFAILED.Type: String
Length Constraints: Minimum length of 1. Maximum length of 128.
Pattern:
[a-zA-Z][a-zA-Z0-9]* - ErrorMessage
-
A detailed error message describing the failure when the report status is
FAILED. This field is only present when the status isFAILED.Type: String
Length Constraints: Minimum length of 0. Maximum length of 1024.
Pattern:
^.*$ - GeneratedAt
-
The timestamp when the report was generated, in ISO 8601 format.
Type: Timestamp
- NextToken
-
A token that indicates more results are available. Include this token in the next request to retrieve the next page of results. If this field is not present, you have retrieved all available results.
Type: String
Length Constraints: Maximum length of 2048.
Pattern:
^[a-zA-Z0-9/+]*={0,2}$ - Quotas
-
A list of quota utilization records, sorted by utilization percentage in descending order. Each record includes the quota code, service code, service name, quota name, namespace, utilization percentage, default value, applied value, and whether the quota is adjustable. Up to 1,000 records are returned per page.
Type: Array of QuotaUtilizationInfo objects
Array Members: Maximum number of 1000 items.
- ReportId
-
The unique identifier for the quota utilization report.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 128.
Pattern:
[0-9a-zA-Z][a-zA-Z0-9-]{1,128} - Status
-
The current status of the report generation. Possible values are:
-
PENDING- The report generation is in progress. Retry this operation after a few seconds. -
IN_PROGRESS- The report is being processed. Continue polling until the status changes toCOMPLETED. -
COMPLETED- The report is ready and quota utilization data is available in the response. -
FAILED- The report generation failed. Check theErrorCodeandErrorMessagefields for details.
Type: String
Valid Values:
PENDING | IN_PROGRESS | COMPLETED | FAILED -
- TotalCount
-
The total number of quotas included in the report across all pages.
Type: Integer
Valid Range: Minimum value of 0. Maximum value of 2147483647.
Errors
For information about the errors that are common to all actions, see Common Errors.
- AccessDeniedException
-
You do not have sufficient permission to perform this action.
HTTP Status Code: 400
- IllegalArgumentException
-
Invalid input was provided.
HTTP Status Code: 400
- InvalidPaginationTokenException
-
Invalid input was provided.
HTTP Status Code: 400
- NoSuchResourceException
-
The specified resource does not exist.
HTTP Status Code: 400
- ServiceException
-
Something went wrong.
HTTP Status Code: 500
- TooManyRequestsException
-
Due to throttling, the request was denied. Slow down the rate of request calls, or request an increase for this quota.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific Amazon SDKs, see the following: