This document describes audit logging for Cloud Tasks. 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
Cloud Tasks audit logs use the service name cloudtasks.googleapis.com
.
Filter for this service:
protoPayload.serviceName="cloudtasks.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,
Cloud Tasks 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_READ |
google.cloud.tasks.v2.CloudTasks.GetCmekConfig google.cloud.tasks.v2.CloudTasks.GetIamPolicy google.cloud.tasks.v2.CloudTasks.GetQueue google.cloud.tasks.v2.CloudTasks.ListQueues google.cloud.tasks.v2beta2.CloudTasks.GetCmekConfig google.cloud.tasks.v2beta2.CloudTasks.GetIamPolicy google.cloud.tasks.v2beta2.CloudTasks.GetQueue google.cloud.tasks.v2beta2.CloudTasks.ListQueues google.cloud.tasks.v2beta3.CloudTasks.GetCmekConfig google.cloud.tasks.v2beta3.CloudTasks.GetIamPolicy google.cloud.tasks.v2beta3.CloudTasks.GetQueue google.cloud.tasks.v2beta3.CloudTasks.ListQueues |
ADMIN_WRITE |
google.cloud.tasks.v2.CloudTasks.CreateQueue google.cloud.tasks.v2.CloudTasks.DeleteQueue google.cloud.tasks.v2.CloudTasks.PauseQueue google.cloud.tasks.v2.CloudTasks.PurgeQueue google.cloud.tasks.v2.CloudTasks.ResumeQueue google.cloud.tasks.v2.CloudTasks.SetIamPolicy google.cloud.tasks.v2.CloudTasks.UpdateCmekConfig google.cloud.tasks.v2.CloudTasks.UpdateQueue google.cloud.tasks.v2beta2.CloudTasks.CreateQueue google.cloud.tasks.v2beta2.CloudTasks.DeleteQueue google.cloud.tasks.v2beta2.CloudTasks.PauseQueue google.cloud.tasks.v2beta2.CloudTasks.PurgeQueue google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue google.cloud.tasks.v2beta2.CloudTasks.SetIamPolicy google.cloud.tasks.v2beta2.CloudTasks.UpdateCmekConfig google.cloud.tasks.v2beta2.CloudTasks.UpdateQueue google.cloud.tasks.v2beta2.CloudTasks.UploadQueueYaml google.cloud.tasks.v2beta3.CloudTasks.CreateQueue google.cloud.tasks.v2beta3.CloudTasks.DeleteQueue google.cloud.tasks.v2beta3.CloudTasks.PauseQueue google.cloud.tasks.v2beta3.CloudTasks.PurgeQueue google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue google.cloud.tasks.v2beta3.CloudTasks.SetIamPolicy google.cloud.tasks.v2beta3.CloudTasks.UpdateCmekConfig google.cloud.tasks.v2beta3.CloudTasks.UpdateQueue |
DATA_READ |
google.cloud.tasks.v2.CloudTasks.GetTask google.cloud.tasks.v2.CloudTasks.ListTasks google.cloud.tasks.v2beta2.CloudTasks.GetTask google.cloud.tasks.v2beta2.CloudTasks.ListTasks google.cloud.tasks.v2beta3.CloudTasks.GetTask google.cloud.tasks.v2beta3.CloudTasks.ListTasks |
DATA_WRITE |
google.cloud.tasks.v2.CloudTasks.DeleteTask google.cloud.tasks.v2.CloudTasks.RunTask google.cloud.tasks.v2beta2.CloudTasks.DeleteTask google.cloud.tasks.v2beta2.CloudTasks.RunTask google.cloud.tasks.v2beta3.CloudTasks.DeleteTask google.cloud.tasks.v2beta3.CloudTasks.RunTask |
API interface audit logs
For information about how and which permissions are evaluated for each method, see the Identity and Access Management documentation for Cloud Tasks.
google.cloud.tasks.v2.CloudTasks
The following audit logs are associated with methods belonging to
google.cloud.tasks.v2.CloudTasks
.
CreateQueue
- Method:
google.cloud.tasks.v2.CloudTasks.CreateQueue
- Audit log type: Admin activity
- Permissions:
cloudtasks.queues.create - ADMIN_WRITE
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2.CloudTasks.CreateQueue"
DeleteQueue
- Method:
google.cloud.tasks.v2.CloudTasks.DeleteQueue
- Audit log type: Admin activity
- Permissions:
cloudtasks.queues.delete - ADMIN_WRITE
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2.CloudTasks.DeleteQueue"
DeleteTask
- Method:
google.cloud.tasks.v2.CloudTasks.DeleteTask
- Audit log type: Data access
- Permissions:
cloudtasks.tasks.delete - DATA_WRITE
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2.CloudTasks.DeleteTask"
GetCmekConfig
- Method:
google.cloud.tasks.v2.CloudTasks.GetCmekConfig
- Audit log type: Data access
- Permissions:
cloudtasks.cmekConfig.get - ADMIN_READ
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2.CloudTasks.GetCmekConfig"
GetIamPolicy
- Method:
google.cloud.tasks.v2.CloudTasks.GetIamPolicy
- Audit log type: Data access
- Permissions:
cloudtasks.queues.getIamPolicy - ADMIN_READ
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2.CloudTasks.GetIamPolicy"
GetQueue
- Method:
google.cloud.tasks.v2.CloudTasks.GetQueue
- Audit log type: Data access
- Permissions:
cloudtasks.queues.get - ADMIN_READ
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2.CloudTasks.GetQueue"
GetTask
- Method:
google.cloud.tasks.v2.CloudTasks.GetTask
- Audit log type: Data access
- Permissions:
cloudtasks.tasks.get - DATA_READ
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2.CloudTasks.GetTask"
ListQueues
- Method:
google.cloud.tasks.v2.CloudTasks.ListQueues
- Audit log type: Data access
- Permissions:
cloudtasks.queues.list - ADMIN_READ
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2.CloudTasks.ListQueues"
ListTasks
- Method:
google.cloud.tasks.v2.CloudTasks.ListTasks
- Audit log type: Data access
- Permissions:
cloudtasks.tasks.list - DATA_READ
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2.CloudTasks.ListTasks"
PauseQueue
- Method:
google.cloud.tasks.v2.CloudTasks.PauseQueue
- Audit log type: Admin activity
- Permissions:
cloudtasks.queues.pause - ADMIN_WRITE
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2.CloudTasks.PauseQueue"
PurgeQueue
- Method:
google.cloud.tasks.v2.CloudTasks.PurgeQueue
- Audit log type: Admin activity
- Permissions:
cloudtasks.queues.purge - ADMIN_WRITE
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2.CloudTasks.PurgeQueue"
ResumeQueue
- Method:
google.cloud.tasks.v2.CloudTasks.ResumeQueue
- Audit log type: Admin activity
- Permissions:
cloudtasks.queues.resume - ADMIN_WRITE
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2.CloudTasks.ResumeQueue"
RunTask
- Method:
google.cloud.tasks.v2.CloudTasks.RunTask
- Audit log type: Data access
- Permissions:
cloudtasks.tasks.run - DATA_WRITE
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2.CloudTasks.RunTask"
SetIamPolicy
- Method:
google.cloud.tasks.v2.CloudTasks.SetIamPolicy
- Audit log type: Admin activity
- Permissions:
cloudtasks.queues.setIamPolicy - ADMIN_WRITE
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2.CloudTasks.SetIamPolicy"
UpdateCmekConfig
- Method:
google.cloud.tasks.v2.CloudTasks.UpdateCmekConfig
- Audit log type: Admin activity
- Permissions:
cloudtasks.cmekConfig.update - ADMIN_WRITE
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2.CloudTasks.UpdateCmekConfig"
UpdateQueue
- Method:
google.cloud.tasks.v2.CloudTasks.UpdateQueue
- Audit log type: Admin activity
- Permissions:
cloudtasks.queues.update - ADMIN_WRITE
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2.CloudTasks.UpdateQueue"
google.cloud.tasks.v2beta2.CloudTasks
The following audit logs are associated with methods belonging to
google.cloud.tasks.v2beta2.CloudTasks
.
CreateQueue
- Method:
google.cloud.tasks.v2beta2.CloudTasks.CreateQueue
- Audit log type: Admin activity
- Permissions:
cloudtasks.queues.create - ADMIN_WRITE
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2beta2.CloudTasks.CreateQueue"
DeleteQueue
- Method:
google.cloud.tasks.v2beta2.CloudTasks.DeleteQueue
- Audit log type: Admin activity
- Permissions:
cloudtasks.queues.delete - ADMIN_WRITE
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2beta2.CloudTasks.DeleteQueue"
DeleteTask
- Method:
google.cloud.tasks.v2beta2.CloudTasks.DeleteTask
- Audit log type: Data access
- Permissions:
cloudtasks.tasks.delete - DATA_WRITE
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2beta2.CloudTasks.DeleteTask"
GetCmekConfig
- Method:
google.cloud.tasks.v2beta2.CloudTasks.GetCmekConfig
- Audit log type: Data access
- Permissions:
cloudtasks.cmekConfig.get - ADMIN_READ
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2beta2.CloudTasks.GetCmekConfig"
GetIamPolicy
- Method:
google.cloud.tasks.v2beta2.CloudTasks.GetIamPolicy
- Audit log type: Data access
- Permissions:
cloudtasks.queues.getIamPolicy - ADMIN_READ
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2beta2.CloudTasks.GetIamPolicy"
GetQueue
- Method:
google.cloud.tasks.v2beta2.CloudTasks.GetQueue
- Audit log type: Data access
- Permissions:
cloudtasks.queues.get - ADMIN_READ
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2beta2.CloudTasks.GetQueue"
GetTask
- Method:
google.cloud.tasks.v2beta2.CloudTasks.GetTask
- Audit log type: Data access
- Permissions:
cloudtasks.tasks.get - DATA_READ
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2beta2.CloudTasks.GetTask"
ListQueues
- Method:
google.cloud.tasks.v2beta2.CloudTasks.ListQueues
- Audit log type: Data access
- Permissions:
cloudtasks.queues.list - ADMIN_READ
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2beta2.CloudTasks.ListQueues"
ListTasks
- Method:
google.cloud.tasks.v2beta2.CloudTasks.ListTasks
- Audit log type: Data access
- Permissions:
cloudtasks.tasks.list - DATA_READ
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2beta2.CloudTasks.ListTasks"
PauseQueue
- Method:
google.cloud.tasks.v2beta2.CloudTasks.PauseQueue
- Audit log type: Admin activity
- Permissions:
cloudtasks.queues.pause - ADMIN_WRITE
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2beta2.CloudTasks.PauseQueue"
PurgeQueue
- Method:
google.cloud.tasks.v2beta2.CloudTasks.PurgeQueue
- Audit log type: Admin activity
- Permissions:
cloudtasks.queues.purge - ADMIN_WRITE
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2beta2.CloudTasks.PurgeQueue"
ResumeQueue
- Method:
google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue
- Audit log type: Admin activity
- Permissions:
cloudtasks.queues.resume - ADMIN_WRITE
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue"
RunTask
- Method:
google.cloud.tasks.v2beta2.CloudTasks.RunTask
- Audit log type: Data access
- Permissions:
cloudtasks.tasks.run - DATA_WRITE
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2beta2.CloudTasks.RunTask"
SetIamPolicy
- Method:
google.cloud.tasks.v2beta2.CloudTasks.SetIamPolicy
- Audit log type: Admin activity
- Permissions:
cloudtasks.queues.setIamPolicy - ADMIN_WRITE
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2beta2.CloudTasks.SetIamPolicy"
UpdateCmekConfig
- Method:
google.cloud.tasks.v2beta2.CloudTasks.UpdateCmekConfig
- Audit log type: Admin activity
- Permissions:
cloudtasks.cmekConfig.update - ADMIN_WRITE
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2beta2.CloudTasks.UpdateCmekConfig"
UpdateQueue
- Method:
google.cloud.tasks.v2beta2.CloudTasks.UpdateQueue
- Audit log type: Admin activity
- Permissions:
cloudtasks.queues.update - ADMIN_WRITE
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2beta2.CloudTasks.UpdateQueue"
UploadQueueYaml
- Method:
google.cloud.tasks.v2beta2.CloudTasks.UploadQueueYaml
- Audit log type: Admin activity
- Permissions:
cloudtasks.queues.update - ADMIN_WRITE
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2beta2.CloudTasks.UploadQueueYaml"
google.cloud.tasks.v2beta3.CloudTasks
The following audit logs are associated with methods belonging to
google.cloud.tasks.v2beta3.CloudTasks
.
CreateQueue
- Method:
google.cloud.tasks.v2beta3.CloudTasks.CreateQueue
- Audit log type: Admin activity
- Permissions:
cloudtasks.queues.create - ADMIN_WRITE
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2beta3.CloudTasks.CreateQueue"
DeleteQueue
- Method:
google.cloud.tasks.v2beta3.CloudTasks.DeleteQueue
- Audit log type: Admin activity
- Permissions:
cloudtasks.queues.delete - ADMIN_WRITE
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2beta3.CloudTasks.DeleteQueue"
DeleteTask
- Method:
google.cloud.tasks.v2beta3.CloudTasks.DeleteTask
- Audit log type: Data access
- Permissions:
cloudtasks.tasks.delete - DATA_WRITE
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2beta3.CloudTasks.DeleteTask"
GetCmekConfig
- Method:
google.cloud.tasks.v2beta3.CloudTasks.GetCmekConfig
- Audit log type: Data access
- Permissions:
cloudtasks.cmekConfig.get - ADMIN_READ
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2beta3.CloudTasks.GetCmekConfig"
GetIamPolicy
- Method:
google.cloud.tasks.v2beta3.CloudTasks.GetIamPolicy
- Audit log type: Data access
- Permissions:
cloudtasks.queues.getIamPolicy - ADMIN_READ
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2beta3.CloudTasks.GetIamPolicy"
GetQueue
- Method:
google.cloud.tasks.v2beta3.CloudTasks.GetQueue
- Audit log type: Data access
- Permissions:
cloudtasks.queues.get - ADMIN_READ
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2beta3.CloudTasks.GetQueue"
GetTask
- Method:
google.cloud.tasks.v2beta3.CloudTasks.GetTask
- Audit log type: Data access
- Permissions:
cloudtasks.tasks.get - DATA_READ
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2beta3.CloudTasks.GetTask"
ListQueues
- Method:
google.cloud.tasks.v2beta3.CloudTasks.ListQueues
- Audit log type: Data access
- Permissions:
cloudtasks.queues.list - ADMIN_READ
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2beta3.CloudTasks.ListQueues"
ListTasks
- Method:
google.cloud.tasks.v2beta3.CloudTasks.ListTasks
- Audit log type: Data access
- Permissions:
cloudtasks.tasks.list - DATA_READ
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2beta3.CloudTasks.ListTasks"
PauseQueue
- Method:
google.cloud.tasks.v2beta3.CloudTasks.PauseQueue
- Audit log type: Admin activity
- Permissions:
cloudtasks.queues.pause - ADMIN_WRITE
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2beta3.CloudTasks.PauseQueue"
PurgeQueue
- Method:
google.cloud.tasks.v2beta3.CloudTasks.PurgeQueue
- Audit log type: Admin activity
- Permissions:
cloudtasks.queues.purge - ADMIN_WRITE
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2beta3.CloudTasks.PurgeQueue"
ResumeQueue
- Method:
google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue
- Audit log type: Admin activity
- Permissions:
cloudtasks.queues.resume - ADMIN_WRITE
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue"
RunTask
- Method:
google.cloud.tasks.v2beta3.CloudTasks.RunTask
- Audit log type: Data access
- Permissions:
cloudtasks.tasks.run - DATA_WRITE
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2beta3.CloudTasks.RunTask"
SetIamPolicy
- Method:
google.cloud.tasks.v2beta3.CloudTasks.SetIamPolicy
- Audit log type: Admin activity
- Permissions:
cloudtasks.queues.setIamPolicy - ADMIN_WRITE
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2beta3.CloudTasks.SetIamPolicy"
UpdateCmekConfig
- Method:
google.cloud.tasks.v2beta3.CloudTasks.UpdateCmekConfig
- Audit log type: Admin activity
- Permissions:
cloudtasks.cmekConfig.update - ADMIN_WRITE
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2beta3.CloudTasks.UpdateCmekConfig"
UpdateQueue
- Method:
google.cloud.tasks.v2beta3.CloudTasks.UpdateQueue
- Audit log type: Admin activity
- Permissions:
cloudtasks.queues.update - ADMIN_WRITE
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.tasks.v2beta3.CloudTasks.UpdateQueue"
Methods that don't produce audit logs
A method might not produce audit logs for one or more of the following reasons:
- It is a high volume method involving signifcant log generation and storage costs.
- It has low auditing value.
- Another audit or platform log already provides method coverage.
The following methods don't produce audit logs:
google.cloud.location.Locations.GetLocation
google.cloud.location.Locations.ListLocations
google.cloud.tasks.v2.CloudTasks.BufferTask
google.cloud.tasks.v2.CloudTasks.CreateTask
google.cloud.tasks.v2.CloudTasks.TestIamPermissions
google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask
google.cloud.tasks.v2beta2.CloudTasks.BufferTask
google.cloud.tasks.v2beta2.CloudTasks.CancelLease
google.cloud.tasks.v2beta2.CloudTasks.CreateTask
google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks
google.cloud.tasks.v2beta2.CloudTasks.RenewLease
google.cloud.tasks.v2beta2.CloudTasks.TestIamPermissions
google.cloud.tasks.v2beta3.CloudTasks.BufferTask
google.cloud.tasks.v2beta3.CloudTasks.CreateTask
google.cloud.tasks.v2beta3.CloudTasks.TestIamPermissions