Service Usage audit logging
This document describes audit logging for Service Usage. Google Cloud services generate audit logs that record administrative and access activities within your Google Cloud resources. For more information about Cloud Audit Logs, see the following:
- Types of audit logs
- Audit log entry structure
- Storing and routing audit logs
- Cloud Logging pricing summary
- Enable Data Access audit logs
Service name
Service Usage audit logs use the service name serviceusage.googleapis.com
.
Filter for this service:
protoPayload.serviceName="serviceusage.googleapis.com"
Methods by permission type
Each IAM permission has a type
property, whose value is an enum
that can be one of four values: ADMIN_READ
, ADMIN_WRITE
,
DATA_READ
, or DATA_WRITE
. When you call a method,
Service Usage generates an audit log whose category is dependent on the
type
property of the permission required to perform the method.
Methods that require an IAM permission with the type
property value
of DATA_READ
, DATA_WRITE
, or ADMIN_READ
generate
Data Access audit logs.
Methods that require an IAM permission with the type
property value
of ADMIN_WRITE
generate
Admin Activity audit logs.
Permission type | Methods |
---|---|
ADMIN_WRITE |
google.api.serviceusage.v1.ServiceUsage.BatchEnableServices google.api.serviceusage.v1.ServiceUsage.DisableService google.api.serviceusage.v1.ServiceUsage.EnableService google.api.serviceusage.v1beta1.ServiceUsage.BatchEnableServices google.api.serviceusage.v1beta1.ServiceUsage.CreateAdminOverride google.api.serviceusage.v1beta1.ServiceUsage.CreateConsumerOverride google.api.serviceusage.v1beta1.ServiceUsage.DeleteAdminOverride google.api.serviceusage.v1beta1.ServiceUsage.DeleteConsumerOverride google.api.serviceusage.v1beta1.ServiceUsage.DisableService google.api.serviceusage.v1beta1.ServiceUsage.EnableService google.api.serviceusage.v1beta1.ServiceUsage.ImportAdminOverrides google.api.serviceusage.v1beta1.ServiceUsage.ImportConsumerOverrides google.api.serviceusage.v1beta1.ServiceUsage.UpdateAdminOverride google.api.serviceusage.v1beta1.ServiceUsage.UpdateConsumerOverride google.longrunning.Operations.GetOperation |
API interface audit logs
For information about how and which permissions are evaluated for each method, see the Identity and Access Management documentation for Service Usage.
google.api.serviceusage.v1.ServiceUsage
The following audit logs are associated with methods belonging to
google.api.serviceusage.v1.ServiceUsage
.
BatchEnableServices
- Method:
google.api.serviceusage.v1.ServiceUsage.BatchEnableServices
- Audit log type: Admin activity
- Permissions:
servicemanagement.services.bind - DATA_WRITE
serviceusage.services.enable - ADMIN_WRITE
- Method is a long-running or streaming operation:
Long-running operation
- Filter for this method:
protoPayload.methodName="google.api.serviceusage.v1.ServiceUsage.BatchEnableServices"
DisableService
- Method:
google.api.serviceusage.v1.ServiceUsage.DisableService
- Audit log type: Admin activity
- Permissions:
serviceusage.services.disable - ADMIN_WRITE
- Method is a long-running or streaming operation:
Long-running operation
- Filter for this method:
protoPayload.methodName="google.api.serviceusage.v1.ServiceUsage.DisableService"
EnableService
- Method:
google.api.serviceusage.v1.ServiceUsage.EnableService
- Audit log type: Admin activity
- Permissions:
servicemanagement.services.bind - DATA_WRITE
serviceusage.services.enable - ADMIN_WRITE
- Method is a long-running or streaming operation:
Long-running operation
- Filter for this method:
protoPayload.methodName="google.api.serviceusage.v1.ServiceUsage.EnableService"
google.api.serviceusage.v1beta1.ServiceUsage
The following audit logs are associated with methods belonging to
google.api.serviceusage.v1beta1.ServiceUsage
.
BatchEnableServices
- Method:
google.api.serviceusage.v1beta1.ServiceUsage.BatchEnableServices
- Audit log type: Admin activity
- Permissions:
servicemanagement.services.bind - DATA_WRITE
serviceusage.services.enable - ADMIN_WRITE
- Method is a long-running or streaming operation:
Long-running operation
- Filter for this method:
protoPayload.methodName="google.api.serviceusage.v1beta1.ServiceUsage.BatchEnableServices"
CreateAdminOverride
- Method:
google.api.serviceusage.v1beta1.ServiceUsage.CreateAdminOverride
- Audit log type: Admin activity
- Permissions:
serviceusage.quotas.update - ADMIN_WRITE
- Method is a long-running or streaming operation:
Long-running operation
- Filter for this method:
protoPayload.methodName="google.api.serviceusage.v1beta1.ServiceUsage.CreateAdminOverride"
CreateConsumerOverride
- Method:
google.api.serviceusage.v1beta1.ServiceUsage.CreateConsumerOverride
- Audit log type: Admin activity
- Permissions:
serviceusage.quotas.update - ADMIN_WRITE
- Method is a long-running or streaming operation:
Long-running operation
- Filter for this method:
protoPayload.methodName="google.api.serviceusage.v1beta1.ServiceUsage.CreateConsumerOverride"
DeleteAdminOverride
- Method:
google.api.serviceusage.v1beta1.ServiceUsage.DeleteAdminOverride
- Audit log type: Admin activity
- Permissions:
serviceusage.quotas.update - ADMIN_WRITE
- Method is a long-running or streaming operation:
Long-running operation
- Filter for this method:
protoPayload.methodName="google.api.serviceusage.v1beta1.ServiceUsage.DeleteAdminOverride"
DeleteConsumerOverride
- Method:
google.api.serviceusage.v1beta1.ServiceUsage.DeleteConsumerOverride
- Audit log type: Admin activity
- Permissions:
serviceusage.quotas.update - ADMIN_WRITE
- Method is a long-running or streaming operation:
Long-running operation
- Filter for this method:
protoPayload.methodName="google.api.serviceusage.v1beta1.ServiceUsage.DeleteConsumerOverride"
DisableService
- Method:
google.api.serviceusage.v1beta1.ServiceUsage.DisableService
- Audit log type: Admin activity
- Permissions:
serviceusage.services.disable - ADMIN_WRITE
- Method is a long-running or streaming operation:
Long-running operation
- Filter for this method:
protoPayload.methodName="google.api.serviceusage.v1beta1.ServiceUsage.DisableService"
EnableService
- Method:
google.api.serviceusage.v1beta1.ServiceUsage.EnableService
- Audit log type: Admin activity
- Permissions:
servicemanagement.services.bind - DATA_WRITE
serviceusage.services.enable - ADMIN_WRITE
- Method is a long-running or streaming operation:
Long-running operation
- Filter for this method:
protoPayload.methodName="google.api.serviceusage.v1beta1.ServiceUsage.EnableService"
ImportAdminOverrides
- Method:
google.api.serviceusage.v1beta1.ServiceUsage.ImportAdminOverrides
- Audit log type: Admin activity
- Permissions:
serviceusage.quotas.update - ADMIN_WRITE
- Method is a long-running or streaming operation:
Long-running operation
- Filter for this method:
protoPayload.methodName="google.api.serviceusage.v1beta1.ServiceUsage.ImportAdminOverrides"
ImportConsumerOverrides
- Method:
google.api.serviceusage.v1beta1.ServiceUsage.ImportConsumerOverrides
- Audit log type: Admin activity
- Permissions:
serviceusage.quotas.update - ADMIN_WRITE
- Method is a long-running or streaming operation:
Long-running operation
- Filter for this method:
protoPayload.methodName="google.api.serviceusage.v1beta1.ServiceUsage.ImportConsumerOverrides"
UpdateAdminOverride
- Method:
google.api.serviceusage.v1beta1.ServiceUsage.UpdateAdminOverride
- Audit log type: Admin activity
- Permissions:
serviceusage.quotas.update - ADMIN_WRITE
- Method is a long-running or streaming operation:
Long-running operation
- Filter for this method:
protoPayload.methodName="google.api.serviceusage.v1beta1.ServiceUsage.UpdateAdminOverride"
UpdateConsumerOverride
- Method:
google.api.serviceusage.v1beta1.ServiceUsage.UpdateConsumerOverride
- Audit log type: Admin activity
- Permissions:
serviceusage.quotas.update - ADMIN_WRITE
- Method is a long-running or streaming operation:
Long-running operation
- Filter for this method:
protoPayload.methodName="google.api.serviceusage.v1beta1.ServiceUsage.UpdateConsumerOverride"
google.longrunning.Operations
The following audit logs are associated with methods belonging to
google.longrunning.Operations
.
GetOperation
- Method:
google.longrunning.Operations.GetOperation
- Audit log type: Admin activity
- Permissions:
serviceusage.operations.get - DATA_READ
serviceusage.services.enable - ADMIN_WRITE
serviceusage.services.get - DATA_READ
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.longrunning.Operations.GetOperation"