![](/img/trans.png)
[英]Cloud Asset Organization feed for deleted/created resource
我正在為已刪除/創建的資源創建資產提要。 下面的代碼和鏈接僅在創建資源時顯示表達式,但我只需要在刪除資源時使用另一個提要。 參考鏈接 - https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/cl ...
[英]Cloud Asset Organization feed for deleted/created resource
我正在為已刪除/創建的資源創建資產提要。 下面的代碼和鏈接僅在創建資源時顯示表達式,但我只需要在刪除資源時使用另一個提要。 參考鏈接 - https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/cl ...
[英]Cloud Asset API not enabled
我們的項目啟用了 Cloud Asset Inventory API,我可以從 UI 中查看它,但我收到此權限錯誤。 我是項目的所有者。 ...
[英]Google cloud asset assets.list REST API Quota exceeded error returned
我正在嘗試使用我的代碼中的雲資產庫存 assets.list REST API 請求,在達到最大配額后,我收到以下錯誤:“配額指標“ListAssets Requests”超出配額並限制“ListAssets Requests per minute”服務'cloudasset.googleapis. ...
[英]GCP: List members of all groups in an organization using gcloud CLI, output to BigQuery
我想使用 gcloud CLI 創建我們組織中 Google IAM 組中所有用戶的表,並輸出到 BQ 表。 我知道它涉及“gcloud 身份組成員資格列表”,但不清楚如何遍歷組並將輸出生成為 CSV。 我已經找到了一種遍歷項目並獲取每個項目的 iam 綁定的方法 - https://rajat ...
[英]How can I find the number of Compute Engine Instances with a COS image vs the number of instances with a non-COS image?
我能夠識別可用於我的 Compute Engine 實例的所有映像,並且可以識別單個實例的 sourceImage 但是我需要始終聲明一個區域,因此我正在努力弄清楚如何構建命令 gcloud 計算磁盤描述“實例名稱”--zone='zone' 能夠了解使用 Cos 鏡像的實例數量和使用非 ...
[英]How to get json representation from search_all_iam_policies() results
我正在努力在 google-cloud-asset 中實現 search_all_iam_policies() 方法,如下所示: 但找不到獲取策略或策略的 JSON 表示的方法。 在這種情況下,“響應”是 google.cloud.asset_v1.services.asset_service.pa ...
[英]How best to handle async response from google long running operation with cloud functions
我正在使用 Google Cloud Functions (python) 通過在此處調用 exportAssets() 方法從 GCP 啟動資產清單導出。 該方法返回此處定義的操作 object,可用於輪詢操作,直到操作完成。 當然,因為這是一個雲 function 我被限制在 540 秒,所以不 ...
[英]"ERROR: (gcloud.asset.export) User does not have permission" only when authenticated with a service account
我正在嘗試使用通過服務帳戶進行身份驗證的Google Cloud Asset Inventory和gcloud命令(版本 314.0.0)導出項目資產: # 1. authenticate with service account my-service-account@$PROJECT_ID.iam ...
[英]Why does the cloudasset.googleapis.com API not list storage buckets?
跑步時 我從許多 Google API 中獲取資源:container.googleapis.com、compute.googleapis.com、cloudresourcemanager.googleapis.com、iam.googleapis.com 等等 但是,缺少的是我的存儲桶。 根據 ...