---
title: "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyTrackedResources/{policyTrackedResourcesResource}/queryResults"
method: POST
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyTrackedResources/{policyTrackedResourcesResource}/queryResults"
---

# POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyTrackedResources/{policyTrackedResourcesResource}/queryResults

`POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyTrackedResources/{policyTrackedResourcesResource}/queryResults`

Queries policy tracked resources under the resource group.

## Path parameters

- `resourceGroupName` string, required
- `policyTrackedResourcesResource` 'default', required
- `subscriptionId` string, required

## Query parameters

- `$top` integer
- `$filter` string
- `api-version` string, required

## Response `200`

Query results.

- PolicyTrackedResourcesQueryResults — Query results.
  - `value` PolicyTrackedResource[] — Query results.
    - `trackedResourceId` string — The ID of the policy tracked resource.
    - `policyDetails` PolicyDetails — The policy details.
      - `policyDefinitionId` string — The ID of the policy definition.
      - `policyAssignmentId` string — The ID of the policy assignment.
      - `policyAssignmentDisplayName` string — The display name of the policy assignment.
      - `policyAssignmentScope` string — The scope of the policy assignment.
      - `policySetDefinitionId` string — The ID of the policy set definition.
      - `policyDefinitionReferenceId` string — The policy definition reference ID within the policy set definition.
    - `createdBy` TrackedResourceModificationDetails — The details of the policy triggered deployment that created or modified the tracked resource.
      - `policyDetails` PolicyDetails — The policy details.
        - `policyDefinitionId` string — The ID of the policy definition.
        - `policyAssignmentId` string — The ID of the policy assignment.
        - `policyAssignmentDisplayName` string — The display name of the policy assignment.
        - `policyAssignmentScope` string — The scope of the policy assignment.
        - `policySetDefinitionId` string — The ID of the policy set definition.
        - `policyDefinitionReferenceId` string — The policy definition reference ID within the policy set definition.
      - `deploymentId` string — The ID of the deployment that created or modified the tracked resource.
      - `deploymentTime` string, date-time — Timestamp of the deployment that created or modified the tracked resource.
    - `lastModifiedBy` TrackedResourceModificationDetails — The details of the policy triggered deployment that created or modified the tracked resource.
      - `policyDetails` PolicyDetails — The policy details.
        - `policyDefinitionId` string — The ID of the policy definition.
        - `policyAssignmentId` string — The ID of the policy assignment.
        - `policyAssignmentDisplayName` string — The display name of the policy assignment.
        - `policyAssignmentScope` string — The scope of the policy assignment.
        - `policySetDefinitionId` string — The ID of the policy set definition.
        - `policyDefinitionReferenceId` string — The policy definition reference ID within the policy set definition.
      - `deploymentId` string — The ID of the deployment that created or modified the tracked resource.
      - `deploymentTime` string, date-time — Timestamp of the deployment that created or modified the tracked resource.
    - `lastUpdateUtc` string, date-time — Timestamp of the last update to the tracked resource.
  - `nextLink` string — The URL to get the next set of results.

## Other responses

- `default` — Error response describing why the operation failed.

---

[API](https://skmtc.net/azure/apis/policytrackedresourcesclient.md) · [All operations](https://skmtc.net/azure/apis/policytrackedresourcesclient/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/policytrackedresourcesclient/revisions/e36af633b43f/schema)
