gcloud alpha recommender recommendations mark-succeeded - mark a recommendation's state as SUCCEEDED
gcloud alpha recommender recommendations mark-succeeded RECOMMENDATION --etag=ETAG --location=LOCATION --recommender=RECOMMENDER (--billing-account=BILLING_ACCOUNT | --folder=FOLDER_ID | --organization=ORGANIZATION_ID | --project=PROJECT_ID) [--state-metadata=KEY=VALUE,[KEY=VALUE,...]] [GCLOUD_WIDE_FLAG ...]
(ALPHA) Mark a recommendation's state as SUCCEEDED. Can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state.
To mark a recommendation as SUCCEEDED:
$ gcloud alpha recommender recommendations mark-succeeded \ abcd-1234 --project=project-name --location=global \ --recommender=google.compute.instance.MachineTypeRecommender \ --etag=abc123 --state-metadata=key1=value1,key2=value2
- RECOMMENDATION
Recommendation id which will be marked as succeeded
- --etag=ETAG
Etag of a recommendation
- --location=LOCATION
Location
- --recommender=RECOMMENDER
Recommender of 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:
- --billing-account=BILLING_ACCOUNT
The Google Cloud Platform billing account ID to use for this invocation.
- --folder=FOLDER_ID
The Google Cloud Platform folder ID to use for this invocation.
- --organization=ORGANIZATION_ID
The Google Cloud Platform organization ID to use for this invocation.
- --project=PROJECT_ID
The Google Cloud Platform project ID. Overrides the default core/project property value for this command invocation.
- --state-metadata=KEY=VALUE,[KEY=VALUE,...]
State metadata for recommendation, in format of --state-metadata=key1=value1,key2=value2
These flags are available to all commands: --access-token-file, --account, --billing-project, --configuration, --flags-file, --flatten, --format, --help, --impersonate-service-account, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity.
Run $ gcloud help for details.
This command is currently in alpha and might change without notice. If this command fails with API permission errors despite specifying the correct project, you might be trying to access an API with an invitation-only early access allowlist. These variants are also available:
$ gcloud recommender recommendations mark-succeeded
$ gcloud beta recommender recommendations mark-succeeded