Skip to main content

snapshots

Creates, updates, deletes, gets or lists a snapshots resource.

Overview

Namesnapshots
TypeResource
Idazure_extras.app_compliance_automation.snapshots

Fields

The following fields are returned by SELECT queries:

Azure operation completed successfully.

NameDatatypeDescription
propertiesobjectSnapshot's property.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectreportName, snapshotNameGet the AppComplianceAutomation snapshot and its properties.
listselectreportName$skipToken, $top, $select, $filter, $orderby, offerGuid, reportCreatorTenantIdGet the AppComplianceAutomation snapshot list.
downloadexecreportName, snapshotName, downloadTypeDownload compliance needs from snapshot, like: Compliance Report, Resource List.

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.

NameDatatypeDescription
reportNamestringReport Name.
snapshotNamestringSnapshot Name.
$filterstringThe filter to apply on the operation.
$orderbystringOData order by query option.
$selectstringOData Select statement. Limits the properties on each entry to just those requested, e.g. ?$select=reportName,id.
$skipTokenstringSkip over when retrieving results.
$topinteger (int32)Number of elements to return when retrieving results.
offerGuidstringThe offerGuid which mapping to the reports.
reportCreatorTenantIdstringThe tenant id of the report creator.

SELECT examples

Get the AppComplianceAutomation snapshot and its properties.

SELECT
properties
FROM azure_extras.app_compliance_automation.snapshots
WHERE reportName = '{{ reportName }}' -- required
AND snapshotName = '{{ snapshotName }}' -- required
;

Lifecycle Methods

Download compliance needs from snapshot, like: Compliance Report, Resource List.

EXEC azure_extras.app_compliance_automation.snapshots.download 
@reportName='{{ reportName }}' --required,
@snapshotName='{{ snapshotName }}' --required
@@json=
'{
"reportCreatorTenantId": "{{ reportCreatorTenantId }}",
"downloadType": "{{ downloadType }}",
"offerGuid": "{{ offerGuid }}"
}'
;