Reference documentation and code samples for the Policy Simulator v1 API class Simulator.
Policy Simulator API service.
Policy Simulator is a collection of endpoints for creating, running, and
viewing a [Replay][google.cloud.policysimulator.v1.Replay]. A
[Replay][google.cloud.policysimulator.v1.Replay] is a type of simulation that
lets you see how your principals' access to resources might change if you
changed your IAM policy.
During a [Replay][google.cloud.policysimulator.v1.Replay], Policy Simulator
re-evaluates, or replays, past access attempts under both the current policy
and your proposed policy, and compares those results to determine how your
principals' access might change under the proposed policy.
public static void BindService(ServiceBinderBase serviceBinder, Simulator.SimulatorBase serviceImpl)
Register service method with a service binder with or without implementation. Useful when customizing the service binding logic.
Note: this method is part of an experimental API that can change or be removed without any prior notice.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe Policy Simulator API allows users to create, run, and view replays to understand how changes to IAM policies might affect principals' access.\u003c/p\u003e\n"],["\u003cp\u003eReplays in Policy Simulator re-evaluate past access attempts under current and proposed policies to compare the potential impact of policy changes.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSimulator\u003c/code\u003e class within the \u003ccode\u003eGoogle.Cloud.PolicySimulator.V1\u003c/code\u003e namespace is part of the Policy Simulator v1 API and is available in version 1.0.0, 1.1.0, and 1.2.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBindService\u003c/code\u003e method registers server-side handling logic for the \u003ccode\u003eSimulator\u003c/code\u003e service, allowing it to be incorporated into a server environment.\u003c/p\u003e\n"]]],[],null,[]]