本文档列出了容量规划工具的受审核方法。 Google Cloud 服务会生成审核日志,以记录 Google Cloud 资源中的管理和访问活动。如需详细了解 Cloud Audit Logs,请参阅以下内容:
服务名称
如需查看容量规划工具审核日志,请执行以下操作:
在 Google Cloud 控制台中,前往 Logs Explorer 页面:
将以下查询复制并粘贴到Logs Explorer的查询字段中,然后点击运行查询。
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.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