ListOrganizationRecommendations
List a filterable set of Recommendations within an Organization. This API only supports prioritized recommendations and provides global priority recommendations, eliminating the need to call the API in each AWS Region.
Request Syntax
GET /v1/organization-recommendations?afterLastUpdatedAt=afterLastUpdatedAt
&awsService=awsService
&beforeLastUpdatedAt=beforeLastUpdatedAt
&checkIdentifier=checkIdentifier
&maxResults=maxResults
&nextToken=nextToken
&pillar=pillar
&source=source
&status=status
&type=type
HTTP/1.1
URI Request Parameters
The request uses the following URI parameters.
- afterLastUpdatedAt
-
After the last update of the Recommendation
- awsService
-
The aws service associated with the Recommendation
Length Constraints: Minimum length of 2. Maximum length of 30.
- beforeLastUpdatedAt
-
Before the last update of the Recommendation
- checkIdentifier
-
The check identifier of the Recommendation
Length Constraints: Minimum length of 20. Maximum length of 64.
Pattern:
^arn:[\w-]+:trustedadvisor:::check\/[\w-]+$
- maxResults
-
The maximum number of results to return per page.
Valid Range: Minimum value of 1. Maximum value of 200.
- nextToken
-
The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
Length Constraints: Minimum length of 4. Maximum length of 10000.
- pillar
-
The pillar of the Recommendation
Valid Values:
cost_optimizing | performance | security | service_limits | fault_tolerance | operational_excellence
- source
-
The source of the Recommendation
Valid Values:
aws_config | compute_optimizer | cost_explorer | lse | manual | pse | rds | resilience | resilience_hub | security_hub | stir | ta_check | well_architected
- status
-
The status of the Recommendation
Valid Values:
ok | warning | error
- type
-
The type of the Recommendation
Valid Values:
standard | priority
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"nextToken": "string",
"organizationRecommendationSummaries": [
{
"arn": "string",
"awsServices": [ "string" ],
"checkArn": "string",
"createdAt": "string",
"id": "string",
"lastUpdatedAt": "string",
"lifecycleStage": "string",
"name": "string",
"pillars": [ "string" ],
"pillarSpecificAggregates": {
"costOptimizing": {
"estimatedMonthlySavings": number,
"estimatedPercentMonthlySavings": number
}
},
"resourcesAggregates": {
"errorCount": number,
"okCount": number,
"warningCount": number
},
"source": "string",
"status": "string",
"type": "string"
}
]
}
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.
- nextToken
-
The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
Type: String
Length Constraints: Minimum length of 4. Maximum length of 10000.
- organizationRecommendationSummaries
-
The list of Recommendations
Type: Array of OrganizationRecommendationSummary objects
Errors
For information about the errors that are common to all actions, see Common Errors.
- AccessDeniedException
-
Exception that access has been denied due to insufficient access
HTTP Status Code: 403
- InternalServerException
-
Exception to notify that an unexpected internal error occurred during processing of the request
HTTP Status Code: 500
- ThrottlingException
-
Exception to notify that requests are being throttled
HTTP Status Code: 429
- ValidationException
-
Exception that the request failed to satisfy service constraints
HTTP Status Code: 400
Examples
List All Organization Recommendations
List all organization recommendations and do not include a filter.
Sample Response
{
"organizationRecommendationSummaries": [
{
"arn": "arn:aws:trustedadvisor:::organization-recommendation/9534ec9b-bf3a-44e8-8213-2ed68b39d9d5",
"name": "Lambda Runtime Deprecation Warning",
"awsServices": [
"lambda"
],
"checkArn": "arn:aws:trustedadvisor:::check/L4dfs2Q4C5",
"id": "9534ec9b-bf3a-44e8-8213-2ed68b39d9d5",
"lifecycleStage": "resolved",
"pillars": [
"security"
],
"resourcesAggregates": {
"errorCount": 0,
"okCount": 0,
"warningCount": 0
},
"source": "ta_check",
"status": "warning",
"type": "priority"
},
{
"arn": "arn:aws:trustedadvisor:::organization-recommendation/4ecff4d4-1bc1-4c99-a5b8-0fff9ee500d6",
"name": "Lambda Runtime Deprecation Warning",
"awsServices": [
"lambda"
],
"checkArn": "arn:aws:trustedadvisor:::check/L4dfs2Q4C5",
"id": "4ecff4d4-1bc1-4c99-a5b8-0fff9ee500d6",
"lifecycleStage": "resolved",
"pillars": [
"security"
],
"resourcesAggregates": {
"errorCount": 0,
"okCount": 0,
"warningCount": 0
},
"source": "ta_check",
"status": "warning",
"type": "priority"
},
],
"nextToken": "REDACTED"
}
List Organization Recommendations With Filter
Filter and return a max of one organization recommendation that is a part of the "security" pillar.
Sample Request
{
"pillar": "security",
"maxResults": 100
}
Sample Response
{
"organizationRecommendationSummaries": [{
"arn": "arn:aws:trustedadvisor:::organization-recommendation/9534ec9b-bf3a-44e8-8213-2ed68b39d9d5",
"name": "Lambda Runtime Deprecation Warning",
"awsServices": [
"lambda"
],
"checkArn": "arn:aws:trustedadvisor:::check/L4dfs2Q4C5",
"id": "9534ec9b-bf3a-44e8-8213-2ed68b39d9d5",
"lifecycleStage": "resolved",
"pillars": [
"security"
],
"resourcesAggregates": {
"errorCount": 0,
"okCount": 0,
"warningCount": 0
},
"source": "ta_check",
"status": "warning",
"type": "priority"
}],
"nextToken": "REDACTED"
}
Fetch The Next Page Of A Previous Request
Use the "nextToken" returned from a previous request to fetch the next page of filtered organization recommendations that are a part of the "security" pillar.
Sample Request
{
"nextToken": "REDACTED",
"pillar": "security",
"maxResults": 100
}
Sample Response
{
"organizationRecommendationSummaries": [{
"arn": "arn:aws:trustedadvisor:::organization-recommendation/4ecff4d4-1bc1-4c99-a5b8-0fff9ee500d6",
"name": "Lambda Runtime Deprecation Warning",
"awsServices": [
"lambda"
],
"checkArn": "arn:aws:trustedadvisor:::check/L4dfs2Q4C5",
"id": "4ecff4d4-1bc1-4c99-a5b8-0fff9ee500d6",
"lifecycleStage": "resolved",
"pillars": [
"security"
],
"resourcesAggregates": {
"errorCount": 0,
"okCount": 0,
"warningCount": 0
},
"source": "ta_check",
"status": "warning",
"type": "priority"
}]
}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: