Google

Policy Simulator API

Policy Simulator is a collection of endpoints for creating, running, and viewing a Replay. A Replay is a type of simulation that lets you see how your…

Developer tools#openapi#analytics#media

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

Policy Simulator is a collection of endpoints for creating, running, and viewing a Replay. A Replay is a type of simulation that lets you see how your members' access to resources might change if you changed your IAM policy. During a 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 members' access might change under the proposed policy.

Endpoints 6

projects.locations.replays.operations

  • GETLists operations that match the specified filter in the request/v1/:name?filter=string&pageSize=0&pageToken=string&returnPartialSuccess=trueLists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.

projects.locations.replays

  • POSTCreates and starts a Replay using the given ReplayConfig./v1/:parent/replaysCreates and starts a Replay using the given ReplayConfig.

projects.locations.replays.results

  • GETLists the results of running a Replay./v1/:parent/results?pageSize=0&pageToken=stringLists the results of running a Replay.

organizations.locations.orgPolicyViolationsPreviews

  • GETListOrgPolicyViolationsPreviews lists each OrgPolicyViolationsPreview in an organization/v1/:parent/orgPolicyViolationsPreviews?pageSize=0&pageToken=stringListOrgPolicyViolationsPreviews lists each OrgPolicyViolationsPreview in an organization. Each OrgPolicyViolationsPreview is available for at least 7 days.
  • POSTCreateOrgPolicyViolationsPreview creates an OrgPolicyViolationsPreview for the proposed changes in the provided…/v1/:parent/orgPolicyViolationsPreviews?orgPolicyViolationsPreviewId=stringCreateOrgPolicyViolationsPreview creates an OrgPolicyViolationsPreview for the proposed changes in the provided OrgPolicyViolationsPreview.OrgPolicyOverlay.…

organizations.locations.orgPolicyViolationsPreviews.orgPolicyViolations

  • GETListOrgPolicyViolations lists the OrgPolicyViolations that are present in an OrgPolicyViolationsPreview./v1/:parent/orgPolicyViolations?pageSize=0&pageToken=stringListOrgPolicyViolations lists the OrgPolicyViolations that are present in an OrgPolicyViolationsPreview.

API details

Base URL
https://policysimulator.googleapis.com
Authentication
OAuth 2.0 (authorization code flow) with 1 scope
An API key in the key query parameter
Operations
6 operations on 5 pathsGET 4POST 2
Main resources
organizations.locations.orgPolicyViolationsPreviews 2organizations.locations.orgPolicyViolationsPreviews.orgPoli… 1projects.locations.replays 1projects.locations.replays.operations 1projects.locations.replays.results 1
Response formats
application/json
Description format
Google API Discovery, API version v1

How to test the Policy Simulator API in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the Policy Simulator API collection, without the publisher's secrets.
  3. Add your credentialsThis API uses OAuth 2.0 (authorization code flow) with 1 scope. Add yours in the collection's variables or an environment; the requests already reference it.
  4. Send a requestPick an endpoint, for example “Lists operations that match the specified filter in the request” (GET /v1/:name?filter=string&pageSize=0&pageToken=string&returnPartialSuccess=true), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the Policy Simulator API?

Policy Simulator is a collection of endpoints for creating, running, and viewing a Replay. A Replay is a type of simulation that lets you see how your… It is listed under Developer tools and has 6 endpoints.

Who publishes the Policy Simulator API?

It is listed from Google's public API description (an OpenAPI document), not published by Google on Swastik Codes. Anyone who controls googleapis.com can claim the profile by adding a DNS TXT record.

What is the base URL of the Policy Simulator API?

Requests go to https://policysimulator.googleapis.com. Endpoint paths are added to this base URL.

How do I authenticate with the Policy Simulator API?

It accepts 2 methods: OAuth 2.0 (authorization code flow) with 1 scope; an API key in the key query parameter.

How many endpoints does the Policy Simulator API have?

6 operations on 5 paths (4 GET, 2 POST). The largest groups are organizations.locations.orgPolicyViolationsPreviews, organizations.locations.orgPolicyViolationsPreviews.orgPoli…, projects.locations.replays, projects.locations.replays.operations.

Is forking the Policy Simulator API free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.