evidences
Creates, updates, deletes, gets or lists a evidences
resource.
Overview
Name | evidences |
Type | Resource |
Id | azure_extras.app_compliance_automation.evidences |
Fields
- vw_evidences
- evidences
Name | Datatype | Description |
---|---|---|
control_id | text | field from the properties object |
evidenceName | text | field from the properties object |
evidence_type | text | field from the properties object |
extra_data | text | field from the properties object |
file_path | text | field from the properties object |
provisioning_state | text | field from the properties object |
reportName | text | field from the properties object |
responsibility_id | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Evidence's properties. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | evidenceName, reportName | Get the evidence metadata |
list_by_report | SELECT | reportName | Returns a paginated list of evidences for a specified report. |
create_or_update | INSERT | evidenceName, reportName, data__properties | Create or Update an evidence a specified report |
delete | DELETE | evidenceName, reportName | Delete an existent evidence from a specified report |
download | EXEC | evidenceName, reportName | Download evidence file. |
SELECT
examples
Returns a paginated list of evidences for a specified report.
- vw_evidences
- evidences
SELECT
control_id,
evidenceName,
evidence_type,
extra_data,
file_path,
provisioning_state,
reportName,
responsibility_id
FROM azure_extras.app_compliance_automation.vw_evidences
WHERE reportName = '{{ reportName }}';
SELECT
properties
FROM azure_extras.app_compliance_automation.evidences
WHERE reportName = '{{ reportName }}';
INSERT
example
Use the following StackQL query and manifest file to create a new evidences
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure_extras.app_compliance_automation.evidences (
evidenceName,
reportName,
data__properties,
properties
)
SELECT
'{{ evidenceName }}',
'{{ reportName }}',
'{{ data__properties }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: evidenceType
value: []
- name: filePath
value: string
- name: extraData
value: string
- name: controlId
value: string
- name: responsibilityId
value: string
- name: provisioningState
value: []
DELETE
example
Deletes the specified evidences
resource.
/*+ delete */
DELETE FROM azure_extras.app_compliance_automation.evidences
WHERE evidenceName = '{{ evidenceName }}'
AND reportName = '{{ reportName }}';