compliance_results
Creates, updates, deletes, gets or lists a compliance_results resource.
Overview
| Name | compliance_results |
| Type | Resource |
| Id | azure.security.compliance_results |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
resourceStatus | string | The status of the resource regarding a single assessment. Known values are: "Healthy", "NotApplicable", "OffByPolicy", and "NotHealthy". (Healthy, NotApplicable, OffByPolicy, NotHealthy) |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
resourceStatus | string | The status of the resource regarding a single assessment. Known values are: "Healthy", "NotApplicable", "OffByPolicy", and "NotHealthy". (Healthy, NotApplicable, OffByPolicy, NotHealthy) |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | resource_id, compliance_result_name | Security Compliance Result. | |
list | select | scope | Security compliance results in the subscription. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
compliance_result_name | string | The compliance result key. Required. |
resource_id | string | The fully qualified Azure Resource manager identifier of the resource. Required. |
scope | string | The fully qualified Azure Resource manager identifier of the resource. Required. |
SELECT examples
- get
- list
Security Compliance Result.
SELECT
id,
name,
resourceStatus,
systemData,
type
FROM azure.security.compliance_results
WHERE resource_id = '{{ resource_id }}' -- required
AND compliance_result_name = '{{ compliance_result_name }}' -- required
;
Security compliance results in the subscription.
SELECT
id,
name,
resourceStatus,
systemData,
type
FROM azure.security.compliance_results
WHERE scope = '{{ scope }}' -- required
;