custom_assessment_automations
Creates, updates, deletes, gets or lists a custom_assessment_automations
resource.
Overview
Name | custom_assessment_automations |
Type | Resource |
Id | azure.security.custom_assessment_automations |
Fields
- vw_custom_assessment_automations
- custom_assessment_automations
Name | Datatype | Description |
---|---|---|
id | text | Resource Id |
name | text | Resource name |
description | text | field from the properties object |
assessment_key | text | field from the properties object |
compressed_query | text | field from the properties object |
customAssessmentAutomationName | text | field from the properties object |
display_name | text | field from the properties object |
remediation_description | text | field from the properties object |
resourceGroupName | text | field from the properties object |
severity | text | field from the properties object |
subscriptionId | text | field from the properties object |
supported_cloud | text | field from the properties object |
system_data | text | field from the properties object |
type | text | Resource type |
Name | Datatype | Description |
---|---|---|
id | string | Resource Id |
name | string | Resource name |
properties | object | describes the Custom Assessment Automation properties |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
type | string | Resource type |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | customAssessmentAutomationName, resourceGroupName, subscriptionId | Gets a single custom assessment automation by name for the provided subscription and resource group. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | List custom assessment automations by provided subscription and resource group |
list_by_subscription | SELECT | subscriptionId | List custom assessment automations by provided subscription |
create | INSERT | customAssessmentAutomationName, resourceGroupName, subscriptionId | Creates or updates a custom assessment automation for the provided subscription. Please note that providing an existing custom assessment automation will replace the existing record. |
delete | DELETE | customAssessmentAutomationName, resourceGroupName, subscriptionId | Deletes a custom assessment automation by name for a provided subscription |
SELECT
examples
List custom assessment automations by provided subscription
- vw_custom_assessment_automations
- custom_assessment_automations
SELECT
id,
name,
description,
assessment_key,
compressed_query,
customAssessmentAutomationName,
display_name,
remediation_description,
resourceGroupName,
severity,
subscriptionId,
supported_cloud,
system_data,
type
FROM azure.security.vw_custom_assessment_automations
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
properties,
systemData,
type
FROM azure.security.custom_assessment_automations
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new custom_assessment_automations
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.security.custom_assessment_automations (
customAssessmentAutomationName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ customAssessmentAutomationName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: compressedQuery
value: string
- name: supportedCloud
value: string
- name: severity
value: string
- name: displayName
value: string
- name: description
value: string
- name: remediationDescription
value: string
- name: id
value: string
- name: name
value: string
- name: type
value: string
DELETE
example
Deletes the specified custom_assessment_automations
resource.
/*+ delete */
DELETE FROM azure.security.custom_assessment_automations
WHERE customAssessmentAutomationName = '{{ customAssessmentAutomationName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';