Loading...
Loading...
Compare original and translation side by side
organizations/{org_id}folders/{folder_id}projects/{project_id}projects/{project_id}organizations/folders/projects/projects/123456789gcloudgcloud projects list --filter="projectNumber={project_number}" --format="value(projectId)"projects/123456789organizations/123456789012organizations/{org_id}folders/{folder_id}projects/{project_id}projects/{project_id}organizations/folders/projects/projects/123456789gcloudgcloud projects list --filter="projectNumber={project_number}" --format="value(projectId)"projects/123456789organizations/123456789012PERMISSION_DENIEDUNAUTHENTICATEDNOT_FOUNDPERMISSION_DENIEDUNAUTHENTICATEDNOT_FOUNDtargettargetrun_command| Target | Flag |
|---|---|
| |
| |
| |
GCLOUD_COMMON_FLAGS="--format=json --location=global \
--filter=stateInfo.state=ACTIVE"run_command| 目标范围 | 参数 |
|---|---|
| |
| |
| |
GCLOUD_COMMON_FLAGS="--format=json --location=global \
--filter=stateInfo.state=ACTIVE"undefinedundefinedgcloudgcloud: command not foundgcloudlist_recommendationsrecommendations.listgoogle.iam.policy.RecommenderstateInfo.state=ACTIVElist_insightsinsights.listgoogle.iam.policy.InsightstateInfo.state=ACTIVEgcloudgcloud: command not foundgcloudlist_recommendationsrecommendations.listgoogle.iam.policy.RecommenderstateInfo.state=ACTIVElist_insightsinsights.listgoogle.iam.policy.InsightstateInfo.state=ACTIVEiam_recommendations_<target_id>_<timestamp>.json<target_id><timestamp>YYYYMMDD_HHMMSSiam_recommendations_<target_id>_<timestamp>.json<target_id><timestamp>YYYYMMDD_HHMMSSassociatedInsightsiam_recommendations_<target_id>_<timestamp>.md<target_id><timestamp>YYYYMMDD_HHMMSSINSIGHT_IDINSIGHT_STATEINSIGHT_SUBTYPEDESCRIPTIONassociatedInsightsiam_recommendations_<target_id>_<timestamp>.md<target_id><timestamp>YYYYMMDD_HHMMSSINSIGHT_IDINSIGHT_STATEINSIGHT_SUBTYPEDESCRIPTIONgcloud recommender recommendations list --recommender=google.iam.policy.Recommender --format=json --location=global --filter=stateInfo.state=ACTIVE --project=my-test-project{
"raw_results": {
"recommendations": [
{
"name": "projects/my-test-project/locations/global/recommenders/ \
google.iam.policy.Recommender/recommendations/123",
"content": { ... }
}
],
"insights": []
},
"error": null
}gcloud recommender recommendations list --recommender=google.iam.policy.Recommender --format=json --location=global --filter=stateInfo.state=ACTIVE --project=my-test-project{
"raw_results": {
"recommendations": [
{
"name": "projects/my-test-project/locations/global/recommenders/ \
google.iam.policy.Recommender/recommendations/123",
"content": { ... }
}
],
"insights": []
},
"error": null
}{"raw_results": null, "error": "The specified target resource is incorrect or does not exist."}{"raw_results": null, "error": "User is unauthenticated. Please authenticate (e.g., run 'gcloud auth login')."}{"raw_results": null, "error": "Insufficient permissions. Please ensure you have 'roles/recommender.iamViewer' on the target scope."}{"raw_results": null, "error": "Failed to fetch: {error_details}"}{"raw_results": null, "error": "指定的目标资源不正确或不存在。"}{"raw_results": null, "error": "用户未认证。请进行认证(例如执行'gcloud auth login')。"}{"raw_results": null, "error": "权限不足。请确保您在目标范围内拥有'roles/recommender.iamViewer'角色。"}{"raw_results": null, "error": "检索失败: {error_details}"}ACTIVEACTIVE