本文列出 Capacity Planner 的稽核方法。 Google Cloud 服務會產生稽核記錄,用以記錄 Google Cloud 資源中的管理和存取活動。如要進一步瞭解 Cloud 稽核記錄,請參閱以下內容:
服務名稱
如要查看 Capacity Planner 稽核記錄,請按照下列步驟操作:
前往 Google Cloud 控制台的「Logs Explorer」頁面:
複製下列查詢並貼到「Logs Explorer」的「查詢」欄位,然後點選「執行查詢」。
protoPayload.serviceName="capacityplanner.googleapis.com"
依權限類型區分的方法
每個 IAM 權限都具有 type 屬性,其值為以下四個列舉值之一:ADMIN_READ、ADMIN_WRITE、DATA_READ 或 DATA_WRITE。呼叫方法時,Capacity Planner 會產生一筆稽核記錄,記錄類別依執行該方法所需權限的 type 屬性而定。若方法需要的 IAM 權限,type 屬性值為 DATA_READ、DATA_WRITE 或 ADMIN_READ,就會產生資料存取稽核記錄;若所需 IAM 權限的 type 屬性值為 ADMIN_WRITE,則會產生管理員活動稽核記錄。
| 權限類型 | 方法 |
|---|---|
ADMIN_READ |
google.cloud.capacityplanner.v1alpha.UsageService.ExportForecastsgoogle.cloud.capacityplanner.v1alpha.UsageService.ExportMachineShapeUsagegoogle.cloud.capacityplanner.v1alpha.UsageService.ExportReservationsUsagegoogle.cloud.capacityplanner.v1alpha.UsageService.ExportUsageHistoriesgoogle.cloud.capacityplanner.v1alpha.UsageService.QueryForecastsgoogle.cloud.capacityplanner.v1alpha.UsageService.QueryReservationsgoogle.cloud.capacityplanner.v1alpha.UsageService.QueryUsageHistoriesgoogle.cloud.capacityplanner.v1beta.UsageService.ExportForecastsgoogle.cloud.capacityplanner.v1beta.UsageService.ExportReservationsUsagegoogle.cloud.capacityplanner.v1beta.UsageService.ExportUsageHistoriesgoogle.cloud.capacityplanner.v1beta.UsageService.QueryForecastsgoogle.cloud.capacityplanner.v1beta.UsageService.QueryReservationsgoogle.cloud.capacityplanner.v1beta.UsageService.QueryUsageHistoriesgoogle.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 |
DATA_READ |
google.cloud.capacityplanner.v1alpha.CapacityPlanningService.CheckRelatedResourcesgoogle.cloud.capacityplanner.v1alpha.CapacityPlanningService.GetCapacityPlangoogle.cloud.capacityplanner.v1alpha.CapacityPlanningService.ListCapacityPlansgoogle.cloud.capacityplanner.v1alpha.CapacityPlanningService.QueryCapacityPlanInsightsgoogle.cloud.capacityplanner.v1alpha.CapacityPlanningService.QueryCapacityPlansgoogle.cloud.capacityplanner.v1alpha.CapacityPlanningService.QueryDemandPlanMetadatagoogle.longrunning.Operations.GetOperation |
DATA_WRITE |
google.cloud.capacityplanner.v1alpha.CapacityPlanningService.CreateCapacityPlan |
API 介面稽核記錄
如要瞭解各方法所需的權限及評估方式,請參閱 Capacity Planner 的 Identity and Access Management 說明文件。
google.cloud.capacityplanner.v1alpha.CapacityPlanningService
屬於 google.cloud.capacityplanner.v1alpha.CapacityPlanningService 的方法會產生以下稽核記錄。
CheckRelatedResources
- 方法:
google.cloud.capacityplanner.v1alpha.CapacityPlanningService.CheckRelatedResources - 稽核記錄類型:資料存取
- 權限:
capacityplanner.capacityPlans.get - DATA_READ
- 方法的作業種類:
非長時間執行或串流作業。
- 篩選條件:
protoPayload.methodName="google.cloud.capacityplanner.v1alpha.CapacityPlanningService.CheckRelatedResources"
CreateCapacityPlan
- 方法:
google.cloud.capacityplanner.v1alpha.CapacityPlanningService.CreateCapacityPlan - 稽核記錄類型:資料存取
- 權限:
capacityplanner.capacityPlans.create - DATA_WRITE
- 方法的作業種類:
非長時間執行或串流作業。
- 篩選條件:
protoPayload.methodName="google.cloud.capacityplanner.v1alpha.CapacityPlanningService.CreateCapacityPlan"
GetCapacityPlan
- 方法:
google.cloud.capacityplanner.v1alpha.CapacityPlanningService.GetCapacityPlan - 稽核記錄類型:資料存取
- 權限:
capacityplanner.capacityPlans.get - DATA_READ
- 方法的作業種類:
非長時間執行或串流作業。
- 篩選條件:
protoPayload.methodName="google.cloud.capacityplanner.v1alpha.CapacityPlanningService.GetCapacityPlan"
ListCapacityPlans
- 方法:
google.cloud.capacityplanner.v1alpha.CapacityPlanningService.ListCapacityPlans - 稽核記錄類型:資料存取
- 權限:
capacityplanner.capacityPlans.list - DATA_READ
- 方法的作業種類:
非長時間執行或串流作業。
- 篩選條件:
protoPayload.methodName="google.cloud.capacityplanner.v1alpha.CapacityPlanningService.ListCapacityPlans"
QueryCapacityPlanInsights
- 方法:
google.cloud.capacityplanner.v1alpha.CapacityPlanningService.QueryCapacityPlanInsights - 稽核記錄類型:資料存取
- 權限:
capacityplanner.capacityPlans.list - DATA_READ
- 方法的作業種類:
非長時間執行或串流作業。
- 篩選條件:
protoPayload.methodName="google.cloud.capacityplanner.v1alpha.CapacityPlanningService.QueryCapacityPlanInsights"
QueryCapacityPlans
- 方法:
google.cloud.capacityplanner.v1alpha.CapacityPlanningService.QueryCapacityPlans - 稽核記錄類型:資料存取
- 權限:
capacityplanner.capacityPlans.list - DATA_READ
- 方法的作業種類:
非長時間執行或串流作業。
- 篩選條件:
protoPayload.methodName="google.cloud.capacityplanner.v1alpha.CapacityPlanningService.QueryCapacityPlans"
QueryDemandPlanMetadata
- 方法:
google.cloud.capacityplanner.v1alpha.CapacityPlanningService.QueryDemandPlanMetadata - 稽核記錄類型:資料存取
- 權限:
capacityplanner.capacityPlans.list - DATA_READ
- 方法的作業種類:
非長時間執行或串流作業。
- 篩選條件:
protoPayload.methodName="google.cloud.capacityplanner.v1alpha.CapacityPlanningService.QueryDemandPlanMetadata"
google.cloud.capacityplanner.v1alpha.UsageService
屬於 google.cloud.capacityplanner.v1alpha.UsageService 的方法會產生以下稽核記錄。
ExportForecasts
- 方法:
google.cloud.capacityplanner.v1alpha.UsageService.ExportForecasts - 稽核記錄類型:資料存取
- 權限:
capacityplanner.forecasts.list - ADMIN_READ
- 方法的作業種類:
非長時間執行或串流作業。
- 篩選條件:
protoPayload.methodName="google.cloud.capacityplanner.v1alpha.UsageService.ExportForecasts"
ExportMachineShapeUsage
- 方法:
google.cloud.capacityplanner.v1alpha.UsageService.ExportMachineShapeUsage - 稽核記錄類型:資料存取
- 權限:
capacityplanner.forecasts.list - ADMIN_READcapacityplanner.usageHistories.list - ADMIN_READ
- 方法的作業種類:
非長時間執行或串流作業。
- 篩選條件:
protoPayload.methodName="google.cloud.capacityplanner.v1alpha.UsageService.ExportMachineShapeUsage"
ExportReservationsUsage
- 方法:
google.cloud.capacityplanner.v1alpha.UsageService.ExportReservationsUsage - 稽核記錄類型:資料存取
- 權限:
capacityplanner.usageHistories.list - ADMIN_READ
- 方法的作業種類:
非長時間執行或串流作業。
- 篩選條件:
protoPayload.methodName="google.cloud.capacityplanner.v1alpha.UsageService.ExportReservationsUsage"
ExportUsageHistories
- 方法:
google.cloud.capacityplanner.v1alpha.UsageService.ExportUsageHistories - 稽核記錄類型:資料存取
- 權限:
capacityplanner.usageHistories.list - ADMIN_READ
- 方法的作業種類:
非長時間執行或串流作業。
- 篩選條件:
protoPayload.methodName="google.cloud.capacityplanner.v1alpha.UsageService.ExportUsageHistories"
QueryForecasts
- 方法:
google.cloud.capacityplanner.v1alpha.UsageService.QueryForecasts - 稽核記錄類型:資料存取
- 權限:
capacityplanner.forecasts.list - ADMIN_READ
- 方法的作業種類:
非長時間執行或串流作業。
- 篩選條件:
protoPayload.methodName="google.cloud.capacityplanner.v1alpha.UsageService.QueryForecasts"
QueryReservations
- 方法:
google.cloud.capacityplanner.v1alpha.UsageService.QueryReservations - 稽核記錄類型:資料存取
- 權限:
capacityplanner.usageHistories.list - ADMIN_READ
- 方法的作業種類:
非長時間執行或串流作業。
- 篩選條件:
protoPayload.methodName="google.cloud.capacityplanner.v1alpha.UsageService.QueryReservations"
QueryUsageHistories
- 方法:
google.cloud.capacityplanner.v1alpha.UsageService.QueryUsageHistories - 稽核記錄類型:資料存取
- 權限:
capacityplanner.usageHistories.list - ADMIN_READ
- 方法的作業種類:
非長時間執行或串流作業。
- 篩選條件:
protoPayload.methodName="google.cloud.capacityplanner.v1alpha.UsageService.QueryUsageHistories"
google.cloud.capacityplanner.v1beta.UsageService
屬於 google.cloud.capacityplanner.v1beta.UsageService 的方法會產生以下稽核記錄。
ExportForecasts
- 方法:
google.cloud.capacityplanner.v1beta.UsageService.ExportForecasts - 稽核記錄類型:資料存取
- 權限:
capacityplanner.forecasts.list - ADMIN_READ
- 方法的作業種類:
非長時間執行或串流作業。
- 篩選條件:
protoPayload.methodName="google.cloud.capacityplanner.v1beta.UsageService.ExportForecasts"
ExportReservationsUsage
- 方法:
google.cloud.capacityplanner.v1beta.UsageService.ExportReservationsUsage - 稽核記錄類型:資料存取
- 權限:
capacityplanner.usageHistories.list - ADMIN_READ
- 方法的作業種類:
非長時間執行或串流作業。
- 篩選條件:
protoPayload.methodName="google.cloud.capacityplanner.v1beta.UsageService.ExportReservationsUsage"
ExportUsageHistories
- 方法:
google.cloud.capacityplanner.v1beta.UsageService.ExportUsageHistories - 稽核記錄類型:資料存取
- 權限:
capacityplanner.usageHistories.list - ADMIN_READ
- 方法的作業種類:
非長時間執行或串流作業。
- 篩選條件:
protoPayload.methodName="google.cloud.capacityplanner.v1beta.UsageService.ExportUsageHistories"
QueryForecasts
- 方法:
google.cloud.capacityplanner.v1beta.UsageService.QueryForecasts - 稽核記錄類型:資料存取
- 權限:
capacityplanner.forecasts.list - ADMIN_READ
- 方法的作業種類:
非長時間執行或串流作業。
- 篩選條件:
protoPayload.methodName="google.cloud.capacityplanner.v1beta.UsageService.QueryForecasts"
QueryReservations
- 方法:
google.cloud.capacityplanner.v1beta.UsageService.QueryReservations - 稽核記錄類型:資料存取
- 權限:
capacityplanner.usageHistories.list - ADMIN_READ
- 方法的作業種類:
非長時間執行或串流作業。
- 篩選條件:
protoPayload.methodName="google.cloud.capacityplanner.v1beta.UsageService.QueryReservations"
QueryUsageHistories
- 方法:
google.cloud.capacityplanner.v1beta.UsageService.QueryUsageHistories - 稽核記錄類型:資料存取
- 權限:
capacityplanner.usageHistories.list - ADMIN_READ
- 方法的作業種類:
非長時間執行或串流作業。
- 篩選條件:
protoPayload.methodName="google.cloud.capacityplanner.v1beta.UsageService.QueryUsageHistories"
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"
google.longrunning.Operations
屬於 google.longrunning.Operations 的方法會產生以下稽核記錄。
GetOperation
- 方法:
google.longrunning.Operations.GetOperation - 稽核記錄類型:資料存取
- 權限:
capacityplanner.operations.get - DATA_READ
- 方法的作業種類:
非長時間執行或串流作業。
- 篩選條件:
protoPayload.methodName="google.longrunning.Operations.GetOperation"
不會產生稽核記錄的方法
某些方法可能不會產生稽核記錄,原因包括以下一或多項:
- 該方法的流量使用量高,若產生稽核記錄,會導致記錄與儲存成本過高。
- 稽核價值低。
- 其他稽核記錄或平台記錄已涵蓋該方法的活動。
下列方法不會產生稽核記錄:
google.longrunning.Operations.CancelOperationgoogle.longrunning.Operations.DeleteOperationgoogle.longrunning.Operations.ListOperationsgoogle.longrunning.Operations.WaitOperation