Azure Policy · Schema
PolicyStatesQueryResults
Query results.
ComplianceGovernancePolicyResource Management
Properties
| Name | Type | Description |
|---|---|---|
| @odata.context | string | OData context string; used by OData clients to resolve type information based on metadata. |
| @odata.count | integer | OData entity count; represents the number of policy state records returned. |
| @odata.nextLink | string | Odata next link; URL to get the next set of results. |
| value | array | Query results. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/microsoft-azure-policy/json-schema/microsoft-azure-policy-policy-states-query-results-schema.json",
"title": "PolicyStatesQueryResults",
"description": "Query results.",
"x-generated": "2026-11-12",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/microsoft-azure-policy-providers-api-openapi.yml#/components/schemas/PolicyStatesQueryResults",
"type": "object",
"properties": {
"@odata.context": {
"type": "string",
"description": "OData context string; used by OData clients to resolve type information based on metadata."
},
"@odata.count": {
"type": "integer",
"format": "int32",
"description": "OData entity count; represents the number of policy state records returned.",
"minimum": 0
},
"@odata.nextLink": {
"type": "string",
"description": "Odata next link; URL to get the next set of results."
},
"value": {
"type": "array",
"description": "Query results.",
"items": {
"$ref": "#/$defs/PolicyState"
},
"x-ms-identifiers": []
}
},
"$defs": {
"ComponentStateDetails": {
"type": "object",
"description": "Component state details.",
"properties": {
"id": {
"type": "string",
"description": "Component Id."
},
"type": {
"type": "string",
"description": "Component type."
},
"name": {
"type": "string",
"description": "Component name."
},
"timestamp": {
"type": "string",
"format": "date-time",
"description": "Component compliance evaluation timestamp."
},
"complianceState": {
"type": "string",
"description": "Component compliance state."
}
},
"additionalProperties": {}
},
"ExpressionEvaluationDetails": {
"type": "object",
"description": "Evaluation details of policy language expressions.",
"properties": {
"result": {
"type": "string",
"description": "Evaluation result."
},
"expression": {
"type": "string",
"description": "Expression evaluated."
},
"expressionKind": {
"type": "string",
"description": "The kind of expression that was evaluated.",
"readOnly": true
},
"path": {
"type": "string",
"description": "Property path if the expression is a field or an alias."
},
"expressionValue": {
"description": "Value of the expression."
},
"targetValue": {
"description": "Target value to be compared with the expression value."
},
"operator": {
"type": "string",
"description": "Operator to compare the expression value and the target value."
}
}
},
"IfNotExistsEvaluationDetails": {
"type": "object",
"description": "Evaluation details of IfNotExists effect.",
"properties": {
"resourceId": {
"type": "string",
"description": "ID of the last evaluated resource for IfNotExists effect."
},
"totalResources": {
"type": "integer",
"format": "int32",
"description": "Total number of resources to which the existence condition is applicable."
}
}
},
"PolicyEvaluationDetails": {
"type": "object",
"description": "Policy evaluation details.",
"properties": {
"evaluatedExpressions": {
"type": "array",
"description": "Details of the evaluated expressions.",
"items": {
"$ref": "#/$defs/ExpressionEvaluationDetails"
},
"x-ms-identifiers": []
},
"ifNotExistsDetails": {
"$ref": "#/$defs/IfNotExistsEvaluationDetails",
"description": "Evaluation details of IfNotExists effect."
}
}
},
"PolicyState": {
"type": "object",
"description": "Policy state record.",
"properties": {
"@odata.id": {
"type": "string",
"description": "OData entity ID; always set to null since policy state records do not have an entity ID."
},
"@odata.context": {
"type": "string",
"description": "OData context string; used by OData clients to resolve type information based on metadata."
},
"timestamp": {
"type": "string",
"format": "date-time",
"description": "Timestamp for the policy state record."
},
"resourceId": {
"type": "string",
"description": "Resource ID."
},
"policyAssignmentId": {
"type": "string",
"description": "Policy assignment ID."
},
"policyDefinitionId": {
"type": "string",
"description": "Policy definition ID."
},
"effectiveParameters": {
"type": "string",
"description": "Effective parameters for the policy assignment."
},
"isCompliant": {
"type": "boolean",
"description": "Flag which states whether the resource is compliant against the policy assignment it was evaluated against. This property is deprecated; please use ComplianceState instead."
},
"subscriptionId": {
"type": "string",
"description": "Subscription ID."
},
"resourceType": {
"type": "string",
"description": "Resource type."
},
"resourceLocation": {
"type": "string",
"description": "Resource location."
},
"resourceGroup": {
"type": "string",
"description": "Resource group name."
},
"resourceTags": {
"type": "string",
"description": "List of resource tags."
},
"policyAssignmentName": {
"type": "string",
"description": "Policy assignment name."
},
"policyAssignmentOwner": {
"type": "string",
"description": "Policy assignment owner."
},
"policyAssignmentParameters": {
"type": "string",
"description": "Policy assignment parameters."
},
"policyAssignmentScope": {
"type": "string",
"description": "Policy assignment scope."
},
"policyDefinitionName": {
"type": "string",
"description": "Policy definition name."
},
"policyDefinitionAction": {
"type": "string",
"description": "Policy definition action, i.e. effect."
},
"policyDefinitionCategory": {
"type": "string",
"description": "Policy definition category."
},
"policySetDefinitionId": {
"type": "string",
"description": "Policy set definition ID, if the policy assignment is for a policy set."
},
"policySetDefinitionName": {
"type": "string",
"description": "Policy set definition name, if the policy assignment is for a policy set."
},
"policySetDefinitionOwner": {
"type": "string",
"description": "Policy set definition owner, if the policy assignment is for a policy set."
},
"policySetDefinitionCategory": {
"type": "string",
"description": "Policy set definition category, if the policy assignment is for a policy set."
},
"policySetDefinitionParameters": {
"type": "string",
"description": "Policy set definition parameters, if the policy assignment is for a policy set."
},
"managementGroupIds": {
"type": "string",
"description": "Comma separated list of management group IDs, which represent the hierarchy of the management groups the resource is under."
},
"policyDefinitionReferenceId": {
"type": "string",
"description": "Reference ID for the policy definition inside the policy set, if the policy assignment is for a policy set."
},
"complianceState": {
"type": "string",
"description": "Compliance state of the resource."
},
"policyEvaluationDetails": {
"$ref": "#/$defs/PolicyEvaluationDetails",
"description": "Policy evaluation details."
},
"policyDefinitionGroupNames": {
"type": "array",
"description": "Policy definition group names.",
"items": {
"type": "string"
}
},
"components": {
"type": "array",
"description": "Components state compliance records populated only when URL contains $expand=components clause.",
"items": {
"$ref": "#/$defs/ComponentStateDetails"
}
},
"policyDefinitionVersion": {
"type": "string",
"description": "Evaluated policy definition version.",
"readOnly": true
},
"policySetDefinitionVersion": {
"type": "string",
"description": "Evaluated policy set definition version.",
"readOnly": true
},
"policyAssignmentVersion": {
"type": "string",
"description": "Evaluated policy assignment version.",
"readOnly": true
}
},
"additionalProperties": {}
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/microsoft-azure-policy-policy-states-query-results"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.