Virtual Private Cloud audit logging
This document describes audit logging for Virtual Private Cloud. Google Cloud servicesgenerate 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
Notes
The following methods that start withgoogle.cloud.networkconnectivity.v1.PolicyBasedRoutingService use the service namenetworkconnectivity.googleapis.com.
Service name
Virtual Private Cloud audit logs use the service namecompute.googleapis.com.Filter for this service:
protoPayload.serviceName="compute.googleapis.com"
Methods by permission type
For the following API methods, there is also abeta andalpha version available that is not listed here. When thebeta oralpha version of the API is called the method name will startwithbeta oralpha respectively. Each IAM permission has atype property, whose value is an enumthat can be one of four values:ADMIN_READ,ADMIN_WRITE,DATA_READ, orDATA_WRITE. When you call a method,Virtual Private Cloud generates an audit log whose category is dependent on thetype property of the permission required to perform the method.Methods that require an IAM permission with thetype property valueofDATA_READ,DATA_WRITE, orADMIN_READ generateData Access audit logs.Methods that require an IAM permission with thetype property valueofADMIN_WRITE generateAdmin Activity audit logs.
| Permission type | Methods |
|---|---|
ADMIN_READ | v1.compute.firewalls.getv1.compute.firewalls.listv1.compute.networks.getv1.compute.networks.getEffectiveFirewallsv1.compute.networks.listv1.compute.networks.listPeeringRoutesv1.compute.forwardingRules.aggregatedListv1.compute.forwardingRules.getv1.compute.forwardingRules.listv1.compute.routes.getv1.compute.routes.listv1.compute.subnetworks.aggregatedListv1.compute.subnetworks.getv1.compute.subnetworks.getIamPolicyv1.compute.subnetworks.listv1.compute.subnetworks.testIamPermissions |
ADMIN_WRITE | v1.compute.firewalls.deletev1.compute.firewalls.insertv1.compute.firewalls.patchv1.compute.firewalls.updatev1.compute.networks.addPeeringv1.compute.networks.deletev1.compute.networks.insertv1.compute.networks.patchv1.compute.networks.removePeeringv1.compute.networks.switchToCustomModev1.compute.networks.updatePeeringv1.compute.forwardingRules.deletev1.compute.forwardingRules.insertv1.compute.forwardingRules.patchv1.compute.forwardingRules.setLabelsv1.compute.forwardingRules.setTargetv1.compute.routes.deletev1.compute.routes.insertv1.compute.subnetworks.deletev1.compute.subnetworks.expandIpCidrRangev1.compute.subnetworks.insertv1.compute.subnetworks.patchv1.compute.subnetworks.setIamPolicyv1.compute.subnetworks.setPrivateIpGoogleAccessgoogle.cloud.networkconnectivity.v1.PolicyBasedRoutingService.CreatePolicyBasedRoutegoogle.cloud.networkconnectivity.v1.PolicyBasedRoutingService.DeletePolicyBasedRoute |
OTHER | google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.GetPolicyBasedRoute: To enable this log, enableADMIN_READ under the servicenetworkconnectivity.googleapis.com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.ListPolicyBasedRoutes: To enable this log, enableADMIN_READ under the servicenetworkconnectivity.googleapis.com. |
API interface audit logs
For information about how and which permissions are evaluated for each method,see the Identity and Access Management documentation for Virtual Private Cloud.
compute.v1.FirewallsService
The following audit logs are associated with methods belonging tocompute.v1.FirewallsService.
delete
- Method:
v1.compute.firewalls.delete - Audit log type:Admin activity
- Permissions:
compute.firewalls.delete - ADMIN_WRITEcompute.networks.updatePolicy - ADMIN_WRITE
- Method is a long-running or streaming operation:Long-running operation
- Filter for this method:
protoPayload.methodName="v1.compute.firewalls.delete"
get
- Method:
v1.compute.firewalls.get - Audit log type:Data access
- Permissions:
compute.firewalls.get - ADMIN_READ
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="v1.compute.firewalls.get"
insert
- Method:
v1.compute.firewalls.insert - Audit log type:Admin activity
- Permissions:
compute.firewalls.create - ADMIN_WRITEcompute.networks.updatePolicy - ADMIN_WRITE
- Method is a long-running or streaming operation:Long-running operation
- Filter for this method:
protoPayload.methodName="v1.compute.firewalls.insert"
list
- Method:
v1.compute.firewalls.list - Audit log type:Data access
- Permissions:
compute.firewalls.list - ADMIN_READ
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="v1.compute.firewalls.list"
patch
- Method:
v1.compute.firewalls.patch - Audit log type:Admin activity
- Permissions:
compute.firewalls.get - ADMIN_READcompute.firewalls.update - ADMIN_WRITEcompute.networks.updatePolicy - ADMIN_WRITE
- Method is a long-running or streaming operation:Long-running operation
- Filter for this method:
protoPayload.methodName="v1.compute.firewalls.patch"
update
- Method:
v1.compute.firewalls.update - Audit log type:Admin activity
- Permissions:
compute.firewalls.update - ADMIN_WRITEcompute.networks.updatePolicy - ADMIN_WRITE
- Method is a long-running or streaming operation:Long-running operation
- Filter for this method:
protoPayload.methodName="v1.compute.firewalls.update"
compute.v1.NetworksService
The following audit logs are associated with methods belonging tocompute.v1.NetworksService.
addPeering
- Method:
v1.compute.networks.addPeering - Audit log type:Admin activity
- Permissions:
compute.networks.addPeering - ADMIN_WRITE
- Method is a long-running or streaming operation:Long-running operation
- Filter for this method:
protoPayload.methodName="v1.compute.networks.addPeering"
delete
- Method:
v1.compute.networks.delete - Audit log type:Admin activity
- Permissions:
compute.networks.delete - ADMIN_WRITE
- Method is a long-running or streaming operation:Long-running operation
- Filter for this method:
protoPayload.methodName="v1.compute.networks.delete"
get
- Method:
v1.compute.networks.get - Audit log type:Data access
- Permissions:
compute.networks.get - ADMIN_READ
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="v1.compute.networks.get"
getEffectiveFirewalls
- Method:
v1.compute.networks.getEffectiveFirewalls - Audit log type:Data access
- Permissions:
compute.networks.getEffectiveFirewalls - ADMIN_READ
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="v1.compute.networks.getEffectiveFirewalls"
insert
- Method:
v1.compute.networks.insert - Audit log type:Admin activity
- Permissions:
compute.networks.create - ADMIN_WRITE
- Method is a long-running or streaming operation:Long-running operation
- Filter for this method:
protoPayload.methodName="v1.compute.networks.insert"
list
- Method:
v1.compute.networks.list - Audit log type:Data access
- Permissions:
compute.networks.list - ADMIN_READ
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="v1.compute.networks.list"
listPeeringRoutes
- Method:
v1.compute.networks.listPeeringRoutes - Audit log type:Data access
- Permissions:
compute.networks.listPeeringRoutes - ADMIN_READ
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="v1.compute.networks.listPeeringRoutes"
patch
- Method:
v1.compute.networks.patch - Audit log type:Admin activity
- Permissions:
compute.networks.get - ADMIN_READcompute.networks.update - ADMIN_WRITE
- Method is a long-running or streaming operation:Long-running operation
- Filter for this method:
protoPayload.methodName="v1.compute.networks.patch"
removePeering
- Method:
v1.compute.networks.removePeering - Audit log type:Admin activity
- Permissions:
compute.networks.removePeering - ADMIN_WRITE
- Method is a long-running or streaming operation:Long-running operation
- Filter for this method:
protoPayload.methodName="v1.compute.networks.removePeering"
switchToCustomMode
- Method:
v1.compute.networks.switchToCustomMode - Audit log type:Admin activity
- Permissions:
compute.networks.switchToCustomMode - ADMIN_WRITE
- Method is a long-running or streaming operation:Long-running operation
- Filter for this method:
protoPayload.methodName="v1.compute.networks.switchToCustomMode"
updatePeering
- Method:
v1.compute.networks.updatePeering - Audit log type:Admin activity
- Permissions:
compute.networks.updatePeering - ADMIN_WRITE
- Method is a long-running or streaming operation:Long-running operation
- Filter for this method:
protoPayload.methodName="v1.compute.networks.updatePeering"
compute.v1.RegionForwardingRulesService
The following audit logs are associated with methods belonging tocompute.v1.RegionForwardingRulesService.
aggregatedList
- Method:
v1.compute.forwardingRules.aggregatedList - Audit log type:Data access
- Permissions:
compute.forwardingRules.list - ADMIN_READ
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="v1.compute.forwardingRules.aggregatedList"
delete
- Method:
v1.compute.forwardingRules.delete - Audit log type:Admin activity
- Permissions:
compute.forwardingRules.delete - ADMIN_WRITEcompute.forwardingRules.pscDelete - ADMIN_WRITE
- Method is a long-running or streaming operation:Long-running operation
- Filter for this method:
protoPayload.methodName="v1.compute.forwardingRules.delete"
get
- Method:
v1.compute.forwardingRules.get - Audit log type:Data access
- Permissions:
compute.forwardingRules.get - ADMIN_READ
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="v1.compute.forwardingRules.get"
insert
- Method:
v1.compute.forwardingRules.insert - Audit log type:Admin activity
- Permissions: See IAM documentation for permissions.
- Method is a long-running or streaming operation:Long-running operation
- Filter for this method:
protoPayload.methodName="v1.compute.forwardingRules.insert"
list
- Method:
v1.compute.forwardingRules.list - Audit log type:Data access
- Permissions:
compute.forwardingRules.list - ADMIN_READ
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="v1.compute.forwardingRules.list"
patch
- Method:
v1.compute.forwardingRules.patch - Audit log type:Admin activity
- Permissions:
compute.forwardingRules.update - ADMIN_WRITE
- Method is a long-running or streaming operation:Long-running operation
- Filter for this method:
protoPayload.methodName="v1.compute.forwardingRules.patch"
setLabels
- Method:
v1.compute.forwardingRules.setLabels - Audit log type:Admin activity
- Permissions:
compute.forwardingRules.setLabels - ADMIN_WRITE
- Method is a long-running or streaming operation:Long-running operation
- Filter for this method:
protoPayload.methodName="v1.compute.forwardingRules.setLabels"
setTarget
- Method:
v1.compute.forwardingRules.setTarget - Audit log type:Admin activity
- Permissions:
compute.forwardingRules.setTarget - ADMIN_WRITEcompute.regionBackendServices.use - ADMIN_WRITEcompute.regionTargetHttpsProxies.use - ADMIN_WRITE
- Method is a long-running or streaming operation:Long-running operation
- Filter for this method:
protoPayload.methodName="v1.compute.forwardingRules.setTarget"
compute.v1.RoutesService
The following audit logs are associated with methods belonging tocompute.v1.RoutesService.
delete
- Method:
v1.compute.routes.delete - Audit log type:Admin activity
- Permissions:
compute.routes.delete - ADMIN_WRITE
- Method is a long-running or streaming operation:Long-running operation
- Filter for this method:
protoPayload.methodName="v1.compute.routes.delete"
get
- Method:
v1.compute.routes.get - Audit log type:Data access
- Permissions:
compute.routes.get - ADMIN_READ
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="v1.compute.routes.get"
insert
- Method:
v1.compute.routes.insert - Audit log type:Admin activity
- Permissions:
compute.networks.updatePolicy - ADMIN_WRITEcompute.routes.create - ADMIN_WRITE
- Method is a long-running or streaming operation:Long-running operation
- Filter for this method:
protoPayload.methodName="v1.compute.routes.insert"
list
- Method:
v1.compute.routes.list - Audit log type:Data access
- Permissions:
compute.routes.list - ADMIN_READ
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="v1.compute.routes.list"
compute.v1.SubnetworksService
The following audit logs are associated with methods belonging tocompute.v1.SubnetworksService.
aggregatedList
- Method:
v1.compute.subnetworks.aggregatedList - Audit log type:Data access
- Permissions:
compute.subnetworks.list - ADMIN_READ
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="v1.compute.subnetworks.aggregatedList"
delete
- Method:
v1.compute.subnetworks.delete - Audit log type:Admin activity
- Permissions:
compute.subnetworks.delete - ADMIN_WRITE
- Method is a long-running or streaming operation:Long-running operation
- Filter for this method:
protoPayload.methodName="v1.compute.subnetworks.delete"
expandIpCidrRange
- Method:
v1.compute.subnetworks.expandIpCidrRange - Audit log type:Admin activity
- Permissions:
compute.subnetworks.expandIpCidrRange - ADMIN_WRITE
- Method is a long-running or streaming operation:Long-running operation
- Filter for this method:
protoPayload.methodName="v1.compute.subnetworks.expandIpCidrRange"
get
- Method:
v1.compute.subnetworks.get - Audit log type:Data access
- Permissions:
compute.subnetworks.get - ADMIN_READ
- Method is a long-running or streaming operation:Long-running operation
- Filter for this method:
protoPayload.methodName="v1.compute.subnetworks.get"
getIamPolicy
- Method:
v1.compute.subnetworks.getIamPolicy - Audit log type:Data access
- Permissions:
compute.subnetworks.getIamPolicy - ADMIN_READ
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="v1.compute.subnetworks.getIamPolicy"
insert
- Method:
v1.compute.subnetworks.insert - Audit log type:Admin activity
- Permissions:
compute.networks.updatePolicy - ADMIN_WRITEcompute.subnetworks.create - ADMIN_WRITE
- Method is a long-running or streaming operation:Long-running operation
- Filter for this method:
protoPayload.methodName="v1.compute.subnetworks.insert"
list
- Method:
v1.compute.subnetworks.list - Audit log type:Data access
- Permissions:
compute.subnetworks.list - ADMIN_READ
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="v1.compute.subnetworks.list"
patch
- Method:
v1.compute.subnetworks.patch - Audit log type:Admin activity
- Permissions:
compute.subnetworks.get - ADMIN_READcompute.subnetworks.update - ADMIN_WRITE
- Method is a long-running or streaming operation:Long-running operation
- Filter for this method:
protoPayload.methodName="v1.compute.subnetworks.patch"
setIamPolicy
- Method:
v1.compute.subnetworks.setIamPolicy - Audit log type:Admin activity
- Permissions:
compute.subnetworks.setIamPolicy - ADMIN_WRITE
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="v1.compute.subnetworks.setIamPolicy"
setPrivateIpGoogleAccess
- Method:
v1.compute.subnetworks.setPrivateIpGoogleAccess - Audit log type:Admin activity
- Permissions:
compute.subnetworks.setPrivateIpGoogleAccess - ADMIN_WRITE
- Method is a long-running or streaming operation:Long-running operation
- Filter for this method:
protoPayload.methodName="v1.compute.subnetworks.setPrivateIpGoogleAccess"
testIamPermissions
- Method:
v1.compute.subnetworks.testIamPermissions - Audit log type:Data access
- Permissions:
compute.subnetworks.list - ADMIN_READ
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="v1.compute.subnetworks.testIamPermissions"
google.cloud.networkconnectivity.v1.PolicyBasedRoutingService
The following audit logs are associated with methods belonging togoogle.cloud.networkconnectivity.v1.PolicyBasedRoutingService.
CreatePolicyBasedRoute
- Method:
google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.CreatePolicyBasedRoute - Audit log type:Admin activity
- Permissions:
networkconnectivity.policyBasedRoutes.create - ADMIN_WRITE
- Method is a long-running or streaming operation:Long-running operation
- Filter for this method:
protoPayload.methodName="google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.CreatePolicyBasedRoute"
DeletePolicyBasedRoute
- Method:
google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.DeletePolicyBasedRoute - Audit log type:Admin activity
- Permissions:
networkconnectivity.policyBasedRoutes.delete - ADMIN_WRITE
- Method is a long-running or streaming operation:Long-running operation
- Filter for this method:
protoPayload.methodName="google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.DeletePolicyBasedRoute"
GetPolicyBasedRoute
- Method:
google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.GetPolicyBasedRoute - Audit log type:Data access
- Permissions:
networkconnectivity.policyBasedRoutes.get - ADMIN_READ
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.GetPolicyBasedRoute"
ListPolicyBasedRoutes
- Method:
google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.ListPolicyBasedRoutes - Audit log type:Data access
- Permissions:
networkconnectivity.policyBasedRoutes.list - ADMIN_READ
- Method is a long-running or streaming operation:No.
- Filter for this method:
protoPayload.methodName="google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.ListPolicyBasedRoutes"
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-02-18 UTC.