{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-policy/json-schema/microsoft-azure-policy-check-restrictions-request-schema.json",
  "title": "CheckRestrictionsRequest",
  "description": "The check policy restrictions parameters describing the resource that is being evaluated.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-policy-subscriptions-api-openapi.yml#/components/schemas/CheckRestrictionsRequest",
  "type": "object",
  "properties": {
    "resourceDetails": {
      "$ref": "#/$defs/CheckRestrictionsResourceDetails",
      "description": "The information about the resource that will be evaluated."
    },
    "pendingFields": {
      "type": "array",
      "description": "The list of fields and values that should be evaluated for potential restrictions.",
      "items": {
        "$ref": "#/$defs/PendingField"
      },
      "x-ms-identifiers": []
    },
    "includeAuditEffect": {
      "type": "boolean",
      "description": "Whether to include policies with the 'audit' effect in the results. Defaults to false.",
      "default": false
    }
  },
  "required": [
    "resourceDetails"
  ],
  "$defs": {
    "CheckRestrictionsResourceDetails": {
      "type": "object",
      "description": "The information about the resource that will be evaluated.",
      "properties": {
        "resourceContent": {
          "description": "The resource content. This should include whatever properties are already known and can be a partial set of all resource properties."
        },
        "apiVersion": {
          "type": "string",
          "description": "The api-version of the resource content."
        },
        "scope": {
          "type": "string",
          "description": "The scope where the resource is being created. For example, if the resource is a child resource this would be the parent resource's resource ID."
        }
      },
      "required": [
        "resourceContent"
      ]
    },
    "PendingField": {
      "type": "object",
      "description": "A field that should be evaluated against Azure Policy to determine restrictions.",
      "properties": {
        "field": {
          "type": "string",
          "description": "The name of the field. This can be a top-level property like 'name' or 'type' or an Azure Policy field alias."
        },
        "values": {
          "type": "array",
          "description": "The list of potential values for the field that should be evaluated against Azure Policy.",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "field"
      ]
    }
  }
}