- gcloud beta recommender recommendations mark-claimed - mark a recommendation's state as CLAIMED
gcloud beta recommender recommendations mark-claimed
(BETA)Mark a recommendation's state as CLAIMED. Can be applied to
recommendations in CLAIMED, SUCCEEDED, FAILED, or ACTIVE state. 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.
- POSITIONAL ARGUMENTS
- Recommendation id which will be marked as claimed
- REQUIRED FLAGS
- Etag of a recommendation
Resource that is associated with cloud entity type. Currently four mutually
exclusive flags are supported, --project, --billing-account, --folder,
--organization. Exactly one of these must be specified:
- The Google Cloud Platform Billing Account ID to use for this invocation.
- Folder ID to use for this invocation.
- The Google Cloud Platform Organization ID to use for this invocation.
The Google Cloud Platform Project Number to use for this invocation.
The Google Cloud Platform project ID to use for this invocation. If omitted, then the current project is assumed; the current project can be listed using
gcloud config list --format='text(core.project)'and can be set using
gcloud config set project PROJECTID.
--projectand its fallback
core/projectproperty play two roles in the invocation. It specifies the project of the resource to operate on. It also specifies the project for API enablement check, quota, and billing. To specify a different project for quota and billing, use
- OPTIONAL FLAGS
- Recommender of recommendation
- State metadata for recommendation, in format of --state-metadata=key1=value1,key2=value2
- GCLOUD WIDE FLAGS
These flags are available to all commands:
$ gcloud helpfor details.
To mark a recommendation as CLAIMED:
gcloud beta recommender recommendations mark-claimed RECOMMENDATION --project=project-name --location=global
--recommender=google.compute.instance.MachineTypeRecommender --etag=abc123 --state-metadata=key1=value1,key2=value2
- This command is currently in BETA and may change without notice. These variants are also available:
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-02-09 UTC.