Skip to main content

security_settings

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

Overview

Namesecurity_settings
TypeResource
Idazure_stack.azure_stack_hci.security_settings

Fields

NameDatatypeDescription
clusterNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
secured_core_compliance_assignmenttextfield from the properties object
securitySettingsNametextfield from the properties object
security_compliance_statustextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTclusterName, resourceGroupName, securitySettingsName, subscriptionIdGet a SecuritySetting
list_by_clustersSELECTclusterName, resourceGroupName, subscriptionIdList SecuritySetting resources by Clusters
create_or_updateINSERTclusterName, resourceGroupName, securitySettingsName, subscriptionIdCreate a security setting
deleteDELETEclusterName, resourceGroupName, securitySettingsName, subscriptionIdDelete a SecuritySetting

SELECT examples

List SecuritySetting resources by Clusters

SELECT
clusterName,
provisioning_state,
resourceGroupName,
secured_core_compliance_assignment,
securitySettingsName,
security_compliance_status,
subscriptionId
FROM azure_stack.azure_stack_hci.vw_security_settings
WHERE clusterName = '{{ clusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new security_settings resource.

/*+ create */
INSERT INTO azure_stack.azure_stack_hci.security_settings (
clusterName,
resourceGroupName,
securitySettingsName,
subscriptionId,
properties
)
SELECT
'{{ clusterName }}',
'{{ resourceGroupName }}',
'{{ securitySettingsName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified security_settings resource.

/*+ delete */
DELETE FROM azure_stack.azure_stack_hci.security_settings
WHERE clusterName = '{{ clusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND securitySettingsName = '{{ securitySettingsName }}'
AND subscriptionId = '{{ subscriptionId }}';