本文档介绍了 Google Health API 的审核日志记录。Google Cloud 服务会生成审核日志,以记录 Google Cloud 资源中的管理和访问活动。 如需详细了解 Cloud Audit Logs,请参阅以下内容:
服务名称
Google Health API 审核日志使用服务名称 health.googleapis.com。
针对此服务的过滤条件:
protoPayload.serviceName="health.googleapis.com"
方法(按权限类型)
每个 IAM 权限都有一个 type 属性,该属性的值是一个枚举,可以是以下四个值之一:ADMIN_READ、ADMIN_WRITE、DATA_READ 或
DATA_WRITE。在您调用某个方法时,Google Health API 会生成一个审核日志,其类别取决于执行该方法所需权限的
type 属性。
需要 IAM 权限且 type 属性值
为 DATA_READ、DATA_WRITE 或 ADMIN_READ 的方法会生成
数据访问审核日志。
需要 IAM 权限且 type 属性值为 ADMIN_WRITE 的方法会生成管理员活动审核日志。
| 权限类型 | 方法 |
|---|---|
ADMIN_WRITE |
google.devicesandservices.health.v4.DataSubscriptionService.CreateSubscriber (LRO)google.devicesandservices.health.v4.DataSubscriptionService.CreateSubscriptiongoogle.devicesandservices.health.v4.DataSubscriptionService.DeleteSubscriber (LRO)google.devicesandservices.health.v4.DataSubscriptionService.DeleteSubscriptiongoogle.devicesandservices.health.v4.DataSubscriptionService.UpdateSubscriber (LRO)google.devicesandservices.health.v4.DataSubscriptionService.UpdateSubscription |
DATA_READ |
google.devicesandservices.health.v4.DataSubscriptionService.ListSubscribersgoogle.devicesandservices.health.v4.DataSubscriptionService.ListSubscriptions |
API 接口审核日志
如需了解如何评估每种方法的权限以及评估哪些权限,请参阅 Google Health API 的 IAM 文档。
google.devicesandservices.health.v4.DataSubscriptionService
以下审核日志与属于 google.devicesandservices.health.v4.DataSubscriptionService 的方法相关联。
CreateSubscriber
- 方法:
google.devicesandservices.health.v4.DataSubscriptionService.CreateSubscriber - 审核日志类型:管理员活动
- 权限:
health.subscribers.create - META_DATA_WRITE
- 方法是长时间运行的操作或流式传输操作:
是。
- 此方法的过滤条件:
protoPayload.methodName="google.devicesandservices.health.v4.DataSubscriptionService.CreateSubscriber"
CreateSubscription
- 方法:
google.devicesandservices.health.v4.DataSubscriptionService.CreateSubscription - 审核日志类型:管理员活动
- 权限:
health.subscriptions.create - META_DATA_WRITE
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.devicesandservices.health.v4.DataSubscriptionService.CreateSubscription"
DeleteSubscriber
- 方法:
google.devicesandservices.health.v4.DataSubscriptionService.DeleteSubscriber - 审核日志类型:管理员活动
- 权限:
health.subscribers.delete - META_DATA_WRITE
- 方法是长时间运行的操作或流式传输操作:
是。
- 此方法的过滤条件:
protoPayload.methodName="google.devicesandservices.health.v4.DataSubscriptionService.DeleteSubscriber"
DeleteSubscription
- 方法:
google.devicesandservices.health.v4.DataSubscriptionService.DeleteSubscription - 审核日志类型:管理员活动
- 权限:
health.subscriptions.delete - META_DATA_WRITE
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.devicesandservices.health.v4.DataSubscriptionService.DeleteSubscription"
ListSubscribers
- 方法:
google.devicesandservices.health.v4.DataSubscriptionService.ListSubscribers - 审核日志类型:数据访问
- 权限:
health.subscribers.list - META_DATA_READ
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.devicesandservices.health.v4.DataSubscriptionService.ListSubscribers"
ListSubscriptions
- 方法:
google.devicesandservices.health.v4.DataSubscriptionService.ListSubscriptions - 审核日志类型:数据访问
- 权限:
health.subscriptions.list - META_DATA_READ
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.devicesandservices.health.v4.DataSubscriptionService.ListSubscriptions"
UpdateSubscriber
- 方法:
google.devicesandservices.health.v4.DataSubscriptionService.UpdateSubscriber - 审核日志类型:管理员活动
- 权限:
health.subscribers.update - META_DATA_WRITE
- 方法是长时间运行的操作或流式传输操作:
是。
- 此方法的过滤条件:
protoPayload.methodName="google.devicesandservices.health.v4.DataSubscriptionService.UpdateSubscriber"
UpdateSubscription
- 方法:
google.devicesandservices.health.v4.DataSubscriptionService.UpdateSubscription - 审核日志类型:管理员活动
- 权限:
health.subscriptions.update - META_DATA_WRITE
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.devicesandservices.health.v4.DataSubscriptionService.UpdateSubscription"
不会生成审核日志的方法
由于以下一个或多个原因,方法可能不会生成审核日志:
- 这是一种会产生大量日志的方法,日志生成和存储的费用高昂。
- 它的审核价值较低。
- 其他审核或平台日志已提供方法覆盖功能。
以下方法不会生成审核日志:
google.devicesandservices.health.v4.DataSubscriptionService.GetSubscription