Method: organizations.locations.orgPolicyViolationsPreviews.create

orgPolicyViolationsPreviews.create creates an OrgPolicyViolationsPreview for the proposed changes in the provided [OrgPolicyViolationsPreview.OrgPolicyOverlay][]. The changes to OrgPolicy are specified by this OrgPolicyOverlay. The resources to scan are inferred from these specified changes.

HTTP request

POST https://policysimulator.googleapis.com/v1beta/{parent=organizations/*/locations/*}/orgPolicyViolationsPreviews

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The organization under which this OrgPolicyViolationsPreview will be created.

Example: organizations/my-example-org/locations/global

Query parameters

Parameters
orgPolicyViolationsPreviewId

string

Optional. An optional user-specified ID for the OrgPolicyViolationsPreview. If not provided, a random ID will be generated.

Request body

The request body contains an instance of OrgPolicyViolationsPreview.

Response body

If successful, the response body contains a newly created instance of Operation.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the parent resource:

  • policysimulator.orgPolicyViolationsPreviews.create

For more information, see the IAM documentation.