Method: projects.locations.recommenders.recommendations.markSucceeded

Mark 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.

recommendations.markSucceeded can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state.

Requires the recommender.*.update IAM permission for the specified recommender.

HTTP request

POST https://recommender.googleapis.com/v1beta1/{name=projects/*/locations/*/recommenders/*/recommendations/*}:markSucceeded

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Name of the recommendation.

Authorization requires one or more of the following Boogle IAM permissions on the specified resource name:

  • recommender.computeInstanceMachineTypeRecommendations.update
  • recommender.computeInstanceGroupManagerMachineTypeRecommendations.update
  • recommender.iamPolicyRecommendations.update

Request body

The request body contains data with the following structure:

JSON representation
{
  "stateMetadata": {
    string: string,
    ...
  },
  "etag": string
}
Fields
stateMetadata

map (key: string, value: string)

State properties to include with this state. Overwrites any existing stateMetadata.

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

etag

string

Fingerprint of the Recommendation. Provides optimistic locking.

Response body

If successful, the response body contains an instance of Recommendation.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

IAM Permissions

Requires one of the following Cloud IAM permissions on the name resource, depending on the resource type:

  • recommender.iamPolicyRecommendations.update
  • recommender.computeInstanceMachineTypeRecommendations.update
  • recommender.computeInstanceGroupManagerMachineTypeRecommendations.update
  • recommender.googleapis.com/IamPolicyRecommendation.update
  • recommender.googleapis.com/ComputeInstanceMachineTypeRecommendation.update
  • recommender.googleapis.com/ComputeInstanceGroupManagerMachineTypeRecommendation.update

For more information, see the Cloud IAM Documentation.

Was this page helpful? Let us know how we did:

Send feedback about...

Recommender Documentation