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 (arm-id) | Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
name | string | The name of the resource |
properties | object | Compliance result data |
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 (arm-id) | Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
name | string | The name of the resource |
properties | object | Compliance result data |
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 | complianceResultName | api-version , resourceId | Security Compliance Result |
list | select | scope | api-version | 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 |
---|---|---|
complianceResultName | string | name of the desired assessment compliance result |
scope | string | The scope of the standard assignment. Valid scopes are: management group (format: 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: 'subscriptions/{subscriptionId}'), or security connector (format: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' |
api-version | string | API version for the operation |
resourceId | string | Optional filter for listing the assignments of a specific resource. |
SELECT
examples
- get
- list
Security Compliance Result
SELECT
id,
name,
properties,
systemData,
type
FROM azure.security.compliance_results
WHERE complianceResultName = '{{ complianceResultName }}' -- required
AND api-version = '{{ api-version }}'
AND resourceId = '{{ resourceId }}'
;
Security compliance results in the subscription
SELECT
id,
name,
properties,
systemData,
type
FROM azure.security.compliance_results
WHERE scope = '{{ scope }}' -- required
AND api-version = '{{ api-version }}'
;