Policy Simulator audit logging

This document describes audit logging for Policy Simulator. 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

Policy Simulator audit logs use the service name policysimulator.googleapis.com. Filter for this service:

    protoPayload.serviceName="policysimulator.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, Policy Simulator 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.policysimulator.v1.Simulator.GetReplay
google.cloud.policysimulator.v1.Simulator.ListReplayResults
google.cloud.policysimulator.v1alpha.Simulator.GetReplay
google.cloud.policysimulator.v1alpha.Simulator.ListReplayResults
google.cloud.policysimulator.v1beta.OrgPolicyViolationsPreviewService.GetOrgPolicyViolationsPreview
google.cloud.policysimulator.v1beta.OrgPolicyViolationsPreviewService.ListOrgPolicyViolations
google.cloud.policysimulator.v1beta.OrgPolicyViolationsPreviewService.ListOrgPolicyViolationsPreviews
google.cloud.policysimulator.v1beta.Simulator.GetReplay
google.cloud.policysimulator.v1beta.Simulator.ListReplayResults
ADMIN_WRITE google.cloud.policysimulator.v1.Simulator.CreateReplay
google.cloud.policysimulator.v1alpha.OrgPolicyViolationsPreviewService.GenerateOrgPolicyViolationsPreview
google.cloud.policysimulator.v1alpha.Simulator.CreateReplay
google.cloud.policysimulator.v1beta.OrgPolicyViolationsPreviewService.CreateOrgPolicyViolationsPreview
google.cloud.policysimulator.v1beta.OrgPolicyViolationsPreviewService.GenerateOrgPolicyViolationsPreview
google.cloud.policysimulator.v1beta.Simulator.CreateReplay

Audit logs for each API interface

google.cloud.policysimulator.v1.Simulator

The following audit logs are associated with methods belonging to google.cloud.policysimulator.v1.Simulator.

CreateReplay

  • Method: google.cloud.policysimulator.v1.Simulator.CreateReplay
  • Audit log type: Admin activity
  • Permissions:
    • policysimulator.replays.create - ADMIN_WRITE
  • Method is a long-running or streaming operation: Long-running operation
  • Filter for this method: protoPayload.methodName="google.cloud.policysimulator.v1.Simulator.CreateReplay"

GetReplay

  • Method: google.cloud.policysimulator.v1.Simulator.GetReplay
  • Audit log type: Data access
  • Permissions:
    • policysimulator.replays.get - ADMIN_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.policysimulator.v1.Simulator.GetReplay"

ListReplayResults

  • Method: google.cloud.policysimulator.v1.Simulator.ListReplayResults
  • Audit log type: Data access
  • Permissions:
    • policysimulator.replayResults.list - ADMIN_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.policysimulator.v1.Simulator.ListReplayResults"

google.cloud.policysimulator.v1alpha.OrgPolicyViolationsPreviewService

The following audit logs are associated with methods belonging to google.cloud.policysimulator.v1alpha.OrgPolicyViolationsPreviewService.

GenerateOrgPolicyViolationsPreview

  • Method: google.cloud.policysimulator.v1alpha.OrgPolicyViolationsPreviewService.GenerateOrgPolicyViolationsPreview
  • Audit log type: Admin activity
  • Permissions:
    • policysimulator.orgPolicyViolationsPreviews.create - ADMIN_WRITE
  • Method is a long-running or streaming operation: Long-running operation
  • Filter for this method: protoPayload.methodName="google.cloud.policysimulator.v1alpha.OrgPolicyViolationsPreviewService.GenerateOrgPolicyViolationsPreview"

google.cloud.policysimulator.v1alpha.Simulator

The following audit logs are associated with methods belonging to google.cloud.policysimulator.v1alpha.Simulator.

CreateReplay

  • Method: google.cloud.policysimulator.v1alpha.Simulator.CreateReplay
  • Audit log type: Admin activity
  • Permissions:
    • policysimulator.replays.create - ADMIN_WRITE
  • Method is a long-running or streaming operation: Long-running operation
  • Filter for this method: protoPayload.methodName="google.cloud.policysimulator.v1alpha.Simulator.CreateReplay"

GetReplay

  • Method: google.cloud.policysimulator.v1alpha.Simulator.GetReplay
  • Audit log type: Data access
  • Permissions:
    • policysimulator.replays.get - ADMIN_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.policysimulator.v1alpha.Simulator.GetReplay"

ListReplayResults

  • Method: google.cloud.policysimulator.v1alpha.Simulator.ListReplayResults
  • Audit log type: Data access
  • Permissions:
    • policysimulator.replayResults.list - ADMIN_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.policysimulator.v1alpha.Simulator.ListReplayResults"

google.cloud.policysimulator.v1beta.OrgPolicyViolationsPreviewService

The following audit logs are associated with methods belonging to google.cloud.policysimulator.v1beta.OrgPolicyViolationsPreviewService.

CreateOrgPolicyViolationsPreview

  • Method: google.cloud.policysimulator.v1beta.OrgPolicyViolationsPreviewService.CreateOrgPolicyViolationsPreview
  • Audit log type: Admin activity
  • Permissions:
    • policysimulator.orgPolicyViolationsPreviews.create - ADMIN_WRITE
  • Method is a long-running or streaming operation: Long-running operation
  • Filter for this method: protoPayload.methodName="google.cloud.policysimulator.v1beta.OrgPolicyViolationsPreviewService.CreateOrgPolicyViolationsPreview"

GenerateOrgPolicyViolationsPreview

  • Method: google.cloud.policysimulator.v1beta.OrgPolicyViolationsPreviewService.GenerateOrgPolicyViolationsPreview
  • Audit log type: Admin activity
  • Permissions:
    • policysimulator.orgPolicyViolationsPreviews.create - ADMIN_WRITE
  • Method is a long-running or streaming operation: Long-running operation
  • Filter for this method: protoPayload.methodName="google.cloud.policysimulator.v1beta.OrgPolicyViolationsPreviewService.GenerateOrgPolicyViolationsPreview"

GetOrgPolicyViolationsPreview

  • Method: google.cloud.policysimulator.v1beta.OrgPolicyViolationsPreviewService.GetOrgPolicyViolationsPreview
  • Audit log type: Data access
  • Permissions:
    • policysimulator.orgPolicyViolationsPreviews.get - ADMIN_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.policysimulator.v1beta.OrgPolicyViolationsPreviewService.GetOrgPolicyViolationsPreview"

ListOrgPolicyViolations

  • Method: google.cloud.policysimulator.v1beta.OrgPolicyViolationsPreviewService.ListOrgPolicyViolations
  • Audit log type: Data access
  • Permissions:
    • policysimulator.orgPolicyViolations.list - ADMIN_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.policysimulator.v1beta.OrgPolicyViolationsPreviewService.ListOrgPolicyViolations"

ListOrgPolicyViolationsPreviews

  • Method: google.cloud.policysimulator.v1beta.OrgPolicyViolationsPreviewService.ListOrgPolicyViolationsPreviews
  • Audit log type: Data access
  • Permissions:
    • policysimulator.orgPolicyViolationsPreviews.list - ADMIN_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.policysimulator.v1beta.OrgPolicyViolationsPreviewService.ListOrgPolicyViolationsPreviews"

google.cloud.policysimulator.v1beta.Simulator

The following audit logs are associated with methods belonging to google.cloud.policysimulator.v1beta.Simulator.

CreateReplay

  • Method: google.cloud.policysimulator.v1beta.Simulator.CreateReplay
  • Audit log type: Admin activity
  • Permissions:
    • policysimulator.replays.create - ADMIN_WRITE
  • Method is a long-running or streaming operation: Long-running operation
  • Filter for this method: protoPayload.methodName="google.cloud.policysimulator.v1beta.Simulator.CreateReplay"

GetReplay

  • Method: google.cloud.policysimulator.v1beta.Simulator.GetReplay
  • Audit log type: Data access
  • Permissions:
    • policysimulator.replays.get - ADMIN_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.policysimulator.v1beta.Simulator.GetReplay"

ListReplayResults

  • Method: google.cloud.policysimulator.v1beta.Simulator.ListReplayResults
  • Audit log type: Data access
  • Permissions:
    • policysimulator.replayResults.list - ADMIN_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.policysimulator.v1beta.Simulator.ListReplayResults"

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.policysimulator.v1alpha.Simulator.ListReplays
  • google.cloud.policysimulator.v1beta.Simulator.ListReplays
  • google.longrunning.Operations.GetOperation
  • google.longrunning.Operations.ListOperations