{ "uuid": "06f02fb5-ab32-460b-9241-7cd597070f0f", "lastMigration": 29, "name": "PolicyStatesClient", "endpointPrefix": "", "latency": 0, "port": 3000, "hostname": "", "routes": [ { "uuid": "d47c8754-8e35-4132-8990-05a73077f5c2", "documentation": "Lists available operations.", "method": "get", "endpoint": "providers/Microsoft.PolicyInsights/operations", "responses": [ { "uuid": "d3423e67-5853-4f83-8059-7e040a8c19ee", "body": "{\n \"@odata.count\": {{faker 'number.int' max=99999}},\n \"value\": [\n {\n \"display\": {\n \"description\": \"\",\n \"operation\": \"\",\n \"provider\": \"\",\n \"resource\": \"\"\n },\n \"name\": \"\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "List of available operations.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "141ff0b5-9b95-4e6b-8385-dcdce2c837a9", "body": "{\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n}", "latency": 0, "statusCode": 200, "label": "Error response describing why the operation failed.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "891b8eaa-bfa5-4908-bcfd-ec7659b35de9", "documentation": "Queries policy states for the resources under the management group.", "method": "post", "endpoint": "providers/:managementGroupsNamespace/managementGroups/:managementGroupName/providers/Microsoft.PolicyInsights/policyStates/:policyStatesResource/queryResults", "responses": [ { "uuid": "43565029-1479-4a39-993f-417a7436bf2a", "body": "{\n \"@odata.context\": \"\",\n \"@odata.count\": {{faker 'number.int' max=99999}},\n \"value\": [\n {\n \"@odata.context\": \"\",\n \"@odata.id\": \"\",\n \"complianceState\": \"\",\n \"effectiveParameters\": \"\",\n \"isCompliant\": {{faker 'datatype.boolean'}},\n \"managementGroupIds\": \"\",\n \"policyAssignmentId\": \"\",\n \"policyAssignmentName\": \"\",\n \"policyAssignmentOwner\": \"\",\n \"policyAssignmentParameters\": \"\",\n \"policyAssignmentScope\": \"\",\n \"policyDefinitionAction\": \"\",\n \"policyDefinitionCategory\": \"\",\n \"policyDefinitionGroupNames\": [\n \"\"\n ],\n \"policyDefinitionId\": \"\",\n \"policyDefinitionName\": \"\",\n \"policyDefinitionReferenceId\": \"\",\n \"policyEvaluationDetails\": {\n \"evaluatedExpressions\": [\n {\n \"expression\": \"\",\n \"expressionValue\": {},\n \"operator\": \"\",\n \"path\": \"\",\n \"result\": \"\",\n \"targetValue\": {}\n }\n ],\n \"ifNotExistsDetails\": {\n \"resourceId\": \"\",\n \"totalResources\": {{faker 'number.int' max=99999}}\n }\n },\n \"policySetDefinitionCategory\": \"\",\n \"policySetDefinitionId\": \"\",\n \"policySetDefinitionName\": \"\",\n \"policySetDefinitionOwner\": \"\",\n \"policySetDefinitionParameters\": \"\",\n \"resourceGroup\": \"\",\n \"resourceId\": \"\",\n \"resourceLocation\": \"\",\n \"resourceTags\": \"\",\n \"resourceType\": \"\",\n \"subscriptionId\": \"\",\n \"timestamp\": \"{{faker 'date.recent' 365}}\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "Query results.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "52a6951e-4568-4a2d-90fb-b0ed82367899", "body": "{\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n}", "latency": 0, "statusCode": 200, "label": "Error response describing why the operation failed.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "6d925b14-96ed-4310-a016-01647916be32", "documentation": "Summarizes policy states for the resources under the management group.", "method": "post", "endpoint": "providers/:managementGroupsNamespace/managementGroups/:managementGroupName/providers/Microsoft.PolicyInsights/policyStates/:policyStatesSummaryResource/summarize", "responses": [ { "uuid": "340fd96f-ee97-41a9-96ee-b81407a981c5", "body": "{\n \"@odata.context\": \"\",\n \"@odata.count\": {{faker 'number.int' max=99999}},\n \"value\": [\n {\n \"@odata.context\": \"\",\n \"@odata.id\": \"\",\n \"policyAssignments\": [\n {\n \"policyAssignmentId\": \"\",\n \"policyDefinitions\": [\n {\n \"effect\": \"\",\n \"policyDefinitionGroupNames\": [\n \"\"\n ],\n \"policyDefinitionId\": \"\",\n \"policyDefinitionReferenceId\": \"\",\n \"results\": {\n \"nonCompliantPolicies\": {{faker 'number.int' max=99999}},\n \"nonCompliantResources\": {{faker 'number.int' max=99999}},\n \"policyDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"policyGroupDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"queryResultsUri\": \"\",\n \"resourceDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ]\n }\n }\n ],\n \"policyGroups\": [\n {\n \"policyGroupName\": \"\",\n \"results\": {\n \"nonCompliantPolicies\": {{faker 'number.int' max=99999}},\n \"nonCompliantResources\": {{faker 'number.int' max=99999}},\n \"policyDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"policyGroupDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"queryResultsUri\": \"\",\n \"resourceDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ]\n }\n }\n ],\n \"policySetDefinitionId\": \"\",\n \"results\": {\n \"nonCompliantPolicies\": {{faker 'number.int' max=99999}},\n \"nonCompliantResources\": {{faker 'number.int' max=99999}},\n \"policyDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"policyGroupDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"queryResultsUri\": \"\",\n \"resourceDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ]\n }\n }\n ],\n \"results\": {\n \"nonCompliantPolicies\": {{faker 'number.int' max=99999}},\n \"nonCompliantResources\": {{faker 'number.int' max=99999}},\n \"policyDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"policyGroupDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"queryResultsUri\": \"\",\n \"resourceDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ]\n }\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "Summarize results.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "4ab234fe-a91d-4c88-899a-5c8153b342e5", "body": "{\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n}", "latency": 0, "statusCode": 200, "label": "Error response describing why the operation failed.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "10d205a6-674b-47c9-a4ba-641387e51f3b", "documentation": "Triggers a policy evaluation scan for all the resources under the subscription", "method": "post", "endpoint": "subscriptions/:subscriptionId/providers/Microsoft.PolicyInsights/policyStates/latest/triggerEvaluation", "responses": [ { "uuid": "eb9c81f6-1188-4316-8c7f-711d4ebda9be", "body": "", "latency": 0, "statusCode": 200, "label": "The scan is done.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "fc4c8785-880f-47b8-884e-568d4f41919a", "body": "", "latency": 0, "statusCode": 202, "label": "The scan was successfully triggered.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "9a5cde26-4120-42e1-91da-b3f811271c00", "body": "{\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n}", "latency": 0, "statusCode": 200, "label": "Error response describing why the operation failed.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "626d1a0f-ac9e-426f-97b6-5d6b2e528505", "documentation": "Queries policy states for the resources under the subscription.", "method": "post", "endpoint": "subscriptions/:subscriptionId/providers/Microsoft.PolicyInsights/policyStates/:policyStatesResource/queryResults", "responses": [ { "uuid": "2d6a1795-97e9-4617-8434-e4de991675a3", "body": "{\n \"@odata.context\": \"\",\n \"@odata.count\": {{faker 'number.int' max=99999}},\n \"value\": [\n {\n \"@odata.context\": \"\",\n \"@odata.id\": \"\",\n \"complianceState\": \"\",\n \"effectiveParameters\": \"\",\n \"isCompliant\": {{faker 'datatype.boolean'}},\n \"managementGroupIds\": \"\",\n \"policyAssignmentId\": \"\",\n \"policyAssignmentName\": \"\",\n \"policyAssignmentOwner\": \"\",\n \"policyAssignmentParameters\": \"\",\n \"policyAssignmentScope\": \"\",\n \"policyDefinitionAction\": \"\",\n \"policyDefinitionCategory\": \"\",\n \"policyDefinitionGroupNames\": [\n \"\"\n ],\n \"policyDefinitionId\": \"\",\n \"policyDefinitionName\": \"\",\n \"policyDefinitionReferenceId\": \"\",\n \"policyEvaluationDetails\": {\n \"evaluatedExpressions\": [\n {\n \"expression\": \"\",\n \"expressionValue\": {},\n \"operator\": \"\",\n \"path\": \"\",\n \"result\": \"\",\n \"targetValue\": {}\n }\n ],\n \"ifNotExistsDetails\": {\n \"resourceId\": \"\",\n \"totalResources\": {{faker 'number.int' max=99999}}\n }\n },\n \"policySetDefinitionCategory\": \"\",\n \"policySetDefinitionId\": \"\",\n \"policySetDefinitionName\": \"\",\n \"policySetDefinitionOwner\": \"\",\n \"policySetDefinitionParameters\": \"\",\n \"resourceGroup\": \"\",\n \"resourceId\": \"\",\n \"resourceLocation\": \"\",\n \"resourceTags\": \"\",\n \"resourceType\": \"\",\n \"subscriptionId\": \"\",\n \"timestamp\": \"{{faker 'date.recent' 365}}\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "Query results.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "79d206cd-0f3b-4380-9b6b-ddc8013e298b", "body": "{\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n}", "latency": 0, "statusCode": 200, "label": "Error response describing why the operation failed.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "034fe83a-c1a3-4014-a02c-a852595f9131", "documentation": "Summarizes policy states for the resources under the subscription.", "method": "post", "endpoint": "subscriptions/:subscriptionId/providers/Microsoft.PolicyInsights/policyStates/:policyStatesSummaryResource/summarize", "responses": [ { "uuid": "0a8e20cd-5a8d-43d7-931e-b4615e45d95f", "body": "{\n \"@odata.context\": \"\",\n \"@odata.count\": {{faker 'number.int' max=99999}},\n \"value\": [\n {\n \"@odata.context\": \"\",\n \"@odata.id\": \"\",\n \"policyAssignments\": [\n {\n \"policyAssignmentId\": \"\",\n \"policyDefinitions\": [\n {\n \"effect\": \"\",\n \"policyDefinitionGroupNames\": [\n \"\"\n ],\n \"policyDefinitionId\": \"\",\n \"policyDefinitionReferenceId\": \"\",\n \"results\": {\n \"nonCompliantPolicies\": {{faker 'number.int' max=99999}},\n \"nonCompliantResources\": {{faker 'number.int' max=99999}},\n \"policyDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"policyGroupDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"queryResultsUri\": \"\",\n \"resourceDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ]\n }\n }\n ],\n \"policyGroups\": [\n {\n \"policyGroupName\": \"\",\n \"results\": {\n \"nonCompliantPolicies\": {{faker 'number.int' max=99999}},\n \"nonCompliantResources\": {{faker 'number.int' max=99999}},\n \"policyDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"policyGroupDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"queryResultsUri\": \"\",\n \"resourceDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ]\n }\n }\n ],\n \"policySetDefinitionId\": \"\",\n \"results\": {\n \"nonCompliantPolicies\": {{faker 'number.int' max=99999}},\n \"nonCompliantResources\": {{faker 'number.int' max=99999}},\n \"policyDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"policyGroupDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"queryResultsUri\": \"\",\n \"resourceDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ]\n }\n }\n ],\n \"results\": {\n \"nonCompliantPolicies\": {{faker 'number.int' max=99999}},\n \"nonCompliantResources\": {{faker 'number.int' max=99999}},\n \"policyDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"policyGroupDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"queryResultsUri\": \"\",\n \"resourceDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ]\n }\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "Summarize results.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "a0656581-5762-449b-86fc-7b08f431a2b8", "body": "{\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n}", "latency": 0, "statusCode": 200, "label": "Error response describing why the operation failed.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "e215749d-9586-41db-964e-5933a3529011", "documentation": "Queries policy states for the subscription level policy assignment.", "method": "post", "endpoint": "subscriptions/:subscriptionId/providers/:authorizationNamespace/policyAssignments/:policyAssignmentName/providers/Microsoft.PolicyInsights/policyStates/:policyStatesResource/queryResults", "responses": [ { "uuid": "aaf7f444-ae69-460d-a18c-046665bd3bfc", "body": "{\n \"@odata.context\": \"\",\n \"@odata.count\": {{faker 'number.int' max=99999}},\n \"value\": [\n {\n \"@odata.context\": \"\",\n \"@odata.id\": \"\",\n \"complianceState\": \"\",\n \"effectiveParameters\": \"\",\n \"isCompliant\": {{faker 'datatype.boolean'}},\n \"managementGroupIds\": \"\",\n \"policyAssignmentId\": \"\",\n \"policyAssignmentName\": \"\",\n \"policyAssignmentOwner\": \"\",\n \"policyAssignmentParameters\": \"\",\n \"policyAssignmentScope\": \"\",\n \"policyDefinitionAction\": \"\",\n \"policyDefinitionCategory\": \"\",\n \"policyDefinitionGroupNames\": [\n \"\"\n ],\n \"policyDefinitionId\": \"\",\n \"policyDefinitionName\": \"\",\n \"policyDefinitionReferenceId\": \"\",\n \"policyEvaluationDetails\": {\n \"evaluatedExpressions\": [\n {\n \"expression\": \"\",\n \"expressionValue\": {},\n \"operator\": \"\",\n \"path\": \"\",\n \"result\": \"\",\n \"targetValue\": {}\n }\n ],\n \"ifNotExistsDetails\": {\n \"resourceId\": \"\",\n \"totalResources\": {{faker 'number.int' max=99999}}\n }\n },\n \"policySetDefinitionCategory\": \"\",\n \"policySetDefinitionId\": \"\",\n \"policySetDefinitionName\": \"\",\n \"policySetDefinitionOwner\": \"\",\n \"policySetDefinitionParameters\": \"\",\n \"resourceGroup\": \"\",\n \"resourceId\": \"\",\n \"resourceLocation\": \"\",\n \"resourceTags\": \"\",\n \"resourceType\": \"\",\n \"subscriptionId\": \"\",\n \"timestamp\": \"{{faker 'date.recent' 365}}\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "Query results.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "346b6130-9f3d-4044-a822-94fc0e04aca7", "body": "{\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n}", "latency": 0, "statusCode": 200, "label": "Error response describing why the operation failed.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "5696f464-f6bd-4774-b1fc-4011955f080c", "documentation": "Summarizes policy states for the subscription level policy assignment.", "method": "post", "endpoint": "subscriptions/:subscriptionId/providers/:authorizationNamespace/policyAssignments/:policyAssignmentName/providers/Microsoft.PolicyInsights/policyStates/:policyStatesSummaryResource/summarize", "responses": [ { "uuid": "f29d0da8-c25a-459a-ba85-2ea19c5770be", "body": "{\n \"@odata.context\": \"\",\n \"@odata.count\": {{faker 'number.int' max=99999}},\n \"value\": [\n {\n \"@odata.context\": \"\",\n \"@odata.id\": \"\",\n \"policyAssignments\": [\n {\n \"policyAssignmentId\": \"\",\n \"policyDefinitions\": [\n {\n \"effect\": \"\",\n \"policyDefinitionGroupNames\": [\n \"\"\n ],\n \"policyDefinitionId\": \"\",\n \"policyDefinitionReferenceId\": \"\",\n \"results\": {\n \"nonCompliantPolicies\": {{faker 'number.int' max=99999}},\n \"nonCompliantResources\": {{faker 'number.int' max=99999}},\n \"policyDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"policyGroupDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"queryResultsUri\": \"\",\n \"resourceDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ]\n }\n }\n ],\n \"policyGroups\": [\n {\n \"policyGroupName\": \"\",\n \"results\": {\n \"nonCompliantPolicies\": {{faker 'number.int' max=99999}},\n \"nonCompliantResources\": {{faker 'number.int' max=99999}},\n \"policyDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"policyGroupDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"queryResultsUri\": \"\",\n \"resourceDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ]\n }\n }\n ],\n \"policySetDefinitionId\": \"\",\n \"results\": {\n \"nonCompliantPolicies\": {{faker 'number.int' max=99999}},\n \"nonCompliantResources\": {{faker 'number.int' max=99999}},\n \"policyDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"policyGroupDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"queryResultsUri\": \"\",\n \"resourceDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ]\n }\n }\n ],\n \"results\": {\n \"nonCompliantPolicies\": {{faker 'number.int' max=99999}},\n \"nonCompliantResources\": {{faker 'number.int' max=99999}},\n \"policyDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"policyGroupDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"queryResultsUri\": \"\",\n \"resourceDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ]\n }\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "Summarize results.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "de8c020a-c497-4c36-844a-e63a8293516e", "body": "{\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n}", "latency": 0, "statusCode": 200, "label": "Error response describing why the operation failed.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "ff4acc4d-2e5f-4e3c-977a-6d02400773df", "documentation": "Queries policy states for the subscription level policy definition.", "method": "post", "endpoint": "subscriptions/:subscriptionId/providers/:authorizationNamespace/policyDefinitions/:policyDefinitionName/providers/Microsoft.PolicyInsights/policyStates/:policyStatesResource/queryResults", "responses": [ { "uuid": "8b5eb169-a6dc-4529-88b9-29998f681cea", "body": "{\n \"@odata.context\": \"\",\n \"@odata.count\": {{faker 'number.int' max=99999}},\n \"value\": [\n {\n \"@odata.context\": \"\",\n \"@odata.id\": \"\",\n \"complianceState\": \"\",\n \"effectiveParameters\": \"\",\n \"isCompliant\": {{faker 'datatype.boolean'}},\n \"managementGroupIds\": \"\",\n \"policyAssignmentId\": \"\",\n \"policyAssignmentName\": \"\",\n \"policyAssignmentOwner\": \"\",\n \"policyAssignmentParameters\": \"\",\n \"policyAssignmentScope\": \"\",\n \"policyDefinitionAction\": \"\",\n \"policyDefinitionCategory\": \"\",\n \"policyDefinitionGroupNames\": [\n \"\"\n ],\n \"policyDefinitionId\": \"\",\n \"policyDefinitionName\": \"\",\n \"policyDefinitionReferenceId\": \"\",\n \"policyEvaluationDetails\": {\n \"evaluatedExpressions\": [\n {\n \"expression\": \"\",\n \"expressionValue\": {},\n \"operator\": \"\",\n \"path\": \"\",\n \"result\": \"\",\n \"targetValue\": {}\n }\n ],\n \"ifNotExistsDetails\": {\n \"resourceId\": \"\",\n \"totalResources\": {{faker 'number.int' max=99999}}\n }\n },\n \"policySetDefinitionCategory\": \"\",\n \"policySetDefinitionId\": \"\",\n \"policySetDefinitionName\": \"\",\n \"policySetDefinitionOwner\": \"\",\n \"policySetDefinitionParameters\": \"\",\n \"resourceGroup\": \"\",\n \"resourceId\": \"\",\n \"resourceLocation\": \"\",\n \"resourceTags\": \"\",\n \"resourceType\": \"\",\n \"subscriptionId\": \"\",\n \"timestamp\": \"{{faker 'date.recent' 365}}\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "Query results.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "95e9f19e-d5bc-473f-b0ff-7789a7181b24", "body": "{\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n}", "latency": 0, "statusCode": 200, "label": "Error response describing why the operation failed.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "e7f6d7a8-0eb6-4758-b2d3-3ae01bc4cd16", "documentation": "Summarizes policy states for the subscription level policy definition.", "method": "post", "endpoint": "subscriptions/:subscriptionId/providers/:authorizationNamespace/policyDefinitions/:policyDefinitionName/providers/Microsoft.PolicyInsights/policyStates/:policyStatesSummaryResource/summarize", "responses": [ { "uuid": "57cc696c-a38f-48b2-966f-94212fbfb42b", "body": "{\n \"@odata.context\": \"\",\n \"@odata.count\": {{faker 'number.int' max=99999}},\n \"value\": [\n {\n \"@odata.context\": \"\",\n \"@odata.id\": \"\",\n \"policyAssignments\": [\n {\n \"policyAssignmentId\": \"\",\n \"policyDefinitions\": [\n {\n \"effect\": \"\",\n \"policyDefinitionGroupNames\": [\n \"\"\n ],\n \"policyDefinitionId\": \"\",\n \"policyDefinitionReferenceId\": \"\",\n \"results\": {\n \"nonCompliantPolicies\": {{faker 'number.int' max=99999}},\n \"nonCompliantResources\": {{faker 'number.int' max=99999}},\n \"policyDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"policyGroupDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"queryResultsUri\": \"\",\n \"resourceDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ]\n }\n }\n ],\n \"policyGroups\": [\n {\n \"policyGroupName\": \"\",\n \"results\": {\n \"nonCompliantPolicies\": {{faker 'number.int' max=99999}},\n \"nonCompliantResources\": {{faker 'number.int' max=99999}},\n \"policyDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"policyGroupDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"queryResultsUri\": \"\",\n \"resourceDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ]\n }\n }\n ],\n \"policySetDefinitionId\": \"\",\n \"results\": {\n \"nonCompliantPolicies\": {{faker 'number.int' max=99999}},\n \"nonCompliantResources\": {{faker 'number.int' max=99999}},\n \"policyDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"policyGroupDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"queryResultsUri\": \"\",\n \"resourceDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ]\n }\n }\n ],\n \"results\": {\n \"nonCompliantPolicies\": {{faker 'number.int' max=99999}},\n \"nonCompliantResources\": {{faker 'number.int' max=99999}},\n \"policyDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"policyGroupDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"queryResultsUri\": \"\",\n \"resourceDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ]\n }\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "Summarize results.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "2ec7fafb-cac4-4e86-9d0a-5ee735c03252", "body": "{\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n}", "latency": 0, "statusCode": 200, "label": "Error response describing why the operation failed.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "cc048705-dab1-4125-ba69-bceeac31df27", "documentation": "Queries policy states for the subscription level policy set definition.", "method": "post", "endpoint": "subscriptions/:subscriptionId/providers/:authorizationNamespace/policySetDefinitions/:policySetDefinitionName/providers/Microsoft.PolicyInsights/policyStates/:policyStatesResource/queryResults", "responses": [ { "uuid": "3e5a54cc-55c8-4965-bccf-07eee5896f80", "body": "{\n \"@odata.context\": \"\",\n \"@odata.count\": {{faker 'number.int' max=99999}},\n \"value\": [\n {\n \"@odata.context\": \"\",\n \"@odata.id\": \"\",\n \"complianceState\": \"\",\n \"effectiveParameters\": \"\",\n \"isCompliant\": {{faker 'datatype.boolean'}},\n \"managementGroupIds\": \"\",\n \"policyAssignmentId\": \"\",\n \"policyAssignmentName\": \"\",\n \"policyAssignmentOwner\": \"\",\n \"policyAssignmentParameters\": \"\",\n \"policyAssignmentScope\": \"\",\n \"policyDefinitionAction\": \"\",\n \"policyDefinitionCategory\": \"\",\n \"policyDefinitionGroupNames\": [\n \"\"\n ],\n \"policyDefinitionId\": \"\",\n \"policyDefinitionName\": \"\",\n \"policyDefinitionReferenceId\": \"\",\n \"policyEvaluationDetails\": {\n \"evaluatedExpressions\": [\n {\n \"expression\": \"\",\n \"expressionValue\": {},\n \"operator\": \"\",\n \"path\": \"\",\n \"result\": \"\",\n \"targetValue\": {}\n }\n ],\n \"ifNotExistsDetails\": {\n \"resourceId\": \"\",\n \"totalResources\": {{faker 'number.int' max=99999}}\n }\n },\n \"policySetDefinitionCategory\": \"\",\n \"policySetDefinitionId\": \"\",\n \"policySetDefinitionName\": \"\",\n \"policySetDefinitionOwner\": \"\",\n \"policySetDefinitionParameters\": \"\",\n \"resourceGroup\": \"\",\n \"resourceId\": \"\",\n \"resourceLocation\": \"\",\n \"resourceTags\": \"\",\n \"resourceType\": \"\",\n \"subscriptionId\": \"\",\n \"timestamp\": \"{{faker 'date.recent' 365}}\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "Query results.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "c6dab125-cf5b-455b-aae4-df2632826ab3", "body": "{\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n}", "latency": 0, "statusCode": 200, "label": "Error response describing why the operation failed.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "e1a33c72-fe18-4015-800a-343766e42eb1", "documentation": "Summarizes policy states for the subscription level policy set definition.", "method": "post", "endpoint": "subscriptions/:subscriptionId/providers/:authorizationNamespace/policySetDefinitions/:policySetDefinitionName/providers/Microsoft.PolicyInsights/policyStates/:policyStatesSummaryResource/summarize", "responses": [ { "uuid": "56428f56-5500-4fe1-93b6-35706b89388a", "body": "{\n \"@odata.context\": \"\",\n \"@odata.count\": {{faker 'number.int' max=99999}},\n \"value\": [\n {\n \"@odata.context\": \"\",\n \"@odata.id\": \"\",\n \"policyAssignments\": [\n {\n \"policyAssignmentId\": \"\",\n \"policyDefinitions\": [\n {\n \"effect\": \"\",\n \"policyDefinitionGroupNames\": [\n \"\"\n ],\n \"policyDefinitionId\": \"\",\n \"policyDefinitionReferenceId\": \"\",\n \"results\": {\n \"nonCompliantPolicies\": {{faker 'number.int' max=99999}},\n \"nonCompliantResources\": {{faker 'number.int' max=99999}},\n \"policyDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"policyGroupDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"queryResultsUri\": \"\",\n \"resourceDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ]\n }\n }\n ],\n \"policyGroups\": [\n {\n \"policyGroupName\": \"\",\n \"results\": {\n \"nonCompliantPolicies\": {{faker 'number.int' max=99999}},\n \"nonCompliantResources\": {{faker 'number.int' max=99999}},\n \"policyDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"policyGroupDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"queryResultsUri\": \"\",\n \"resourceDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ]\n }\n }\n ],\n \"policySetDefinitionId\": \"\",\n \"results\": {\n \"nonCompliantPolicies\": {{faker 'number.int' max=99999}},\n \"nonCompliantResources\": {{faker 'number.int' max=99999}},\n \"policyDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"policyGroupDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"queryResultsUri\": \"\",\n \"resourceDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ]\n }\n }\n ],\n \"results\": {\n \"nonCompliantPolicies\": {{faker 'number.int' max=99999}},\n \"nonCompliantResources\": {{faker 'number.int' max=99999}},\n \"policyDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"policyGroupDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"queryResultsUri\": \"\",\n \"resourceDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ]\n }\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "Summarize results.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "241b198a-3ccb-4e8f-b3e1-1f90bfa841e7", "body": "{\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n}", "latency": 0, "statusCode": 200, "label": "Error response describing why the operation failed.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "fca4c92f-873b-42ad-abe1-d039fd16c61b", "documentation": "Triggers a policy evaluation scan for all the resources under the resource group.", "method": "post", "endpoint": "subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.PolicyInsights/policyStates/latest/triggerEvaluation", "responses": [ { "uuid": "924b33f7-5d3d-4aef-97cb-5dbc9b830d6b", "body": "", "latency": 0, "statusCode": 200, "label": "The scan is done.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "a9d86220-33fc-4819-ad4c-16857bc0d162", "body": "", "latency": 0, "statusCode": 202, "label": "The scan was successfully triggered.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "d2e0226c-8cc5-4ed3-9855-5023a0759ade", "body": "{\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n}", "latency": 0, "statusCode": 200, "label": "Error response describing why the operation failed.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "4a4c7340-6db3-494f-b2d8-7154b088aa87", "documentation": "Queries policy states for the resources under the resource group.", "method": "post", "endpoint": "subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.PolicyInsights/policyStates/:policyStatesResource/queryResults", "responses": [ { "uuid": "ae1f7b7c-7d28-4023-9647-e45b47bb7a05", "body": "{\n \"@odata.context\": \"\",\n \"@odata.count\": {{faker 'number.int' max=99999}},\n \"value\": [\n {\n \"@odata.context\": \"\",\n \"@odata.id\": \"\",\n \"complianceState\": \"\",\n \"effectiveParameters\": \"\",\n \"isCompliant\": {{faker 'datatype.boolean'}},\n \"managementGroupIds\": \"\",\n \"policyAssignmentId\": \"\",\n \"policyAssignmentName\": \"\",\n \"policyAssignmentOwner\": \"\",\n \"policyAssignmentParameters\": \"\",\n \"policyAssignmentScope\": \"\",\n \"policyDefinitionAction\": \"\",\n \"policyDefinitionCategory\": \"\",\n \"policyDefinitionGroupNames\": [\n \"\"\n ],\n \"policyDefinitionId\": \"\",\n \"policyDefinitionName\": \"\",\n \"policyDefinitionReferenceId\": \"\",\n \"policyEvaluationDetails\": {\n \"evaluatedExpressions\": [\n {\n \"expression\": \"\",\n \"expressionValue\": {},\n \"operator\": \"\",\n \"path\": \"\",\n \"result\": \"\",\n \"targetValue\": {}\n }\n ],\n \"ifNotExistsDetails\": {\n \"resourceId\": \"\",\n \"totalResources\": {{faker 'number.int' max=99999}}\n }\n },\n \"policySetDefinitionCategory\": \"\",\n \"policySetDefinitionId\": \"\",\n \"policySetDefinitionName\": \"\",\n \"policySetDefinitionOwner\": \"\",\n \"policySetDefinitionParameters\": \"\",\n \"resourceGroup\": \"\",\n \"resourceId\": \"\",\n \"resourceLocation\": \"\",\n \"resourceTags\": \"\",\n \"resourceType\": \"\",\n \"subscriptionId\": \"\",\n \"timestamp\": \"{{faker 'date.recent' 365}}\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "Query results.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "161fba15-7048-4a4e-9a60-8ad31a41a13a", "body": "{\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n}", "latency": 0, "statusCode": 200, "label": "Error response describing why the operation failed.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "1dd3916f-7d39-46aa-b271-b58f93c9b43c", "documentation": "Summarizes policy states for the resources under the resource group.", "method": "post", "endpoint": "subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.PolicyInsights/policyStates/:policyStatesSummaryResource/summarize", "responses": [ { "uuid": "9689b781-5c84-4a88-bb14-130b5bfeefc5", "body": "{\n \"@odata.context\": \"\",\n \"@odata.count\": {{faker 'number.int' max=99999}},\n \"value\": [\n {\n \"@odata.context\": \"\",\n \"@odata.id\": \"\",\n \"policyAssignments\": [\n {\n \"policyAssignmentId\": \"\",\n \"policyDefinitions\": [\n {\n \"effect\": \"\",\n \"policyDefinitionGroupNames\": [\n \"\"\n ],\n \"policyDefinitionId\": \"\",\n \"policyDefinitionReferenceId\": \"\",\n \"results\": {\n \"nonCompliantPolicies\": {{faker 'number.int' max=99999}},\n \"nonCompliantResources\": {{faker 'number.int' max=99999}},\n \"policyDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"policyGroupDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"queryResultsUri\": \"\",\n \"resourceDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ]\n }\n }\n ],\n \"policyGroups\": [\n {\n \"policyGroupName\": \"\",\n \"results\": {\n \"nonCompliantPolicies\": {{faker 'number.int' max=99999}},\n \"nonCompliantResources\": {{faker 'number.int' max=99999}},\n \"policyDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"policyGroupDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"queryResultsUri\": \"\",\n \"resourceDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ]\n }\n }\n ],\n \"policySetDefinitionId\": \"\",\n \"results\": {\n \"nonCompliantPolicies\": {{faker 'number.int' max=99999}},\n \"nonCompliantResources\": {{faker 'number.int' max=99999}},\n \"policyDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"policyGroupDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"queryResultsUri\": \"\",\n \"resourceDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ]\n }\n }\n ],\n \"results\": {\n \"nonCompliantPolicies\": {{faker 'number.int' max=99999}},\n \"nonCompliantResources\": {{faker 'number.int' max=99999}},\n \"policyDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"policyGroupDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"queryResultsUri\": \"\",\n \"resourceDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ]\n }\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "Summarize results.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "59b0fc86-69b9-4872-a74d-41093315bb13", "body": "{\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n}", "latency": 0, "statusCode": 200, "label": "Error response describing why the operation failed.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "660ab689-ecc8-4c34-8342-f612f4c0ab25", "documentation": "Queries policy states for the resource group level policy assignment.", "method": "post", "endpoint": "subscriptions/:subscriptionId/resourcegroups/:resourceGroupName/providers/:authorizationNamespace/policyAssignments/:policyAssignmentName/providers/Microsoft.PolicyInsights/policyStates/:policyStatesResource/queryResults", "responses": [ { "uuid": "e195ba23-6196-4aef-8fc7-09ca5cf858d5", "body": "{\n \"@odata.context\": \"\",\n \"@odata.count\": {{faker 'number.int' max=99999}},\n \"value\": [\n {\n \"@odata.context\": \"\",\n \"@odata.id\": \"\",\n \"complianceState\": \"\",\n \"effectiveParameters\": \"\",\n \"isCompliant\": {{faker 'datatype.boolean'}},\n \"managementGroupIds\": \"\",\n \"policyAssignmentId\": \"\",\n \"policyAssignmentName\": \"\",\n \"policyAssignmentOwner\": \"\",\n \"policyAssignmentParameters\": \"\",\n \"policyAssignmentScope\": \"\",\n \"policyDefinitionAction\": \"\",\n \"policyDefinitionCategory\": \"\",\n \"policyDefinitionGroupNames\": [\n \"\"\n ],\n \"policyDefinitionId\": \"\",\n \"policyDefinitionName\": \"\",\n \"policyDefinitionReferenceId\": \"\",\n \"policyEvaluationDetails\": {\n \"evaluatedExpressions\": [\n {\n \"expression\": \"\",\n \"expressionValue\": {},\n \"operator\": \"\",\n \"path\": \"\",\n \"result\": \"\",\n \"targetValue\": {}\n }\n ],\n \"ifNotExistsDetails\": {\n \"resourceId\": \"\",\n \"totalResources\": {{faker 'number.int' max=99999}}\n }\n },\n \"policySetDefinitionCategory\": \"\",\n \"policySetDefinitionId\": \"\",\n \"policySetDefinitionName\": \"\",\n \"policySetDefinitionOwner\": \"\",\n \"policySetDefinitionParameters\": \"\",\n \"resourceGroup\": \"\",\n \"resourceId\": \"\",\n \"resourceLocation\": \"\",\n \"resourceTags\": \"\",\n \"resourceType\": \"\",\n \"subscriptionId\": \"\",\n \"timestamp\": \"{{faker 'date.recent' 365}}\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "Query results.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "9e12b839-5b4d-413c-84fb-9b6cb6f7367c", "body": "{\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n}", "latency": 0, "statusCode": 200, "label": "Error response describing why the operation failed.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "32f7f33f-cde5-47bd-9944-1b126427a6fa", "documentation": "Summarizes policy states for the resource group level policy assignment.", "method": "post", "endpoint": "subscriptions/:subscriptionId/resourcegroups/:resourceGroupName/providers/:authorizationNamespace/policyAssignments/:policyAssignmentName/providers/Microsoft.PolicyInsights/policyStates/:policyStatesSummaryResource/summarize", "responses": [ { "uuid": "e2fb2776-3c62-4e91-8dc3-d22e8668beb1", "body": "{\n \"@odata.context\": \"\",\n \"@odata.count\": {{faker 'number.int' max=99999}},\n \"value\": [\n {\n \"@odata.context\": \"\",\n \"@odata.id\": \"\",\n \"policyAssignments\": [\n {\n \"policyAssignmentId\": \"\",\n \"policyDefinitions\": [\n {\n \"effect\": \"\",\n \"policyDefinitionGroupNames\": [\n \"\"\n ],\n \"policyDefinitionId\": \"\",\n \"policyDefinitionReferenceId\": \"\",\n \"results\": {\n \"nonCompliantPolicies\": {{faker 'number.int' max=99999}},\n \"nonCompliantResources\": {{faker 'number.int' max=99999}},\n \"policyDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"policyGroupDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"queryResultsUri\": \"\",\n \"resourceDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ]\n }\n }\n ],\n \"policyGroups\": [\n {\n \"policyGroupName\": \"\",\n \"results\": {\n \"nonCompliantPolicies\": {{faker 'number.int' max=99999}},\n \"nonCompliantResources\": {{faker 'number.int' max=99999}},\n \"policyDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"policyGroupDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"queryResultsUri\": \"\",\n \"resourceDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ]\n }\n }\n ],\n \"policySetDefinitionId\": \"\",\n \"results\": {\n \"nonCompliantPolicies\": {{faker 'number.int' max=99999}},\n \"nonCompliantResources\": {{faker 'number.int' max=99999}},\n \"policyDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"policyGroupDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"queryResultsUri\": \"\",\n \"resourceDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ]\n }\n }\n ],\n \"results\": {\n \"nonCompliantPolicies\": {{faker 'number.int' max=99999}},\n \"nonCompliantResources\": {{faker 'number.int' max=99999}},\n \"policyDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"policyGroupDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"queryResultsUri\": \"\",\n \"resourceDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ]\n }\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "Summarize results.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "2e53cf33-2e57-4a0b-a742-71d6307cc80d", "body": "{\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n}", "latency": 0, "statusCode": 200, "label": "Error response describing why the operation failed.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "4e99c191-79f3-4343-b122-15cfb6deed92", "documentation": "Queries policy states for the resource.", "method": "post", "endpoint": ":resourceId/providers/Microsoft.PolicyInsights/policyStates/:policyStatesResource/queryResults", "responses": [ { "uuid": "23cfe700-eb40-442e-af78-47245b740101", "body": "{\n \"@odata.context\": \"\",\n \"@odata.count\": {{faker 'number.int' max=99999}},\n \"value\": [\n {\n \"@odata.context\": \"\",\n \"@odata.id\": \"\",\n \"complianceState\": \"\",\n \"effectiveParameters\": \"\",\n \"isCompliant\": {{faker 'datatype.boolean'}},\n \"managementGroupIds\": \"\",\n \"policyAssignmentId\": \"\",\n \"policyAssignmentName\": \"\",\n \"policyAssignmentOwner\": \"\",\n \"policyAssignmentParameters\": \"\",\n \"policyAssignmentScope\": \"\",\n \"policyDefinitionAction\": \"\",\n \"policyDefinitionCategory\": \"\",\n \"policyDefinitionGroupNames\": [\n \"\"\n ],\n \"policyDefinitionId\": \"\",\n \"policyDefinitionName\": \"\",\n \"policyDefinitionReferenceId\": \"\",\n \"policyEvaluationDetails\": {\n \"evaluatedExpressions\": [\n {\n \"expression\": \"\",\n \"expressionValue\": {},\n \"operator\": \"\",\n \"path\": \"\",\n \"result\": \"\",\n \"targetValue\": {}\n }\n ],\n \"ifNotExistsDetails\": {\n \"resourceId\": \"\",\n \"totalResources\": {{faker 'number.int' max=99999}}\n }\n },\n \"policySetDefinitionCategory\": \"\",\n \"policySetDefinitionId\": \"\",\n \"policySetDefinitionName\": \"\",\n \"policySetDefinitionOwner\": \"\",\n \"policySetDefinitionParameters\": \"\",\n \"resourceGroup\": \"\",\n \"resourceId\": \"\",\n \"resourceLocation\": \"\",\n \"resourceTags\": \"\",\n \"resourceType\": \"\",\n \"subscriptionId\": \"\",\n \"timestamp\": \"{{faker 'date.recent' 365}}\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "Query results.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "40eb9903-083d-4ba2-aad9-e157b77edcad", "body": "{\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n}", "latency": 0, "statusCode": 200, "label": "Error response describing why the operation failed.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "ff3424b5-dc78-4413-be13-9d7fd3969a7b", "documentation": "Summarizes policy states for the resource.", "method": "post", "endpoint": ":resourceId/providers/Microsoft.PolicyInsights/policyStates/:policyStatesSummaryResource/summarize", "responses": [ { "uuid": "6de84563-1fa6-4632-9308-6ae00c5cf034", "body": "{\n \"@odata.context\": \"\",\n \"@odata.count\": {{faker 'number.int' max=99999}},\n \"value\": [\n {\n \"@odata.context\": \"\",\n \"@odata.id\": \"\",\n \"policyAssignments\": [\n {\n \"policyAssignmentId\": \"\",\n \"policyDefinitions\": [\n {\n \"effect\": \"\",\n \"policyDefinitionGroupNames\": [\n \"\"\n ],\n \"policyDefinitionId\": \"\",\n \"policyDefinitionReferenceId\": \"\",\n \"results\": {\n \"nonCompliantPolicies\": {{faker 'number.int' max=99999}},\n \"nonCompliantResources\": {{faker 'number.int' max=99999}},\n \"policyDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"policyGroupDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"queryResultsUri\": \"\",\n \"resourceDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ]\n }\n }\n ],\n \"policyGroups\": [\n {\n \"policyGroupName\": \"\",\n \"results\": {\n \"nonCompliantPolicies\": {{faker 'number.int' max=99999}},\n \"nonCompliantResources\": {{faker 'number.int' max=99999}},\n \"policyDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"policyGroupDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"queryResultsUri\": \"\",\n \"resourceDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ]\n }\n }\n ],\n \"policySetDefinitionId\": \"\",\n \"results\": {\n \"nonCompliantPolicies\": {{faker 'number.int' max=99999}},\n \"nonCompliantResources\": {{faker 'number.int' max=99999}},\n \"policyDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"policyGroupDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"queryResultsUri\": \"\",\n \"resourceDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ]\n }\n }\n ],\n \"results\": {\n \"nonCompliantPolicies\": {{faker 'number.int' max=99999}},\n \"nonCompliantResources\": {{faker 'number.int' max=99999}},\n \"policyDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"policyGroupDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ],\n \"queryResultsUri\": \"\",\n \"resourceDetails\": [\n {\n \"complianceState\": \"\",\n \"count\": {{faker 'number.int' max=99999}}\n }\n ]\n }\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "Summarize results.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "b3458c3a-c912-442b-bb43-54fa0b3338f1", "body": "{\n \"error\": {\n \"code\": \"\",\n \"message\": \"\"\n }\n}", "latency": 0, "statusCode": 200, "label": "Error response describing why the operation failed.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" } ], "proxyMode": false, "proxyHost": "", "proxyRemovePrefix": false, "tlsOptions": { "enabled": false, "type": "CERT", "pfxPath": "", "certPath": "", "keyPath": "", "caPath": "", "passphrase": "" }, "cors": true, "headers": [], "proxyReqHeaders": [{ "key": "", "value": "" }], "proxyResHeaders": [{ "key": "", "value": "" }], "data": [], "folders": [], "rootChildren": [ { "type": "route", "uuid": "d47c8754-8e35-4132-8990-05a73077f5c2" }, { "type": "route", "uuid": "891b8eaa-bfa5-4908-bcfd-ec7659b35de9" }, { "type": "route", "uuid": "6d925b14-96ed-4310-a016-01647916be32" }, { "type": "route", "uuid": "10d205a6-674b-47c9-a4ba-641387e51f3b" }, { "type": "route", "uuid": "626d1a0f-ac9e-426f-97b6-5d6b2e528505" }, { "type": "route", "uuid": "034fe83a-c1a3-4014-a02c-a852595f9131" }, { "type": "route", "uuid": "e215749d-9586-41db-964e-5933a3529011" }, { "type": "route", "uuid": "5696f464-f6bd-4774-b1fc-4011955f080c" }, { "type": "route", "uuid": "ff4acc4d-2e5f-4e3c-977a-6d02400773df" }, { "type": "route", "uuid": "e7f6d7a8-0eb6-4758-b2d3-3ae01bc4cd16" }, { "type": "route", "uuid": "cc048705-dab1-4125-ba69-bceeac31df27" }, { "type": "route", "uuid": "e1a33c72-fe18-4015-800a-343766e42eb1" }, { "type": "route", "uuid": "fca4c92f-873b-42ad-abe1-d039fd16c61b" }, { "type": "route", "uuid": "4a4c7340-6db3-494f-b2d8-7154b088aa87" }, { "type": "route", "uuid": "1dd3916f-7d39-46aa-b271-b58f93c9b43c" }, { "type": "route", "uuid": "660ab689-ecc8-4c34-8342-f612f4c0ab25" }, { "type": "route", "uuid": "32f7f33f-cde5-47bd-9944-1b126427a6fa" }, { "type": "route", "uuid": "4e99c191-79f3-4343-b122-15cfb6deed92" }, { "type": "route", "uuid": "ff3424b5-dc78-4413-be13-9d7fd3969a7b" } ] }