GetInventoryInsights
Returns certificate counts from certificate inventory for organizations in AWS Certificate Manager (ACM), broken down by the requested aggregates. An aggregate groups the count by one property, such as Region or key algorithm. The counts can be older than the request, so each result carries its own UpdatedAt. For a count under any other filter, use SearchInventory.
You must call this operation from the organization's management account or its delegated administrator account. Otherwise, the operation returns AccessDeniedException. Before the first PutInventoryConfiguration call, only the management account can call it.
Request Syntax
{
"RequestedAggregates": [
{ ... }
]
}
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.
In the following list, the required parameters are described first.
- RequestedAggregates
-
The aggregates to return, 0 to 25 entries, each at most once.
CertificateCountis always returned.Type: Array of InventoryAggregateRequest objects
Array Members: Minimum number of 0 items. Maximum number of 25 items.
Required: Yes
Response Syntax
{
"Aggregates": [
{
"Aggregate": "string",
"CertificateTypeGroups": [
{
"CertificateCount": number,
"CertificateType": "string",
"Groups": [
{
"Count": number,
"MaxDays": number,
"MinDays": number,
"Value": "string"
}
]
}
],
"Groups": [
{
"Count": number,
"MaxDays": number,
"MinDays": number,
"Value": "string"
}
],
"OtherCount": number,
"Status": "string",
"UpdatedAt": number
}
],
"CertificateCount": number,
"UpdatedAt": 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.
- Aggregates
-
One result for each requested aggregate, in request order.
Type: Array of InventoryAggregateResult objects
Array Members: Minimum number of 0 items. Maximum number of 25 items.
- CertificateCount
-
The number of certificates in the organization's inventory.
Type: Long
- UpdatedAt
-
When
CertificateCountwas last recomputed, in UTC. Absent when the organization's counts have not been computed yet.Type: Timestamp
Errors
For information about the errors that are common to all actions, see Common Error Types.
- AccessDeniedException
-
You do not have access required to perform this action.
HTTP Status Code: 400
- InternalServerException
-
The request processing has failed because of an unknown error, exception, or failure.
HTTP Status Code: 500
- ThrottlingException
-
The request was denied because it exceeded a quota.
- throttlingReasons
-
One or more reasons why the request was throttled.
HTTP Status Code: 400
- ValidationException
-
The supplied input failed to satisfy constraints of an AWS service.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: