Cloud NAT audit logging

This document describes audit logging for Cloud NAT. 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:

Service name

Cloud NAT audit logs use the service name compute.googleapis.com. Filter for this service:

    protoPayload.serviceName="compute.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 NAT 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 v1.compute.routers.aggregatedList
v1.compute.routers.get
v1.compute.routers.getNatIpInfo
v1.compute.routers.getNatMappingInfo
v1.compute.routers.getRouterStatus
v1.compute.routers.list
v1.compute.routers.preview
ADMIN_WRITE v1.compute.routers.delete
v1.compute.routers.insert
v1.compute.routers.patch
v1.compute.routers.update

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 NAT.

compute.v1.RegionRoutersService

The following audit logs are associated with methods belonging to compute.v1.RegionRoutersService.

aggregatedList

  • Method: v1.compute.routers.aggregatedList
  • Audit log type: Data access
  • Permissions:
    • compute.routers.list - ADMIN_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="v1.compute.routers.aggregatedList"

delete

  • Method: v1.compute.routers.delete
  • Audit log type: Admin activity
  • Permissions:
    • compute.routers.delete - ADMIN_WRITE
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="v1.compute.routers.delete"

get

  • Method: v1.compute.routers.get
  • Audit log type: Data access
  • Permissions:
    • compute.routers.get - ADMIN_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="v1.compute.routers.get"

getNatIpInfo

  • Method: v1.compute.routers.getNatIpInfo
  • Audit log type: Data access
  • Permissions:
    • compute.routers.get - ADMIN_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="v1.compute.routers.getNatIpInfo"

getNatMappingInfo

  • Method: v1.compute.routers.getNatMappingInfo
  • Audit log type: Data access
  • Permissions:
    • compute.routers.get - ADMIN_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="v1.compute.routers.getNatMappingInfo"

getRouterStatus

  • Method: v1.compute.routers.getRouterStatus
  • Audit log type: Data access
  • Permissions:
    • compute.routers.get - ADMIN_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="v1.compute.routers.getRouterStatus"

insert

  • Method: v1.compute.routers.insert
  • Audit log type: Admin activity
  • Permissions:
    • compute.networks.updatePolicy - ADMIN_WRITE
    • compute.routers.create - ADMIN_WRITE
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="v1.compute.routers.insert"

list

  • Method: v1.compute.routers.list
  • Audit log type: Data access
  • Permissions:
    • compute.routers.list - ADMIN_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="v1.compute.routers.list"

patch

  • Method: v1.compute.routers.patch
  • Audit log type: Admin activity
  • Permissions:
    • compute.networks.updatePolicy - ADMIN_WRITE
    • compute.routers.get - ADMIN_READ
    • compute.routers.update - ADMIN_WRITE
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="v1.compute.routers.patch"

preview

  • Method: v1.compute.routers.preview
  • Audit log type: Data access
  • Permissions:
    • compute.routers.get - ADMIN_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="v1.compute.routers.preview"

update

  • Method: v1.compute.routers.update
  • Audit log type: Admin activity
  • Permissions:
    • compute.networks.updatePolicy - ADMIN_WRITE
    • compute.routers.update - ADMIN_WRITE
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="v1.compute.routers.update"