{ "documentationLink": "https://cloud.google.com/recommender/docs/", "canonicalName": "Recommender", "discoveryVersion": "v1", "ownerName": "Google", "version": "v1", "id": "recommender:v1", "name": "recommender", "auth": { "oauth2": { "scopes": { "https://www.googleapis.com/auth/cloud-platform": { "description": "See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account." } } } }, "baseUrl": "https://recommender.googleapis.com/", "resources": { "projects": { "resources": { "locations": { "resources": { "recommenders": { "resources": { "recommendations": { "methods": { "markSucceeded": { "httpMethod": "POST", "description": "Marks 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.", "response": { "$ref": "GoogleCloudRecommenderV1Recommendation" }, "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markSucceeded", "parameters": { "name": { "type": "string", "required": true, "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/recommenders/[^/]+/recommendations/[^/]+$", "description": "Required. Name of the recommendation." } }, "path": "v1/{+name}:markSucceeded", "id": "recommender.projects.locations.recommenders.recommendations.markSucceeded", "request": { "$ref": "GoogleCloudRecommenderV1MarkRecommendationSucceededRequest" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameterOrder": [ "name" ] }, "list": { "httpMethod": "GET", "description": "Lists recommendations for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified recommender.", "parameterOrder": [ "parent" ], "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations", "parameters": { "pageSize": { "type": "integer", "description": "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.", "format": "int32", "location": "query" }, "filter": { "type": "string", "description": "Filter expression to restrict the recommendations returned. Supported filter fields: * `state_info.state` * `recommenderSubtype` * `priority` * `targetResources` Examples: * `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` * `recommenderSubtype = REMOVE_ROLE OR recommenderSubtype = REPLACE_ROLE` * `priority = P1 OR priority = P2` * `targetResources : //compute.googleapis.com/projects/1234/zones/us-central1-a/instances/instance-1` * `stateInfo.state = ACTIVE AND (priority = P1 OR priority = P2)` The max allowed filter length is 500 characters. (These expressions are based on the filter language described at https://google.aip.dev/160)", "location": "query" }, "pageToken": { "location": "query", "type": "string", "description": "Optional. If present, retrieves the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response. The values of other method parameters must be identical to those in the previous call." }, "parent": { "pattern": "^projects/[^/]+/locations/[^/]+/recommenders/[^/]+$", "location": "path", "type": "string", "required": true, "description": "Required. The container resource on which to execute the request. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `folders/[FOLDER_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` LOCATION here refers to GCP Locations: https://cloud.google.com/about/locations/ RECOMMENDER_ID refers to supported recommenders: https://cloud.google.com/recommender/docs/recommenders." } }, "path": "v1/{+parent}/recommendations", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "id": "recommender.projects.locations.recommenders.recommendations.list", "response": { "$ref": "GoogleCloudRecommenderV1ListRecommendationsResponse" } }, "markDismissed": { "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markDismissed", "parameterOrder": [ "name" ], "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "httpMethod": "POST", "response": { "$ref": "GoogleCloudRecommenderV1Recommendation" }, "request": { "$ref": "GoogleCloudRecommenderV1MarkRecommendationDismissedRequest" }, "path": "v1/{+name}:markDismissed", "id": "recommender.projects.locations.recommenders.recommendations.markDismissed", "description": "Mark 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.", "parameters": { "name": { "description": "Required. Name of the recommendation.", "required": true, "location": "path", "type": "string", "pattern": "^projects/[^/]+/locations/[^/]+/recommenders/[^/]+/recommendations/[^/]+$" } } }, "markFailed": { "httpMethod": "POST", "response": { "$ref": "GoogleCloudRecommenderV1Recommendation" }, "parameterOrder": [ "name" ], "parameters": { "name": { "pattern": "^projects/[^/]+/locations/[^/]+/recommenders/[^/]+/recommendations/[^/]+$", "description": "Required. Name of the recommendation.", "type": "string", "location": "path", "required": true } }, "id": "recommender.projects.locations.recommenders.recommendations.markFailed", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markFailed", "path": "v1/{+name}:markFailed", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "description": "Marks 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.", "request": { "$ref": "GoogleCloudRecommenderV1MarkRecommendationFailedRequest" } }, "markClaimed": { "id": "recommender.projects.locations.recommenders.recommendations.markClaimed", "response": { "$ref": "GoogleCloudRecommenderV1Recommendation" }, "parameterOrder": [ "name" ], "path": "v1/{+name}:markClaimed", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markClaimed", "description": "Marks 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.", "httpMethod": "POST", "parameters": { "name": { "type": "string", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/recommenders/[^/]+/recommendations/[^/]+$", "description": "Required. Name of the recommendation.", "required": true } }, "request": { "$ref": "GoogleCloudRecommenderV1MarkRecommendationClaimedRequest" } }, "get": { "parameters": { "name": { "description": "Required. Name of the recommendation.", "required": true, "type": "string", "pattern": "^projects/[^/]+/locations/[^/]+/recommenders/[^/]+/recommendations/[^/]+$", "location": "path" } }, "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameterOrder": [ "name" ], "id": "recommender.projects.locations.recommenders.recommendations.get", "path": "v1/{+name}", "httpMethod": "GET", "description": "Gets the requested recommendation. Requires the recommender.*.get IAM permission for the specified recommender.", "response": { "$ref": "GoogleCloudRecommenderV1Recommendation" } } } } }, "methods": { "updateConfig": { "id": "recommender.projects.locations.recommenders.updateConfig", "httpMethod": "PATCH", "request": { "$ref": "GoogleCloudRecommenderV1RecommenderConfig" }, "parameterOrder": [ "name" ], "parameters": { "validateOnly": { "type": "boolean", "location": "query", "description": "If true, validate the request and preview the change, but do not actually update it." }, "name": { "description": "Identifier. Name of recommender config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config", "location": "path", "type": "string", "required": true, "pattern": "^projects/[^/]+/locations/[^/]+/recommenders/[^/]+/config$" }, "updateMask": { "location": "query", "description": "The list of fields to be updated.", "format": "google-fieldmask", "type": "string" } }, "path": "v1/{+name}", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "response": { "$ref": "GoogleCloudRecommenderV1RecommenderConfig" }, "description": "Updates a Recommender Config. This will create a new revision of the config.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/recommenders/{recommendersId}/config" }, "getConfig": { "parameters": { "name": { "type": "string", "pattern": "^projects/[^/]+/locations/[^/]+/recommenders/[^/]+/config$", "description": "Required. Name of the Recommendation Config to get. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config`", "location": "path", "required": true } }, "parameterOrder": [ "name" ], "response": { "$ref": "GoogleCloudRecommenderV1RecommenderConfig" }, "description": "Gets the requested Recommender Config. There is only one instance of the config for each Recommender.", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "path": "v1/{+name}", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/recommenders/{recommendersId}/config", "httpMethod": "GET", "id": "recommender.projects.locations.recommenders.getConfig" } } }, "insightTypes": { "methods": { "updateConfig": { "httpMethod": "PATCH", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/insightTypes/{insightTypesId}/config", "request": { "$ref": "GoogleCloudRecommenderV1InsightTypeConfig" }, "response": { "$ref": "GoogleCloudRecommenderV1InsightTypeConfig" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameterOrder": [ "name" ], "path": "v1/{+name}", "parameters": { "name": { "description": "Identifier. Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config", "location": "path", "required": true, "pattern": "^projects/[^/]+/locations/[^/]+/insightTypes/[^/]+/config$", "type": "string" }, "updateMask": { "type": "string", "format": "google-fieldmask", "description": "The list of fields to be updated.", "location": "query" }, "validateOnly": { "description": "If true, validate the request and preview the change, but do not actually update it.", "type": "boolean", "location": "query" } }, "id": "recommender.projects.locations.insightTypes.updateConfig", "description": "Updates an InsightTypeConfig change. This will create a new revision of the config." }, "getConfig": { "parameterOrder": [ "name" ], "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/insightTypes/{insightTypesId}/config", "parameters": { "name": { "pattern": "^projects/[^/]+/locations/[^/]+/insightTypes/[^/]+/config$", "location": "path", "description": "Required. Name of the InsightTypeConfig to get. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config` * `projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config` * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config`", "type": "string", "required": true } }, "description": "Gets the requested InsightTypeConfig. There is only one instance of the config for each InsightType.", "path": "v1/{+name}", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "response": { "$ref": "GoogleCloudRecommenderV1InsightTypeConfig" }, "id": "recommender.projects.locations.insightTypes.getConfig", "httpMethod": "GET" } }, "resources": { "insights": { "methods": { "markAccepted": { "parameterOrder": [ "name" ], "path": "v1/{+name}:markAccepted", "response": { "$ref": "GoogleCloudRecommenderV1Insight" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "description": "Marks the Insight State as Accepted. Users can use this method to indicate to the Recommender API that they have applied some action based on the insight. This stops the insight content from being updated. MarkInsightAccepted can be applied to insights in ACTIVE state. Requires the recommender.*.update IAM permission for the specified insight.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/insightTypes/{insightTypesId}/insights/{insightsId}:markAccepted", "request": { "$ref": "GoogleCloudRecommenderV1MarkInsightAcceptedRequest" }, "httpMethod": "POST", "parameters": { "name": { "pattern": "^projects/[^/]+/locations/[^/]+/insightTypes/[^/]+/insights/[^/]+$", "location": "path", "type": "string", "description": "Required. Name of the insight.", "required": true } }, "id": "recommender.projects.locations.insightTypes.insights.markAccepted" }, "get": { "response": { "$ref": "GoogleCloudRecommenderV1Insight" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameterOrder": [ "name" ], "path": "v1/{+name}", "id": "recommender.projects.locations.insightTypes.insights.get", "httpMethod": "GET", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/insightTypes/{insightTypesId}/insights/{insightsId}", "parameters": { "name": { "type": "string", "required": true, "description": "Required. Name of the insight.", "pattern": "^projects/[^/]+/locations/[^/]+/insightTypes/[^/]+/insights/[^/]+$", "location": "path" } }, "description": "Gets the requested insight. Requires the recommender.*.get IAM permission for the specified insight type." }, "list": { "id": "recommender.projects.locations.insightTypes.insights.list", "parameterOrder": [ "parent" ], "description": "Lists insights for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified insight type.", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "httpMethod": "GET", "response": { "$ref": "GoogleCloudRecommenderV1ListInsightsResponse" }, "path": "v1/{+parent}/insights", "parameters": { "filter": { "description": "Optional. Filter expression to restrict the insights returned. Supported filter fields: * `stateInfo.state` * `insightSubtype` * `severity` * `targetResources` Examples: * `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` * `insightSubtype = PERMISSIONS_USAGE` * `severity = CRITICAL OR severity = HIGH` * `targetResources : //compute.googleapis.com/projects/1234/zones/us-central1-a/instances/instance-1` * `stateInfo.state = ACTIVE AND (severity = CRITICAL OR severity = HIGH)` The max allowed filter length is 500 characters. (These expressions are based on the filter language described at https://google.aip.dev/160)", "type": "string", "location": "query" }, "parent": { "location": "path", "required": true, "description": "Required. The container resource on which to execute the request. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` * `projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` * `folders/[FOLDER_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` LOCATION here refers to GCP Locations: https://cloud.google.com/about/locations/ INSIGHT_TYPE_ID refers to supported insight types: https://cloud.google.com/recommender/docs/insights/insight-types.", "pattern": "^projects/[^/]+/locations/[^/]+/insightTypes/[^/]+$", "type": "string" }, "pageToken": { "location": "query", "type": "string", "description": "Optional. If present, retrieves the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response. The values of other method parameters must be identical to those in the previous call." }, "pageSize": { "format": "int32", "description": "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.", "type": "integer", "location": "query" } }, "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/insightTypes/{insightTypesId}/insights" } } } } } } } } }, "folders": { "resources": { "locations": { "resources": { "recommenders": { "resources": { "recommendations": { "methods": { "markFailed": { "flatPath": "v1/folders/{foldersId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markFailed", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "path": "v1/{+name}:markFailed", "parameterOrder": [ "name" ], "description": "Marks 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.", "httpMethod": "POST", "id": "recommender.folders.locations.recommenders.recommendations.markFailed", "request": { "$ref": "GoogleCloudRecommenderV1MarkRecommendationFailedRequest" }, "response": { "$ref": "GoogleCloudRecommenderV1Recommendation" }, "parameters": { "name": { "location": "path", "type": "string", "pattern": "^folders/[^/]+/locations/[^/]+/recommenders/[^/]+/recommendations/[^/]+$", "required": true, "description": "Required. Name of the recommendation." } } }, "markSucceeded": { "id": "recommender.folders.locations.recommenders.recommendations.markSucceeded", "request": { "$ref": "GoogleCloudRecommenderV1MarkRecommendationSucceededRequest" }, "flatPath": "v1/folders/{foldersId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markSucceeded", "parameters": { "name": { "description": "Required. Name of the recommendation.", "required": true, "type": "string", "pattern": "^folders/[^/]+/locations/[^/]+/recommenders/[^/]+/recommendations/[^/]+$", "location": "path" } }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "httpMethod": "POST", "description": "Marks 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.", "parameterOrder": [ "name" ], "response": { "$ref": "GoogleCloudRecommenderV1Recommendation" }, "path": "v1/{+name}:markSucceeded" }, "get": { "flatPath": "v1/folders/{foldersId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}", "id": "recommender.folders.locations.recommenders.recommendations.get", "description": "Gets the requested recommendation. Requires the recommender.*.get IAM permission for the specified recommender.", "path": "v1/{+name}", "response": { "$ref": "GoogleCloudRecommenderV1Recommendation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameters": { "name": { "required": true, "type": "string", "pattern": "^folders/[^/]+/locations/[^/]+/recommenders/[^/]+/recommendations/[^/]+$", "location": "path", "description": "Required. Name of the recommendation." } }, "httpMethod": "GET", "parameterOrder": [ "name" ] }, "markClaimed": { "flatPath": "v1/folders/{foldersId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markClaimed", "parameters": { "name": { "location": "path", "description": "Required. Name of the recommendation.", "required": true, "type": "string", "pattern": "^folders/[^/]+/locations/[^/]+/recommenders/[^/]+/recommendations/[^/]+$" } }, "request": { "$ref": "GoogleCloudRecommenderV1MarkRecommendationClaimedRequest" }, "httpMethod": "POST", "parameterOrder": [ "name" ], "id": "recommender.folders.locations.recommenders.recommendations.markClaimed", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "description": "Marks 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.", "path": "v1/{+name}:markClaimed", "response": { "$ref": "GoogleCloudRecommenderV1Recommendation" } }, "list": { "path": "v1/{+parent}/recommendations", "httpMethod": "GET", "response": { "$ref": "GoogleCloudRecommenderV1ListRecommendationsResponse" }, "id": "recommender.folders.locations.recommenders.recommendations.list", "flatPath": "v1/folders/{foldersId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations", "description": "Lists recommendations for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified recommender.", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameterOrder": [ "parent" ], "parameters": { "filter": { "location": "query", "description": "Filter expression to restrict the recommendations returned. Supported filter fields: * `state_info.state` * `recommenderSubtype` * `priority` * `targetResources` Examples: * `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` * `recommenderSubtype = REMOVE_ROLE OR recommenderSubtype = REPLACE_ROLE` * `priority = P1 OR priority = P2` * `targetResources : //compute.googleapis.com/projects/1234/zones/us-central1-a/instances/instance-1` * `stateInfo.state = ACTIVE AND (priority = P1 OR priority = P2)` The max allowed filter length is 500 characters. (These expressions are based on the filter language described at https://google.aip.dev/160)", "type": "string" }, "parent": { "location": "path", "description": "Required. The container resource on which to execute the request. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `folders/[FOLDER_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` LOCATION here refers to GCP Locations: https://cloud.google.com/about/locations/ RECOMMENDER_ID refers to supported recommenders: https://cloud.google.com/recommender/docs/recommenders.", "required": true, "type": "string", "pattern": "^folders/[^/]+/locations/[^/]+/recommenders/[^/]+$" }, "pageSize": { "location": "query", "description": "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.", "type": "integer", "format": "int32" }, "pageToken": { "type": "string", "description": "Optional. If present, retrieves the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response. The values of other method parameters must be identical to those in the previous call.", "location": "query" } } }, "markDismissed": { "flatPath": "v1/folders/{foldersId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markDismissed", "id": "recommender.folders.locations.recommenders.recommendations.markDismissed", "description": "Mark 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.", "parameters": { "name": { "description": "Required. Name of the recommendation.", "required": true, "location": "path", "type": "string", "pattern": "^folders/[^/]+/locations/[^/]+/recommenders/[^/]+/recommendations/[^/]+$" } }, "response": { "$ref": "GoogleCloudRecommenderV1Recommendation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameterOrder": [ "name" ], "path": "v1/{+name}:markDismissed", "httpMethod": "POST", "request": { "$ref": "GoogleCloudRecommenderV1MarkRecommendationDismissedRequest" } } } } } }, "insightTypes": { "resources": { "insights": { "methods": { "list": { "parameters": { "pageToken": { "type": "string", "location": "query", "description": "Optional. If present, retrieves the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response. The values of other method parameters must be identical to those in the previous call." }, "pageSize": { "type": "integer", "description": "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.", "format": "int32", "location": "query" }, "parent": { "type": "string", "pattern": "^folders/[^/]+/locations/[^/]+/insightTypes/[^/]+$", "description": "Required. The container resource on which to execute the request. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` * `projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` * `folders/[FOLDER_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` LOCATION here refers to GCP Locations: https://cloud.google.com/about/locations/ INSIGHT_TYPE_ID refers to supported insight types: https://cloud.google.com/recommender/docs/insights/insight-types.", "location": "path", "required": true }, "filter": { "type": "string", "location": "query", "description": "Optional. Filter expression to restrict the insights returned. Supported filter fields: * `stateInfo.state` * `insightSubtype` * `severity` * `targetResources` Examples: * `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` * `insightSubtype = PERMISSIONS_USAGE` * `severity = CRITICAL OR severity = HIGH` * `targetResources : //compute.googleapis.com/projects/1234/zones/us-central1-a/instances/instance-1` * `stateInfo.state = ACTIVE AND (severity = CRITICAL OR severity = HIGH)` The max allowed filter length is 500 characters. (These expressions are based on the filter language described at https://google.aip.dev/160)" } }, "id": "recommender.folders.locations.insightTypes.insights.list", "response": { "$ref": "GoogleCloudRecommenderV1ListInsightsResponse" }, "flatPath": "v1/folders/{foldersId}/locations/{locationsId}/insightTypes/{insightTypesId}/insights", "httpMethod": "GET", "parameterOrder": [ "parent" ], "path": "v1/{+parent}/insights", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "description": "Lists insights for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified insight type." }, "get": { "httpMethod": "GET", "parameterOrder": [ "name" ], "path": "v1/{+name}", "id": "recommender.folders.locations.insightTypes.insights.get", "description": "Gets the requested insight. Requires the recommender.*.get IAM permission for the specified insight type.", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "flatPath": "v1/folders/{foldersId}/locations/{locationsId}/insightTypes/{insightTypesId}/insights/{insightsId}", "parameters": { "name": { "pattern": "^folders/[^/]+/locations/[^/]+/insightTypes/[^/]+/insights/[^/]+$", "required": true, "description": "Required. Name of the insight.", "type": "string", "location": "path" } }, "response": { "$ref": "GoogleCloudRecommenderV1Insight" } }, "markAccepted": { "httpMethod": "POST", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "flatPath": "v1/folders/{foldersId}/locations/{locationsId}/insightTypes/{insightTypesId}/insights/{insightsId}:markAccepted", "parameters": { "name": { "required": true, "type": "string", "description": "Required. Name of the insight.", "location": "path", "pattern": "^folders/[^/]+/locations/[^/]+/insightTypes/[^/]+/insights/[^/]+$" } }, "id": "recommender.folders.locations.insightTypes.insights.markAccepted", "parameterOrder": [ "name" ], "request": { "$ref": "GoogleCloudRecommenderV1MarkInsightAcceptedRequest" }, "path": "v1/{+name}:markAccepted", "description": "Marks the Insight State as Accepted. Users can use this method to indicate to the Recommender API that they have applied some action based on the insight. This stops the insight content from being updated. MarkInsightAccepted can be applied to insights in ACTIVE state. Requires the recommender.*.update IAM permission for the specified insight.", "response": { "$ref": "GoogleCloudRecommenderV1Insight" } } } } } } } } } }, "organizations": { "resources": { "locations": { "resources": { "insightTypes": { "methods": { "getConfig": { "id": "recommender.organizations.locations.insightTypes.getConfig", "parameters": { "name": { "required": true, "type": "string", "description": "Required. Name of the InsightTypeConfig to get. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config` * `projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config` * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config`", "pattern": "^organizations/[^/]+/locations/[^/]+/insightTypes/[^/]+/config$", "location": "path" } }, "path": "v1/{+name}", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/insightTypes/{insightTypesId}/config", "parameterOrder": [ "name" ], "response": { "$ref": "GoogleCloudRecommenderV1InsightTypeConfig" }, "httpMethod": "GET", "description": "Gets the requested InsightTypeConfig. There is only one instance of the config for each InsightType." }, "updateConfig": { "httpMethod": "PATCH", "parameters": { "updateMask": { "description": "The list of fields to be updated.", "format": "google-fieldmask", "location": "query", "type": "string" }, "name": { "required": true, "location": "path", "type": "string", "description": "Identifier. Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config", "pattern": "^organizations/[^/]+/locations/[^/]+/insightTypes/[^/]+/config$" }, "validateOnly": { "location": "query", "description": "If true, validate the request and preview the change, but do not actually update it.", "type": "boolean" } }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "request": { "$ref": "GoogleCloudRecommenderV1InsightTypeConfig" }, "path": "v1/{+name}", "response": { "$ref": "GoogleCloudRecommenderV1InsightTypeConfig" }, "description": "Updates an InsightTypeConfig change. This will create a new revision of the config.", "parameterOrder": [ "name" ], "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/insightTypes/{insightTypesId}/config", "id": "recommender.organizations.locations.insightTypes.updateConfig" } }, "resources": { "insights": { "methods": { "markAccepted": { "parameterOrder": [ "name" ], "path": "v1/{+name}:markAccepted", "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/insightTypes/{insightTypesId}/insights/{insightsId}:markAccepted", "request": { "$ref": "GoogleCloudRecommenderV1MarkInsightAcceptedRequest" }, "description": "Marks the Insight State as Accepted. Users can use this method to indicate to the Recommender API that they have applied some action based on the insight. This stops the insight content from being updated. MarkInsightAccepted can be applied to insights in ACTIVE state. Requires the recommender.*.update IAM permission for the specified insight.", "response": { "$ref": "GoogleCloudRecommenderV1Insight" }, "id": "recommender.organizations.locations.insightTypes.insights.markAccepted", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameters": { "name": { "location": "path", "pattern": "^organizations/[^/]+/locations/[^/]+/insightTypes/[^/]+/insights/[^/]+$", "type": "string", "description": "Required. Name of the insight.", "required": true } }, "httpMethod": "POST" }, "list": { "parameters": { "pageToken": { "location": "query", "description": "Optional. If present, retrieves the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response. The values of other method parameters must be identical to those in the previous call.", "type": "string" }, "filter": { "location": "query", "description": "Optional. Filter expression to restrict the insights returned. Supported filter fields: * `stateInfo.state` * `insightSubtype` * `severity` * `targetResources` Examples: * `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` * `insightSubtype = PERMISSIONS_USAGE` * `severity = CRITICAL OR severity = HIGH` * `targetResources : //compute.googleapis.com/projects/1234/zones/us-central1-a/instances/instance-1` * `stateInfo.state = ACTIVE AND (severity = CRITICAL OR severity = HIGH)` The max allowed filter length is 500 characters. (These expressions are based on the filter language described at https://google.aip.dev/160)", "type": "string" }, "parent": { "pattern": "^organizations/[^/]+/locations/[^/]+/insightTypes/[^/]+$", "description": "Required. The container resource on which to execute the request. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` * `projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` * `folders/[FOLDER_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` LOCATION here refers to GCP Locations: https://cloud.google.com/about/locations/ INSIGHT_TYPE_ID refers to supported insight types: https://cloud.google.com/recommender/docs/insights/insight-types.", "location": "path", "required": true, "type": "string" }, "pageSize": { "type": "integer", "location": "query", "description": "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.", "format": "int32" } }, "httpMethod": "GET", "id": "recommender.organizations.locations.insightTypes.insights.list", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/insightTypes/{insightTypesId}/insights", "response": { "$ref": "GoogleCloudRecommenderV1ListInsightsResponse" }, "description": "Lists insights for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified insight type.", "path": "v1/{+parent}/insights", "parameterOrder": [ "parent" ] }, "get": { "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "id": "recommender.organizations.locations.insightTypes.insights.get", "description": "Gets the requested insight. Requires the recommender.*.get IAM permission for the specified insight type.", "response": { "$ref": "GoogleCloudRecommenderV1Insight" }, "parameters": { "name": { "pattern": "^organizations/[^/]+/locations/[^/]+/insightTypes/[^/]+/insights/[^/]+$", "location": "path", "required": true, "description": "Required. Name of the insight.", "type": "string" } }, "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/insightTypes/{insightTypesId}/insights/{insightsId}", "path": "v1/{+name}", "parameterOrder": [ "name" ], "httpMethod": "GET" } } } } }, "recommenders": { "methods": { "updateConfig": { "path": "v1/{+name}", "request": { "$ref": "GoogleCloudRecommenderV1RecommenderConfig" }, "description": "Updates a Recommender Config. This will create a new revision of the config.", "response": { "$ref": "GoogleCloudRecommenderV1RecommenderConfig" }, "httpMethod": "PATCH", "parameters": { "updateMask": { "format": "google-fieldmask", "location": "query", "type": "string", "description": "The list of fields to be updated." }, "name": { "pattern": "^organizations/[^/]+/locations/[^/]+/recommenders/[^/]+/config$", "type": "string", "required": true, "description": "Identifier. Name of recommender config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config", "location": "path" }, "validateOnly": { "type": "boolean", "description": "If true, validate the request and preview the change, but do not actually update it.", "location": "query" } }, "id": "recommender.organizations.locations.recommenders.updateConfig", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/recommenders/{recommendersId}/config", "parameterOrder": [ "name" ] }, "getConfig": { "parameterOrder": [ "name" ], "description": "Gets the requested Recommender Config. There is only one instance of the config for each Recommender.", "parameters": { "name": { "location": "path", "required": true, "description": "Required. Name of the Recommendation Config to get. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config`", "type": "string", "pattern": "^organizations/[^/]+/locations/[^/]+/recommenders/[^/]+/config$" } }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "path": "v1/{+name}", "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/recommenders/{recommendersId}/config", "response": { "$ref": "GoogleCloudRecommenderV1RecommenderConfig" }, "id": "recommender.organizations.locations.recommenders.getConfig", "httpMethod": "GET" } }, "resources": { "recommendations": { "methods": { "markSucceeded": { "path": "v1/{+name}:markSucceeded", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "request": { "$ref": "GoogleCloudRecommenderV1MarkRecommendationSucceededRequest" }, "response": { "$ref": "GoogleCloudRecommenderV1Recommendation" }, "httpMethod": "POST", "description": "Marks 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.", "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markSucceeded", "parameters": { "name": { "location": "path", "description": "Required. Name of the recommendation.", "required": true, "pattern": "^organizations/[^/]+/locations/[^/]+/recommenders/[^/]+/recommendations/[^/]+$", "type": "string" } }, "parameterOrder": [ "name" ], "id": "recommender.organizations.locations.recommenders.recommendations.markSucceeded" }, "list": { "parameterOrder": [ "parent" ], "description": "Lists recommendations for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified recommender.", "response": { "$ref": "GoogleCloudRecommenderV1ListRecommendationsResponse" }, "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "id": "recommender.organizations.locations.recommenders.recommendations.list", "httpMethod": "GET", "parameters": { "parent": { "location": "path", "description": "Required. The container resource on which to execute the request. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `folders/[FOLDER_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` LOCATION here refers to GCP Locations: https://cloud.google.com/about/locations/ RECOMMENDER_ID refers to supported recommenders: https://cloud.google.com/recommender/docs/recommenders.", "pattern": "^organizations/[^/]+/locations/[^/]+/recommenders/[^/]+$", "required": true, "type": "string" }, "pageToken": { "type": "string", "location": "query", "description": "Optional. If present, retrieves the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response. The values of other method parameters must be identical to those in the previous call." }, "pageSize": { "format": "int32", "description": "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.", "location": "query", "type": "integer" }, "filter": { "description": "Filter expression to restrict the recommendations returned. Supported filter fields: * `state_info.state` * `recommenderSubtype` * `priority` * `targetResources` Examples: * `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` * `recommenderSubtype = REMOVE_ROLE OR recommenderSubtype = REPLACE_ROLE` * `priority = P1 OR priority = P2` * `targetResources : //compute.googleapis.com/projects/1234/zones/us-central1-a/instances/instance-1` * `stateInfo.state = ACTIVE AND (priority = P1 OR priority = P2)` The max allowed filter length is 500 characters. (These expressions are based on the filter language described at https://google.aip.dev/160)", "location": "query", "type": "string" } }, "path": "v1/{+parent}/recommendations" }, "markFailed": { "description": "Marks 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.", "parameterOrder": [ "name" ], "request": { "$ref": "GoogleCloudRecommenderV1MarkRecommendationFailedRequest" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "id": "recommender.organizations.locations.recommenders.recommendations.markFailed", "httpMethod": "POST", "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markFailed", "response": { "$ref": "GoogleCloudRecommenderV1Recommendation" }, "parameters": { "name": { "description": "Required. Name of the recommendation.", "pattern": "^organizations/[^/]+/locations/[^/]+/recommenders/[^/]+/recommendations/[^/]+$", "location": "path", "type": "string", "required": true } }, "path": "v1/{+name}:markFailed" }, "get": { "httpMethod": "GET", "path": "v1/{+name}", "id": "recommender.organizations.locations.recommenders.recommendations.get", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "response": { "$ref": "GoogleCloudRecommenderV1Recommendation" }, "description": "Gets the requested recommendation. Requires the recommender.*.get IAM permission for the specified recommender.", "parameters": { "name": { "required": true, "pattern": "^organizations/[^/]+/locations/[^/]+/recommenders/[^/]+/recommendations/[^/]+$", "description": "Required. Name of the recommendation.", "type": "string", "location": "path" } }, "parameterOrder": [ "name" ], "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}" }, "markDismissed": { "request": { "$ref": "GoogleCloudRecommenderV1MarkRecommendationDismissedRequest" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "path": "v1/{+name}:markDismissed", "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markDismissed", "parameterOrder": [ "name" ], "description": "Mark 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.", "parameters": { "name": { "description": "Required. Name of the recommendation.", "location": "path", "pattern": "^organizations/[^/]+/locations/[^/]+/recommenders/[^/]+/recommendations/[^/]+$", "type": "string", "required": true } }, "response": { "$ref": "GoogleCloudRecommenderV1Recommendation" }, "id": "recommender.organizations.locations.recommenders.recommendations.markDismissed", "httpMethod": "POST" }, "markClaimed": { "parameterOrder": [ "name" ], "response": { "$ref": "GoogleCloudRecommenderV1Recommendation" }, "httpMethod": "POST", "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markClaimed", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "id": "recommender.organizations.locations.recommenders.recommendations.markClaimed", "description": "Marks 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.", "parameters": { "name": { "description": "Required. Name of the recommendation.", "pattern": "^organizations/[^/]+/locations/[^/]+/recommenders/[^/]+/recommendations/[^/]+$", "type": "string", "required": true, "location": "path" } }, "path": "v1/{+name}:markClaimed", "request": { "$ref": "GoogleCloudRecommenderV1MarkRecommendationClaimedRequest" } } } } } } } } } }, "billingAccounts": { "resources": { "locations": { "resources": { "insightTypes": { "resources": { "insights": { "methods": { "markAccepted": { "id": "recommender.billingAccounts.locations.insightTypes.insights.markAccepted", "flatPath": "v1/billingAccounts/{billingAccountsId}/locations/{locationsId}/insightTypes/{insightTypesId}/insights/{insightsId}:markAccepted", "path": "v1/{+name}:markAccepted", "parameters": { "name": { "location": "path", "description": "Required. Name of the insight.", "pattern": "^billingAccounts/[^/]+/locations/[^/]+/insightTypes/[^/]+/insights/[^/]+$", "required": true, "type": "string" } }, "httpMethod": "POST", "request": { "$ref": "GoogleCloudRecommenderV1MarkInsightAcceptedRequest" }, "response": { "$ref": "GoogleCloudRecommenderV1Insight" }, "description": "Marks the Insight State as Accepted. Users can use this method to indicate to the Recommender API that they have applied some action based on the insight. This stops the insight content from being updated. MarkInsightAccepted can be applied to insights in ACTIVE state. Requires the recommender.*.update IAM permission for the specified insight.", "parameterOrder": [ "name" ], "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "list": { "id": "recommender.billingAccounts.locations.insightTypes.insights.list", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "flatPath": "v1/billingAccounts/{billingAccountsId}/locations/{locationsId}/insightTypes/{insightTypesId}/insights", "description": "Lists insights for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified insight type.", "path": "v1/{+parent}/insights", "parameterOrder": [ "parent" ], "response": { "$ref": "GoogleCloudRecommenderV1ListInsightsResponse" }, "parameters": { "parent": { "required": true, "pattern": "^billingAccounts/[^/]+/locations/[^/]+/insightTypes/[^/]+$", "type": "string", "location": "path", "description": "Required. The container resource on which to execute the request. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` * `projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` * `folders/[FOLDER_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` LOCATION here refers to GCP Locations: https://cloud.google.com/about/locations/ INSIGHT_TYPE_ID refers to supported insight types: https://cloud.google.com/recommender/docs/insights/insight-types." }, "pageSize": { "type": "integer", "location": "query", "format": "int32", "description": "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." }, "filter": { "location": "query", "description": "Optional. Filter expression to restrict the insights returned. Supported filter fields: * `stateInfo.state` * `insightSubtype` * `severity` * `targetResources` Examples: * `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` * `insightSubtype = PERMISSIONS_USAGE` * `severity = CRITICAL OR severity = HIGH` * `targetResources : //compute.googleapis.com/projects/1234/zones/us-central1-a/instances/instance-1` * `stateInfo.state = ACTIVE AND (severity = CRITICAL OR severity = HIGH)` The max allowed filter length is 500 characters. (These expressions are based on the filter language described at https://google.aip.dev/160)", "type": "string" }, "pageToken": { "location": "query", "description": "Optional. If present, retrieves the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response. The values of other method parameters must be identical to those in the previous call.", "type": "string" } }, "httpMethod": "GET" }, "get": { "parameters": { "name": { "pattern": "^billingAccounts/[^/]+/locations/[^/]+/insightTypes/[^/]+/insights/[^/]+$", "required": true, "type": "string", "location": "path", "description": "Required. Name of the insight." } }, "description": "Gets the requested insight. Requires the recommender.*.get IAM permission for the specified insight type.", "id": "recommender.billingAccounts.locations.insightTypes.insights.get", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "response": { "$ref": "GoogleCloudRecommenderV1Insight" }, "httpMethod": "GET", "path": "v1/{+name}", "parameterOrder": [ "name" ], "flatPath": "v1/billingAccounts/{billingAccountsId}/locations/{locationsId}/insightTypes/{insightTypesId}/insights/{insightsId}" } } } }, "methods": { "getConfig": { "flatPath": "v1/billingAccounts/{billingAccountsId}/locations/{locationsId}/insightTypes/{insightTypesId}/config", "parameters": { "name": { "type": "string", "pattern": "^billingAccounts/[^/]+/locations/[^/]+/insightTypes/[^/]+/config$", "required": true, "description": "Required. Name of the InsightTypeConfig to get. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config` * `projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config` * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config`", "location": "path" } }, "parameterOrder": [ "name" ], "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "description": "Gets the requested InsightTypeConfig. There is only one instance of the config for each InsightType.", "httpMethod": "GET", "id": "recommender.billingAccounts.locations.insightTypes.getConfig", "response": { "$ref": "GoogleCloudRecommenderV1InsightTypeConfig" }, "path": "v1/{+name}" }, "updateConfig": { "id": "recommender.billingAccounts.locations.insightTypes.updateConfig", "response": { "$ref": "GoogleCloudRecommenderV1InsightTypeConfig" }, "description": "Updates an InsightTypeConfig change. This will create a new revision of the config.", "httpMethod": "PATCH", "parameterOrder": [ "name" ], "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "flatPath": "v1/billingAccounts/{billingAccountsId}/locations/{locationsId}/insightTypes/{insightTypesId}/config", "parameters": { "validateOnly": { "description": "If true, validate the request and preview the change, but do not actually update it.", "location": "query", "type": "boolean" }, "updateMask": { "type": "string", "format": "google-fieldmask", "description": "The list of fields to be updated.", "location": "query" }, "name": { "location": "path", "pattern": "^billingAccounts/[^/]+/locations/[^/]+/insightTypes/[^/]+/config$", "type": "string", "description": "Identifier. Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config", "required": true } }, "request": { "$ref": "GoogleCloudRecommenderV1InsightTypeConfig" }, "path": "v1/{+name}" } } }, "recommenders": { "resources": { "recommendations": { "methods": { "markSucceeded": { "id": "recommender.billingAccounts.locations.recommenders.recommendations.markSucceeded", "parameters": { "name": { "type": "string", "pattern": "^billingAccounts/[^/]+/locations/[^/]+/recommenders/[^/]+/recommendations/[^/]+$", "location": "path", "description": "Required. Name of the recommendation.", "required": true } }, "httpMethod": "POST", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "flatPath": "v1/billingAccounts/{billingAccountsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markSucceeded", "description": "Marks 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.", "request": { "$ref": "GoogleCloudRecommenderV1MarkRecommendationSucceededRequest" }, "response": { "$ref": "GoogleCloudRecommenderV1Recommendation" }, "path": "v1/{+name}:markSucceeded", "parameterOrder": [ "name" ] }, "markFailed": { "id": "recommender.billingAccounts.locations.recommenders.recommendations.markFailed", "path": "v1/{+name}:markFailed", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameterOrder": [ "name" ], "flatPath": "v1/billingAccounts/{billingAccountsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markFailed", "request": { "$ref": "GoogleCloudRecommenderV1MarkRecommendationFailedRequest" }, "description": "Marks 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.", "response": { "$ref": "GoogleCloudRecommenderV1Recommendation" }, "parameters": { "name": { "pattern": "^billingAccounts/[^/]+/locations/[^/]+/recommenders/[^/]+/recommendations/[^/]+$", "required": true, "description": "Required. Name of the recommendation.", "type": "string", "location": "path" } }, "httpMethod": "POST" }, "markDismissed": { "response": { "$ref": "GoogleCloudRecommenderV1Recommendation" }, "parameterOrder": [ "name" ], "flatPath": "v1/billingAccounts/{billingAccountsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markDismissed", "httpMethod": "POST", "parameters": { "name": { "description": "Required. Name of the recommendation.", "type": "string", "required": true, "location": "path", "pattern": "^billingAccounts/[^/]+/locations/[^/]+/recommenders/[^/]+/recommendations/[^/]+$" } }, "id": "recommender.billingAccounts.locations.recommenders.recommendations.markDismissed", "path": "v1/{+name}:markDismissed", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "description": "Mark 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.", "request": { "$ref": "GoogleCloudRecommenderV1MarkRecommendationDismissedRequest" } }, "get": { "parameters": { "name": { "required": true, "type": "string", "location": "path", "description": "Required. Name of the recommendation.", "pattern": "^billingAccounts/[^/]+/locations/[^/]+/recommenders/[^/]+/recommendations/[^/]+$" } }, "httpMethod": "GET", "parameterOrder": [ "name" ], "flatPath": "v1/billingAccounts/{billingAccountsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}", "path": "v1/{+name}", "id": "recommender.billingAccounts.locations.recommenders.recommendations.get", "response": { "$ref": "GoogleCloudRecommenderV1Recommendation" }, "description": "Gets the requested recommendation. Requires the recommender.*.get IAM permission for the specified recommender.", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "markClaimed": { "parameterOrder": [ "name" ], "description": "Marks 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.", "httpMethod": "POST", "id": "recommender.billingAccounts.locations.recommenders.recommendations.markClaimed", "parameters": { "name": { "description": "Required. Name of the recommendation.", "required": true, "type": "string", "pattern": "^billingAccounts/[^/]+/locations/[^/]+/recommenders/[^/]+/recommendations/[^/]+$", "location": "path" } }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "path": "v1/{+name}:markClaimed", "request": { "$ref": "GoogleCloudRecommenderV1MarkRecommendationClaimedRequest" }, "flatPath": "v1/billingAccounts/{billingAccountsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations/{recommendationsId}:markClaimed", "response": { "$ref": "GoogleCloudRecommenderV1Recommendation" } }, "list": { "flatPath": "v1/billingAccounts/{billingAccountsId}/locations/{locationsId}/recommenders/{recommendersId}/recommendations", "description": "Lists recommendations for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified recommender.", "parameterOrder": [ "parent" ], "parameters": { "parent": { "pattern": "^billingAccounts/[^/]+/locations/[^/]+/recommenders/[^/]+$", "type": "string", "description": "Required. The container resource on which to execute the request. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `folders/[FOLDER_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` LOCATION here refers to GCP Locations: https://cloud.google.com/about/locations/ RECOMMENDER_ID refers to supported recommenders: https://cloud.google.com/recommender/docs/recommenders.", "location": "path", "required": true }, "pageSize": { "format": "int32", "description": "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.", "type": "integer", "location": "query" }, "pageToken": { "description": "Optional. If present, retrieves the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response. The values of other method parameters must be identical to those in the previous call.", "location": "query", "type": "string" }, "filter": { "description": "Filter expression to restrict the recommendations returned. Supported filter fields: * `state_info.state` * `recommenderSubtype` * `priority` * `targetResources` Examples: * `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` * `recommenderSubtype = REMOVE_ROLE OR recommenderSubtype = REPLACE_ROLE` * `priority = P1 OR priority = P2` * `targetResources : //compute.googleapis.com/projects/1234/zones/us-central1-a/instances/instance-1` * `stateInfo.state = ACTIVE AND (priority = P1 OR priority = P2)` The max allowed filter length is 500 characters. (These expressions are based on the filter language described at https://google.aip.dev/160)", "location": "query", "type": "string" } }, "path": "v1/{+parent}/recommendations", "id": "recommender.billingAccounts.locations.recommenders.recommendations.list", "response": { "$ref": "GoogleCloudRecommenderV1ListRecommendationsResponse" }, "httpMethod": "GET", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] } } } }, "methods": { "updateConfig": { "path": "v1/{+name}", "parameterOrder": [ "name" ], "flatPath": "v1/billingAccounts/{billingAccountsId}/locations/{locationsId}/recommenders/{recommendersId}/config", "response": { "$ref": "GoogleCloudRecommenderV1RecommenderConfig" }, "request": { "$ref": "GoogleCloudRecommenderV1RecommenderConfig" }, "parameters": { "updateMask": { "format": "google-fieldmask", "location": "query", "type": "string", "description": "The list of fields to be updated." }, "name": { "description": "Identifier. Name of recommender config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config", "required": true, "pattern": "^billingAccounts/[^/]+/locations/[^/]+/recommenders/[^/]+/config$", "type": "string", "location": "path" }, "validateOnly": { "location": "query", "type": "boolean", "description": "If true, validate the request and preview the change, but do not actually update it." } }, "description": "Updates a Recommender Config. This will create a new revision of the config.", "id": "recommender.billingAccounts.locations.recommenders.updateConfig", "httpMethod": "PATCH", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "getConfig": { "response": { "$ref": "GoogleCloudRecommenderV1RecommenderConfig" }, "description": "Gets the requested Recommender Config. There is only one instance of the config for each Recommender.", "flatPath": "v1/billingAccounts/{billingAccountsId}/locations/{locationsId}/recommenders/{recommendersId}/config", "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "parameterOrder": [ "name" ], "parameters": { "name": { "required": true, "location": "path", "type": "string", "description": "Required. Name of the Recommendation Config to get. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config`", "pattern": "^billingAccounts/[^/]+/locations/[^/]+/recommenders/[^/]+/config$" } }, "path": "v1/{+name}", "httpMethod": "GET", "id": "recommender.billingAccounts.locations.recommenders.getConfig" } } } } } } } }, "schemas": { "GoogleCloudRecommenderV1Operation": { "description": "Contains an operation for a resource loosely based on the JSON-PATCH format with support for: * Custom filters for describing partial array patch. * Extended path values for describing nested arrays. * Custom fields for describing the resource for which the operation is being described. * Allows extension to custom operations not natively supported by RFC6902. See https://tools.ietf.org/html/rfc6902 for details on the original RFC.", "type": "object", "properties": { "valueMatcher": { "$ref": "GoogleCloudRecommenderV1ValueMatcher", "description": "Can be set for action 'test' for advanced matching for the value of 'path' field. Either this or `value` will be set for 'test' operation." }, "pathValueMatchers": { "additionalProperties": { "$ref": "GoogleCloudRecommenderV1ValueMatcher" }, "description": "Similar to path_filters, this contains set of filters to apply if `path` field refers to array elements. This is meant to support value matching beyond exact match. To perform exact match, use path_filters. When both path_filters and path_value_matchers are set, an implicit AND must be performed.", "type": "object" }, "action": { "type": "string", "description": "Type of this operation. Contains one of 'add', 'remove', 'replace', 'move', 'copy', 'test' and custom operations. This field is case-insensitive and always populated." }, "sourcePath": { "type": "string", "description": "Can be set with action 'copy' or 'move' to indicate the source field within resource or source_resource, ignored if provided for other operation types." }, "value": { "description": "Value for the `path` field. Will be set for actions:'add'/'replace'. Maybe set for action: 'test'. Either this or `value_matcher` will be set for 'test' operation. An exact match must be performed.", "type": "any" }, "sourceResource": { "type": "string", "description": "Can be set with action 'copy' to copy resource configuration across different resources of the same type. Example: A resource clone can be done via action = 'copy', path = \"/\", from = \"/\", source_resource = and resource_name = . This field is empty for all other values of `action`." }, "path": { "type": "string", "description": "Path to the target field being operated on. If the operation is at the resource level, then path should be \"/\". This field is always populated." }, "pathFilters": { "additionalProperties": { "type": "any" }, "description": "Set of filters to apply if `path` refers to array elements or nested array elements in order to narrow down to a single unique element that is being tested/modified. This is intended to be an exact match per filter. To perform advanced matching, use path_value_matchers. * Example: ``` { \"/versions/*/name\" : \"it-123\" \"/versions/*/targetSize/percent\": 20 } ``` * Example: ``` { \"/bindings/*/role\": \"roles/owner\" \"/bindings/*/condition\" : null } ``` * Example: ``` { \"/bindings/*/role\": \"roles/owner\" \"/bindings/*/members/*\" : [\"x@example.com\", \"y@example.com\"] } ``` When both path_filters and path_value_matchers are set, an implicit AND must be performed.", "type": "object" }, "resourceType": { "description": "Type of GCP resource being modified/tested. This field is always populated. Example: cloudresourcemanager.googleapis.com/Project, compute.googleapis.com/Instance", "type": "string" }, "resource": { "type": "string", "description": "Contains the fully qualified resource name. This field is always populated. ex: //cloudresourcemanager.googleapis.com/projects/foo." } }, "id": "GoogleCloudRecommenderV1Operation" }, "GoogleCloudRecommenderV1MarkRecommendationClaimedRequest": { "type": "object", "id": "GoogleCloudRecommenderV1MarkRecommendationClaimedRequest", "properties": { "stateMetadata": { "type": "object", "additionalProperties": { "type": "string" }, "description": "State properties to include with this state. Overwrites any existing `state_metadata`. Keys must match the regex `/^a-z0-9{0,62}$/`. Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`." }, "etag": { "description": "Required. Fingerprint of the Recommendation. Provides optimistic locking.", "type": "string" } }, "description": "Request for the `MarkRecommendationClaimed` Method." }, "GoogleCloudRecommenderV1Recommendation": { "description": "A recommendation along with a suggested action. E.g., a rightsizing recommendation for an underutilized VM, IAM role recommendations, etc", "type": "object", "properties": { "xorGroupId": { "description": "Corresponds 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.", "type": "string" }, "recommenderSubtype": { "description": "Contains 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\"", "type": "string" }, "etag": { "type": "string", "description": "Fingerprint of the Recommendation. Provides optimistic locking when updating states." }, "primaryImpact": { "$ref": "GoogleCloudRecommenderV1Impact", "description": "The primary impact that this recommendation can have while trying to optimize for one category." }, "targetResources": { "items": { "type": "string" }, "type": "array", "description": "Fully qualified resource names that this recommendation is targeting." }, "stateInfo": { "description": "Information for state. Contains state and metadata.", "$ref": "GoogleCloudRecommenderV1RecommendationStateInfo" }, "content": { "description": "Content of the recommendation describing recommended changes to resources.", "$ref": "GoogleCloudRecommenderV1RecommendationContent" }, "priority": { "enum": [ "PRIORITY_UNSPECIFIED", "P4", "P3", "P2", "P1" ], "type": "string", "enumDescriptions": [ "Recommendation has unspecified priority.", "Recommendation has P4 priority (lowest priority).", "Recommendation has P3 priority (second lowest priority).", "Recommendation has P2 priority (second highest priority).", "Recommendation has P1 priority (highest priority)." ], "description": "Recommendation's priority." }, "description": { "description": "Free-form human readable summary in English. The maximum length is 500 characters.", "type": "string" }, "lastRefreshTime": { "format": "google-datetime", "type": "string", "description": "Last time this recommendation was refreshed by the system that created it in the first place." }, "name": { "description": "Identifier. Name of recommendation.", "type": "string" }, "associatedInsights": { "items": { "$ref": "GoogleCloudRecommenderV1RecommendationInsightReference" }, "description": "Insights that led to this recommendation.", "type": "array" }, "additionalImpact": { "items": { "$ref": "GoogleCloudRecommenderV1Impact" }, "description": "Optional set of additional impact that this recommendation may have when trying to optimize for the primary category. These may be positive or negative.", "type": "array" } }, "id": "GoogleCloudRecommenderV1Recommendation" }, "GoogleCloudRecommenderV1MarkRecommendationFailedRequest": { "id": "GoogleCloudRecommenderV1MarkRecommendationFailedRequest", "description": "Request for the `MarkRecommendationFailed` Method.", "type": "object", "properties": { "stateMetadata": { "type": "object", "description": "State properties to include with this state. Overwrites any existing `state_metadata`. Keys must match the regex `/^a-z0-9{0,62}$/`. Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`.", "additionalProperties": { "type": "string" } }, "etag": { "type": "string", "description": "Required. Fingerprint of the Recommendation. Provides optimistic locking." } } }, "GoogleCloudRecommenderV1InsightTypeGenerationConfig": { "description": "A configuration to customize the generation of insights. Eg, customizing the lookback period considered when generating a insight.", "type": "object", "properties": { "params": { "type": "object", "additionalProperties": { "type": "any", "description": "Properties of the object." }, "description": "Parameters for this InsightTypeGenerationConfig. These configs can be used by or are applied to all subtypes." } }, "id": "GoogleCloudRecommenderV1InsightTypeGenerationConfig" }, "GoogleCloudRecommenderV1ListInsightsResponse": { "id": "GoogleCloudRecommenderV1ListInsightsResponse", "description": "Response to the `ListInsights` method.", "properties": { "nextPageToken": { "type": "string", "description": "A token that can be used to request the next page of results. This field is empty if there are no additional results." }, "insights": { "items": { "$ref": "GoogleCloudRecommenderV1Insight" }, "description": "The set of insights for the `parent` resource.", "type": "array" } }, "type": "object" }, "GoogleCloudRecommenderV1ListRecommendationsResponse": { "properties": { "recommendations": { "description": "The set of recommendations for the `parent` resource.", "type": "array", "items": { "$ref": "GoogleCloudRecommenderV1Recommendation" } }, "nextPageToken": { "description": "A token that can be used to request the next page of results. This field is empty if there are no additional results.", "type": "string" } }, "type": "object", "id": "GoogleCloudRecommenderV1ListRecommendationsResponse", "description": "Response to the `ListRecommendations` method." }, "GoogleCloudRecommenderV1ValueMatcher": { "type": "object", "id": "GoogleCloudRecommenderV1ValueMatcher", "description": "Contains various matching options for values for a GCP resource field.", "properties": { "matchesPattern": { "description": "To be used for full regex matching. The regular expression is using the Google RE2 syntax (https://github.com/google/re2/wiki/Syntax), so to be used with RE2::FullMatch", "type": "string" } } }, "GoogleCloudRecommenderV1InsightStateInfo": { "type": "object", "description": "Information related to insight state.", "id": "GoogleCloudRecommenderV1InsightStateInfo", "properties": { "stateMetadata": { "additionalProperties": { "type": "string" }, "description": "A map of metadata for the state, provided by user or automations systems.", "type": "object" }, "state": { "type": "string", "description": "Insight state.", "enum": [ "STATE_UNSPECIFIED", "ACTIVE", "ACCEPTED", "DISMISSED" ], "enumDescriptions": [ "Unspecified state.", "Insight is active. Content for ACTIVE insights can be updated by Google. ACTIVE insights can be marked DISMISSED OR ACCEPTED.", "Some action has been taken based on this insight. Insights become accepted when a recommendation derived from the insight has been marked CLAIMED, SUCCEEDED, or FAILED. ACTIVE insights can also be marked ACCEPTED explicitly. Content for ACCEPTED insights is immutable. ACCEPTED insights can only be marked ACCEPTED (which may update state metadata).", "Insight is dismissed. Content for DISMISSED insights can be updated by Google. DISMISSED insights can be marked as ACTIVE." ] } } }, "GoogleCloudRecommenderV1InsightRecommendationReference": { "description": "Reference to an associated recommendation.", "type": "object", "properties": { "recommendation": { "description": "Recommendation resource name, e.g. projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/recommendations/[RECOMMENDATION_ID]", "type": "string" } }, "id": "GoogleCloudRecommenderV1InsightRecommendationReference" }, "GoogleCloudRecommenderV1ReliabilityProjection": { "type": "object", "description": "Contains information on the impact of a reliability recommendation.", "id": "GoogleCloudRecommenderV1ReliabilityProjection", "properties": { "details": { "type": "object", "description": "Per-recommender projection.", "additionalProperties": { "type": "any", "description": "Properties of the object." } }, "risks": { "description": "Reliability risks mitigated by this recommendation.", "items": { "enumDescriptions": [ "Default unspecified risk. Don't use directly.", "Potential service downtime.", "Potential data loss.", "Potential access denial. The service is still up but some or all clients can't access it." ], "enum": [ "RISK_TYPE_UNSPECIFIED", "SERVICE_DISRUPTION", "DATA_LOSS", "ACCESS_DENY" ], "type": "string" }, "type": "array" } } }, "GoogleCloudRecommenderV1Insight": { "properties": { "description": { "type": "string", "description": "Free-form human readable summary in English. The maximum length is 500 characters." }, "observationPeriod": { "type": "string", "format": "google-duration", "description": "Observation period that led to the insight. The source data used to generate the insight ends at last_refresh_time and begins at (last_refresh_time - observation_period)." }, "associatedRecommendations": { "description": "Recommendations derived from this insight.", "items": { "$ref": "GoogleCloudRecommenderV1InsightRecommendationReference" }, "type": "array" }, "insightSubtype": { "type": "string", "description": "Insight subtype. Insight content schema will be stable for a given subtype." }, "targetResources": { "description": "Fully qualified resource names that this insight is targeting.", "type": "array", "items": { "type": "string" } }, "content": { "description": "A struct of custom fields to explain the insight. Example: \"grantedPermissionsCount\": \"1000\"", "type": "object", "additionalProperties": { "type": "any", "description": "Properties of the object." } }, "category": { "type": "string", "enum": [ "CATEGORY_UNSPECIFIED", "COST", "SECURITY", "PERFORMANCE", "MANAGEABILITY", "SUSTAINABILITY", "RELIABILITY" ], "enumDescriptions": [ "Unspecified category.", "The insight is related to cost.", "The insight is related to security.", "The insight is related to performance.", "This insight is related to manageability.", "The insight is related to sustainability.", "This insight is related to reliability." ], "description": "Category being targeted by the insight." }, "lastRefreshTime": { "description": "Timestamp of the latest data used to generate the insight.", "format": "google-datetime", "type": "string" }, "name": { "description": "Identifier. Name of the insight.", "type": "string" }, "stateInfo": { "$ref": "GoogleCloudRecommenderV1InsightStateInfo", "description": "Information state and metadata." }, "etag": { "type": "string", "description": "Fingerprint of the Insight. Provides optimistic locking when updating states." }, "severity": { "enumDescriptions": [ "Insight has unspecified severity.", "Insight has low severity.", "Insight has medium severity.", "Insight has high severity.", "Insight has critical severity." ], "type": "string", "enum": [ "SEVERITY_UNSPECIFIED", "LOW", "MEDIUM", "HIGH", "CRITICAL" ], "description": "Insight's severity." } }, "type": "object", "description": "An insight along with the information used to derive the insight. The insight may have associated recommendations as well.", "id": "GoogleCloudRecommenderV1Insight" }, "GoogleCloudRecommenderV1RecommendationInsightReference": { "properties": { "insight": { "description": "Insight resource name, e.g. projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/insights/[INSIGHT_ID]", "type": "string" } }, "id": "GoogleCloudRecommenderV1RecommendationInsightReference", "type": "object", "description": "Reference to an associated insight." }, "GoogleCloudRecommenderV1SustainabilityProjection": { "properties": { "duration": { "type": "string", "description": "Duration for which this sustainability applies.", "format": "google-duration" }, "kgCO2e": { "type": "number", "description": "Carbon Footprint generated in kg of CO2 equivalent. Chose kg_c_o2e so that the name renders correctly in camelCase (kgCO2e).", "format": "double" } }, "id": "GoogleCloudRecommenderV1SustainabilityProjection", "type": "object", "description": "Contains metadata about how much sustainability a recommendation can save or incur." }, "GoogleCloudRecommenderV1InsightTypeConfig": { "description": "Configuration for an InsightType.", "id": "GoogleCloudRecommenderV1InsightTypeConfig", "properties": { "etag": { "type": "string", "description": "Fingerprint of the InsightTypeConfig. Provides optimistic locking when updating." }, "annotations": { "description": "Allows clients to store small amounts of arbitrary data. Annotations must follow the Kubernetes syntax. The total size of all keys and values combined is limited to 256k. Key can have 2 segments: prefix (optional) and name (required), separated by a slash (/). Prefix must be a DNS subdomain. Name must be 63 characters or less, begin and end with alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics between.", "type": "object", "additionalProperties": { "type": "string" } }, "name": { "type": "string", "description": "Identifier. Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config" }, "displayName": { "type": "string", "description": "A user-settable field to provide a human-readable name to be used in user interfaces." }, "updateTime": { "type": "string", "format": "google-datetime", "description": "Last time when the config was updated." }, "revisionId": { "readOnly": true, "description": "Output only. Immutable. The revision ID of the config. A new revision is committed whenever the config is changed in any way. The format is an 8-character hexadecimal string.", "type": "string" }, "insightTypeGenerationConfig": { "description": "InsightTypeGenerationConfig which configures the generation of insights for this insight type.", "$ref": "GoogleCloudRecommenderV1InsightTypeGenerationConfig" } }, "type": "object" }, "GoogleTypeMoney": { "properties": { "currencyCode": { "description": "The three-letter currency code defined in ISO 4217.", "type": "string" }, "nanos": { "type": "integer", "description": "Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.", "format": "int32" }, "units": { "format": "int64", "type": "string", "description": "The whole units of the amount. For example if `currencyCode` is `\"USD\"`, then 1 unit is one US dollar." } }, "id": "GoogleTypeMoney", "type": "object", "description": "Represents an amount of money with its currency type." }, "GoogleCloudRecommenderV1RecommendationStateInfo": { "type": "object", "properties": { "state": { "enumDescriptions": [ "Default state. Don't use directly.", "Recommendation is active and can be applied. Recommendations content can be updated by Google. ACTIVE recommendations can be marked as CLAIMED, SUCCEEDED, or FAILED.", "Recommendation is in claimed state. Recommendations content is immutable and cannot be updated by Google. CLAIMED recommendations can be marked as CLAIMED, SUCCEEDED, or FAILED.", "Recommendation is in succeeded state. Recommendations content is immutable and cannot be updated by Google. SUCCEEDED recommendations can be marked as SUCCEEDED, or FAILED.", "Recommendation is in failed state. Recommendations content is immutable and cannot be updated by Google. FAILED recommendations can be marked as SUCCEEDED, or FAILED.", "Recommendation is in dismissed state. Recommendation content can be updated by Google. DISMISSED recommendations can be marked as ACTIVE." ], "enum": [ "STATE_UNSPECIFIED", "ACTIVE", "CLAIMED", "SUCCEEDED", "FAILED", "DISMISSED" ], "type": "string", "description": "The state of the recommendation, Eg ACTIVE, SUCCEEDED, FAILED." }, "stateMetadata": { "type": "object", "additionalProperties": { "type": "string" }, "description": "A map of metadata for the state, provided by user or automations systems." } }, "description": "Information for state. Contains state and metadata.", "id": "GoogleCloudRecommenderV1RecommendationStateInfo" }, "GoogleCloudRecommenderV1CostProjection": { "description": "Contains metadata about how much money a recommendation can save or incur.", "type": "object", "id": "GoogleCloudRecommenderV1CostProjection", "properties": { "duration": { "type": "string", "format": "google-duration", "description": "Duration for which this cost applies." }, "costInLocalCurrency": { "$ref": "GoogleTypeMoney", "description": "The approximate cost savings in the billing account's local currency." }, "cost": { "$ref": "GoogleTypeMoney", "description": "An approximate projection on amount saved or amount incurred. Negative cost units indicate cost savings and positive cost units indicate increase. See google.type.Money documentation for positive/negative units. A user's permissions may affect whether the cost is computed using list prices or custom contract prices." } } }, "GoogleCloudRecommenderV1SecurityProjection": { "description": "Contains various ways of describing the impact on Security.", "properties": { "details": { "type": "object", "description": "Additional security impact details that is provided by the recommender.", "additionalProperties": { "type": "any", "description": "Properties of the object." } } }, "type": "object", "id": "GoogleCloudRecommenderV1SecurityProjection" }, "GoogleCloudRecommenderV1RecommenderGenerationConfig": { "type": "object", "description": "A Configuration to customize the generation of recommendations. Eg, customizing the lookback period considered when generating a recommendation.", "properties": { "params": { "description": "Parameters for this RecommenderGenerationConfig. These configs can be used by or are applied to all subtypes.", "additionalProperties": { "type": "any", "description": "Properties of the object." }, "type": "object" } }, "id": "GoogleCloudRecommenderV1RecommenderGenerationConfig" }, "GoogleCloudRecommenderV1RecommendationContent": { "type": "object", "description": "Contains what resources are changing and how they are changing.", "properties": { "overview": { "additionalProperties": { "description": "Properties of the object.", "type": "any" }, "description": "Condensed overview information about the recommendation.", "type": "object" }, "operationGroups": { "type": "array", "description": "Operations to one or more Google Cloud resources grouped in such a way that, all operations within one group are expected to be performed atomically and in an order.", "items": { "$ref": "GoogleCloudRecommenderV1OperationGroup" } } }, "id": "GoogleCloudRecommenderV1RecommendationContent" }, "GoogleCloudRecommenderV1MarkInsightAcceptedRequest": { "id": "GoogleCloudRecommenderV1MarkInsightAcceptedRequest", "properties": { "etag": { "description": "Required. Fingerprint of the Insight. Provides optimistic locking.", "type": "string" }, "stateMetadata": { "type": "object", "description": "Optional. State properties user wish to include with this state. Full replace of the current state_metadata.", "additionalProperties": { "type": "string" } } }, "description": "Request for the `MarkInsightAccepted` method.", "type": "object" }, "GoogleCloudRecommenderV1MarkRecommendationSucceededRequest": { "properties": { "stateMetadata": { "additionalProperties": { "type": "string" }, "type": "object", "description": "State properties to include with this state. Overwrites any existing `state_metadata`. Keys must match the regex `/^a-z0-9{0,62}$/`. Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`." }, "etag": { "type": "string", "description": "Required. Fingerprint of the Recommendation. Provides optimistic locking." } }, "type": "object", "id": "GoogleCloudRecommenderV1MarkRecommendationSucceededRequest", "description": "Request for the `MarkRecommendationSucceeded` Method." }, "GoogleCloudRecommenderV1Impact": { "id": "GoogleCloudRecommenderV1Impact", "properties": { "costProjection": { "$ref": "GoogleCloudRecommenderV1CostProjection", "description": "Use with CategoryType.COST" }, "securityProjection": { "description": "Use with CategoryType.SECURITY", "$ref": "GoogleCloudRecommenderV1SecurityProjection" }, "reliabilityProjection": { "$ref": "GoogleCloudRecommenderV1ReliabilityProjection", "description": "Use with CategoryType.RELIABILITY" }, "sustainabilityProjection": { "$ref": "GoogleCloudRecommenderV1SustainabilityProjection", "description": "Use with CategoryType.SUSTAINABILITY" }, "category": { "description": "Category that is being targeted.", "enum": [ "CATEGORY_UNSPECIFIED", "COST", "SECURITY", "PERFORMANCE", "MANAGEABILITY", "SUSTAINABILITY", "RELIABILITY" ], "type": "string", "enumDescriptions": [ "Default unspecified category. Don't use directly.", "Indicates a potential increase or decrease in cost.", "Indicates a potential increase or decrease in security.", "Indicates a potential increase or decrease in performance.", "Indicates a potential increase or decrease in manageability.", "Indicates a potential increase or decrease in sustainability.", "Indicates a potential increase or decrease in reliability." ] } }, "description": "Contains the impact a recommendation can have for a given category.", "type": "object" }, "GoogleCloudRecommenderV1OperationGroup": { "id": "GoogleCloudRecommenderV1OperationGroup", "type": "object", "description": "Group of operations that need to be performed atomically.", "properties": { "operations": { "description": "List of operations across one or more resources that belong to this group. Loosely based on RFC6902 and should be performed in the order they appear.", "type": "array", "items": { "$ref": "GoogleCloudRecommenderV1Operation" } } } }, "GoogleCloudRecommenderV1RecommenderConfig": { "id": "GoogleCloudRecommenderV1RecommenderConfig", "description": "Configuration for a Recommender.", "properties": { "updateTime": { "type": "string", "format": "google-datetime", "description": "Last time when the config was updated." }, "displayName": { "type": "string", "description": "A user-settable field to provide a human-readable name to be used in user interfaces." }, "recommenderGenerationConfig": { "$ref": "GoogleCloudRecommenderV1RecommenderGenerationConfig", "description": "RecommenderGenerationConfig which configures the Generation of recommendations for this recommender." }, "etag": { "description": "Fingerprint of the RecommenderConfig. Provides optimistic locking when updating.", "type": "string" }, "annotations": { "additionalProperties": { "type": "string" }, "description": "Allows clients to store small amounts of arbitrary data. Annotations must follow the Kubernetes syntax. The total size of all keys and values combined is limited to 256k. Key can have 2 segments: prefix (optional) and name (required), separated by a slash (/). Prefix must be a DNS subdomain. Name must be 63 characters or less, begin and end with alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics between.", "type": "object" }, "name": { "description": "Identifier. Name of recommender config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config", "type": "string" }, "revisionId": { "description": "Output only. Immutable. The revision ID of the config. A new revision is committed whenever the config is changed in any way. The format is an 8-character hexadecimal string.", "type": "string", "readOnly": true } }, "type": "object" }, "GoogleCloudRecommenderV1MarkRecommendationDismissedRequest": { "properties": { "etag": { "description": "Fingerprint of the Recommendation. Provides optimistic locking.", "type": "string" } }, "type": "object", "description": "Request for the `MarkRecommendationDismissed` Method.", "id": "GoogleCloudRecommenderV1MarkRecommendationDismissedRequest" } }, "parameters": { "upload_protocol": { "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", "type": "string", "location": "query" }, "fields": { "location": "query", "description": "Selector specifying which fields to include in a partial response.", "type": "string" }, "quotaUser": { "location": "query", "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", "type": "string" }, "$.xgafv": { "location": "query", "type": "string", "enum": [ "1", "2" ], "description": "V1 error format.", "enumDescriptions": [ "v1 error format", "v2 error format" ] }, "alt": { "enumDescriptions": [ "Responses with Content-Type of application/json", "Media download with context-dependent Content-Type", "Responses with Content-Type of application/x-protobuf" ], "enum": [ "json", "media", "proto" ], "default": "json", "description": "Data format for response.", "location": "query", "type": "string" }, "uploadType": { "location": "query", "type": "string", "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\")." }, "callback": { "location": "query", "type": "string", "description": "JSONP" }, "oauth_token": { "location": "query", "description": "OAuth 2.0 token for the current user.", "type": "string" }, "access_token": { "location": "query", "type": "string", "description": "OAuth access token." }, "key": { "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", "location": "query", "type": "string" }, "prettyPrint": { "location": "query", "default": "true", "type": "boolean", "description": "Returns response with indentations and line breaks." } }, "ownerDomain": "google.com", "rootUrl": "https://recommender.googleapis.com/", "protocol": "rest", "fullyEncodeReservedExpansion": true, "version_module": true, "icons": { "x32": "http://www.google.com/images/icons/product/search-32.gif", "x16": "http://www.google.com/images/icons/product/search-16.gif" }, "kind": "discovery#restDescription", "batchPath": "batch", "mtlsRootUrl": "https://recommender.mtls.googleapis.com/", "revision": "20240428", "basePath": "", "description": "", "servicePath": "", "title": "Recommender API" }