Skip to main content

recommendations

Creates, updates, deletes, gets or lists a recommendations resource.

Overview

Namerecommendations
TypeResource
Idgoogle.recommender.recommendations

Fields

NameDatatypeDescription
namestringIdentifier. Name of recommendation.
descriptionstringFree-form human readable summary in English. The maximum length is 500 characters.
additionalImpactarrayOptional set of additional impact that this recommendation may have when trying to optimize for the primary category. These may be positive or negative.
associatedInsightsarrayInsights that led to this recommendation.
contentobjectContains what resources are changing and how they are changing.
etagstringFingerprint of the Recommendation. Provides optimistic locking when updating states.
lastRefreshTimestringLast time this recommendation was refreshed by the system that created it in the first place.
primaryImpactobjectContains the impact a recommendation can have for a given category.
prioritystringRecommendation's priority.
recommenderSubtypestringContains an identifier for a subtype of recommendations produced for the same recommender. Subtype is a function of content and impact, meaning a new subtype might be added when significant changes to content or primary_impact.category are introduced. See the Recommenders section to see a list of subtypes for a given Recommender. Examples: For recommender = "google.iam.policy.Recommender", recommender_subtype can be one of "REMOVE_ROLE"/"REPLACE_ROLE"
stateInfoobjectInformation for state. Contains state and metadata.
targetResourcesarrayFully qualified resource names that this recommendation is targeting.
xorGroupIdstringCorresponds to a mutually exclusive group ID within a recommender. A non-empty ID indicates that the recommendation belongs to a mutually exclusive group. This means that only one recommendation within the group is suggested to be applied.

Methods

NameAccessible byRequired ParamsDescription
billing_accounts_locations_recommenders_recommendations_getSELECTbillingAccountsId, locationsId, recommendationsId, recommendersIdGets the requested recommendation. Requires the recommender.*.get IAM permission for the specified recommender.
billing_accounts_locations_recommenders_recommendations_listSELECTbillingAccountsId, locationsId, recommendersIdLists recommendations for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified recommender.
folders_locations_recommenders_recommendations_getSELECTfoldersId, locationsId, recommendationsId, recommendersIdGets the requested recommendation. Requires the recommender.*.get IAM permission for the specified recommender.
folders_locations_recommenders_recommendations_listSELECTfoldersId, locationsId, recommendersIdLists recommendations for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified recommender.
organizations_locations_recommenders_recommendations_getSELECTlocationsId, organizationsId, recommendationsId, recommendersIdGets the requested recommendation. Requires the recommender.*.get IAM permission for the specified recommender.
organizations_locations_recommenders_recommendations_listSELECTlocationsId, organizationsId, recommendersIdLists recommendations for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified recommender.
projects_locations_recommenders_recommendations_getSELECTlocationsId, projectsId, recommendationsId, recommendersIdGets the requested recommendation. Requires the recommender.*.get IAM permission for the specified recommender.
projects_locations_recommenders_recommendations_listSELECTlocationsId, projectsId, recommendersIdLists recommendations for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified recommender.
billing_accounts_locations_recommenders_recommendations_mark_claimedEXECbillingAccountsId, locationsId, recommendationsId, recommendersIdMarks the Recommendation State as Claimed. Users can use this method to indicate to the Recommender API that they are starting to apply the recommendation themselves. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationClaimed can be applied to recommendations in CLAIMED, SUCCEEDED, FAILED, or ACTIVE state. Requires the recommender.*.update IAM permission for the specified recommender.
billing_accounts_locations_recommenders_recommendations_mark_dismissedEXECbillingAccountsId, locationsId, recommendationsId, recommendersIdMark the Recommendation State as Dismissed. Users can use this method to indicate to the Recommender API that an ACTIVE recommendation has to be marked back as DISMISSED. MarkRecommendationDismissed can be applied to recommendations in ACTIVE state. Requires the recommender.*.update IAM permission for the specified recommender.
billing_accounts_locations_recommenders_recommendations_mark_failedEXECbillingAccountsId, locationsId, recommendationsId, recommendersIdMarks the Recommendation State as Failed. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation failed. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationFailed can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender.
billing_accounts_locations_recommenders_recommendations_mark_succeededEXECbillingAccountsId, locationsId, recommendationsId, recommendersIdMarks the Recommendation State as Succeeded. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation was successful. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationSucceeded can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender.
folders_locations_recommenders_recommendations_mark_claimedEXECfoldersId, locationsId, recommendationsId, recommendersIdMarks the Recommendation State as Claimed. Users can use this method to indicate to the Recommender API that they are starting to apply the recommendation themselves. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationClaimed can be applied to recommendations in CLAIMED, SUCCEEDED, FAILED, or ACTIVE state. Requires the recommender.*.update IAM permission for the specified recommender.
folders_locations_recommenders_recommendations_mark_dismissedEXECfoldersId, locationsId, recommendationsId, recommendersIdMark the Recommendation State as Dismissed. Users can use this method to indicate to the Recommender API that an ACTIVE recommendation has to be marked back as DISMISSED. MarkRecommendationDismissed can be applied to recommendations in ACTIVE state. Requires the recommender.*.update IAM permission for the specified recommender.
folders_locations_recommenders_recommendations_mark_failedEXECfoldersId, locationsId, recommendationsId, recommendersIdMarks the Recommendation State as Failed. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation failed. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationFailed can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender.
folders_locations_recommenders_recommendations_mark_succeededEXECfoldersId, locationsId, recommendationsId, recommendersIdMarks the Recommendation State as Succeeded. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation was successful. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationSucceeded can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender.
organizations_locations_recommenders_recommendations_mark_claimedEXEClocationsId, organizationsId, recommendationsId, recommendersIdMarks the Recommendation State as Claimed. Users can use this method to indicate to the Recommender API that they are starting to apply the recommendation themselves. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationClaimed can be applied to recommendations in CLAIMED, SUCCEEDED, FAILED, or ACTIVE state. Requires the recommender.*.update IAM permission for the specified recommender.
organizations_locations_recommenders_recommendations_mark_dismissedEXEClocationsId, organizationsId, recommendationsId, recommendersIdMark the Recommendation State as Dismissed. Users can use this method to indicate to the Recommender API that an ACTIVE recommendation has to be marked back as DISMISSED. MarkRecommendationDismissed can be applied to recommendations in ACTIVE state. Requires the recommender.*.update IAM permission for the specified recommender.
organizations_locations_recommenders_recommendations_mark_failedEXEClocationsId, organizationsId, recommendationsId, recommendersIdMarks the Recommendation State as Failed. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation failed. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationFailed can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender.
organizations_locations_recommenders_recommendations_mark_succeededEXEClocationsId, organizationsId, recommendationsId, recommendersIdMarks the Recommendation State as Succeeded. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation was successful. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationSucceeded can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender.
projects_locations_recommenders_recommendations_mark_claimedEXEClocationsId, projectsId, recommendationsId, recommendersIdMarks the Recommendation State as Claimed. Users can use this method to indicate to the Recommender API that they are starting to apply the recommendation themselves. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationClaimed can be applied to recommendations in CLAIMED, SUCCEEDED, FAILED, or ACTIVE state. Requires the recommender.*.update IAM permission for the specified recommender.
projects_locations_recommenders_recommendations_mark_dismissedEXEClocationsId, projectsId, recommendationsId, recommendersIdMark the Recommendation State as Dismissed. Users can use this method to indicate to the Recommender API that an ACTIVE recommendation has to be marked back as DISMISSED. MarkRecommendationDismissed can be applied to recommendations in ACTIVE state. Requires the recommender.*.update IAM permission for the specified recommender.
projects_locations_recommenders_recommendations_mark_failedEXEClocationsId, projectsId, recommendationsId, recommendersIdMarks the Recommendation State as Failed. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation failed. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationFailed can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender.
projects_locations_recommenders_recommendations_mark_succeededEXEClocationsId, projectsId, recommendationsId, recommendersIdMarks the Recommendation State as Succeeded. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation was successful. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationSucceeded can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender.

SELECT examples

Lists recommendations for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified recommender.

SELECT
name,
description,
additionalImpact,
associatedInsights,
content,
etag,
lastRefreshTime,
primaryImpact,
priority,
recommenderSubtype,
stateInfo,
targetResources,
xorGroupId
FROM google.recommender.recommendations
WHERE foldersId = '{{ foldersId }}'
AND locationsId = '{{ locationsId }}'
AND recommendersId = '{{ recommendersId }}';