Optional. The maximum number of results to return from this request. Non-positive values are ignored. If not specified, the server will determine the number of results to return.
pageToken
string
Optional. If present, retrieves the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters must be identical to those in the previous call.
filter
string
Filter expression to restrict the recommendations returned. Supported filter fields:
stateInfo.state
recommenderSubtype
priority
targetResources
Examples:
stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED
recommenderSubtype = REMOVE_ROLE OR recommenderSubtype = REPLACE_ROLE
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-14 UTC."],[],[],null,["# Method: projects.locations.recommenders.recommendations.list\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [IAM Permissions](#body.aspect_1)\n\nLists recommendations for the specified Cloud Resource. Requires the recommender.\\*.list IAM permission for the specified recommender.\n\n### HTTP request\n\n`GET https://recommender.googleapis.com/v1/{parent=projects/*/locations/*/recommenders/*}/recommendations`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains an instance of [ListRecommendationsResponse](/recommender/docs/reference/rest/v1/ListRecommendationsResponse).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/).\n\n### IAM Permissions\n\nRequires the following [IAM](https://cloud.google.com/iam/docs) permissions on the `parent` resource:\n\n- `recommender.usageCommitmentRecommendations.list`\n- `recommender.computeAddressIdleResourceRecommendations.list`\n- `recommender.computeDiskIdleResourceRecommendations.list`\n- `recommender.computeImageIdleResourceRecommendations.list`\n- `recommender.computeInstanceGroupManagerMachineTypeRecommendations.list`\n- `recommender.computeInstanceIdleResourceRecommendations.list`\n- `recommender.computeInstanceMachineTypeRecommendations.list`\n- `recommender.iamPolicyRecommendations.list`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]