本文說明 Capacity Planner 的稽核記錄功能。 Google Cloud 服務會產生稽核記錄,用以記錄 Google Cloud 資源中的管理和存取活動。如要進一步瞭解 Cloud 稽核記錄,請參閱以下內容:
服務名稱
Capacity Planner 稽核記錄會使用服務名稱 capacityplanner.googleapis.com。如要篩選此服務,請使用:
protoPayload.serviceName="capacityplanner.googleapis.com"
按權限類型劃分的方法
每個 IAM 權限都具有 type 屬性,其值為以下四個列舉值之一:ADMIN_READ、ADMIN_WRITE、DATA_READ 或 DATA_WRITE。呼叫方法時,容量規劃工具會產生一筆稽核記錄,記錄類別依執行該方法所需權限的 type 屬性而定。若方法需要的 IAM 權限,type 屬性值為 DATA_READ、DATA_WRITE 或 ADMIN_READ,就會產生資料存取稽核記錄;若所需 IAM 權限的 type 屬性值為 ADMIN_WRITE,則會產生管理員活動稽核記錄。
| 權限類型 | 方法 |
|---|---|
ADMIN_READ |
google.cloud.capacityplanner.v1main.UsageService.QueryForecastsgoogle.cloud.capacityplanner.v1main.UsageService.QueryMachineShapeUsagegoogle.cloud.capacityplanner.v1main.UsageService.QueryReservationsgoogle.cloud.capacityplanner.v1main.UsageService.QueryUsageHistoriesgoogle.cloud.capacityplanner.v1main.UsageService.SummarizeUsage |
API 介面稽核記錄
如要瞭解各方法所需的權限及評估方式,請參閱 Capacity Planner 的 Identity and Access Management 說明文件。
google.cloud.capacityplanner.v1main.UsageService
屬於 google.cloud.capacityplanner.v1main.UsageService 的方法會產生以下稽核記錄。
QueryForecasts
- 方法:
google.cloud.capacityplanner.v1main.UsageService.QueryForecasts - 稽核記錄類型:資料存取
- 權限:
capacityplanner.forecasts.list - ADMIN_READ
- 方法的作業種類:
非長時間執行或串流作業。
- 篩選條件:
protoPayload.methodName="google.cloud.capacityplanner.v1main.UsageService.QueryForecasts"
QueryMachineShapeUsage
- 方法:
google.cloud.capacityplanner.v1main.UsageService.QueryMachineShapeUsage - 稽核記錄類型:資料存取
- 權限:
capacityplanner.forecasts.list - ADMIN_READcapacityplanner.usageHistories.list - ADMIN_READ
- 方法的作業種類:
非長時間執行或串流作業。
- 篩選條件:
protoPayload.methodName="google.cloud.capacityplanner.v1main.UsageService.QueryMachineShapeUsage"
QueryReservations
- 方法:
google.cloud.capacityplanner.v1main.UsageService.QueryReservations - 稽核記錄類型:資料存取
- 權限:
capacityplanner.usageHistories.list - ADMIN_READ
- 方法的作業種類:
非長時間執行或串流作業。
- 篩選條件:
protoPayload.methodName="google.cloud.capacityplanner.v1main.UsageService.QueryReservations"
QueryUsageHistories
- 方法:
google.cloud.capacityplanner.v1main.UsageService.QueryUsageHistories - 稽核記錄類型:資料存取
- 權限:
capacityplanner.usageHistories.list - ADMIN_READ
- 方法的作業種類:
非長時間執行或串流作業。
- 篩選條件:
protoPayload.methodName="google.cloud.capacityplanner.v1main.UsageService.QueryUsageHistories"
SummarizeUsage
- 方法:
google.cloud.capacityplanner.v1main.UsageService.SummarizeUsage - 稽核記錄類型:資料存取
- 權限:
capacityplanner.usageHistories.summarize - ADMIN_READ
- 方法的作業種類:
非長時間執行或串流作業。
- 此方法的篩選條件:
protoPayload.methodName="google.cloud.capacityplanner.v1main.UsageService.SummarizeUsage"