Skip to main content

evidences

Creates, updates, deletes, gets or lists an evidences resource.

Overview

Nameevidences
TypeResource
Idazure_extras.app_compliance_automation.evidences

Fields

The following fields are returned by SELECT queries:

Azure operation completed successfully.

NameDatatypeDescription
propertiesobjectEvidence property.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectreportName, evidenceNameGet the evidence metadata
list_by_reportselectreportName$skipToken, $top, $select, $filter, $orderby, offerGuid, reportCreatorTenantIdReturns a paginated list of evidences for a specified report.
create_or_updateinsertreportName, evidenceName, data__propertiesofferGuid, reportCreatorTenantIdCreate or Update an evidence a specified report
deletedeletereportName, evidenceNameDelete an existent evidence from a specified report
downloadexecreportName, evidenceNameDownload evidence file.

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
evidenceNamestringThe evidence name.
reportNamestringReport 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 evidence metadata

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

INSERT examples

Create or Update an evidence a specified report

INSERT INTO azure_extras.app_compliance_automation.evidences (
data__properties,
reportName,
evidenceName,
offerGuid,
reportCreatorTenantId
)
SELECT
'{{ properties }}' /* required */,
'{{ reportName }}',
'{{ evidenceName }}',
'{{ offerGuid }}',
'{{ reportCreatorTenantId }}'
RETURNING
properties
;

DELETE examples

Delete an existent evidence from a specified report

DELETE FROM azure_extras.app_compliance_automation.evidences
WHERE reportName = '{{ reportName }}' --required
AND evidenceName = '{{ evidenceName }}' --required
;

Lifecycle Methods

Download evidence file.

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