security_settings
Creates, updates, deletes, gets or lists a security_settings
resource.
Overview
Name | security_settings |
Type | Resource |
Id | azure_stack.azure_stack_hci.security_settings |
Fields
- vw_security_settings
- security_settings
Name | Datatype | Description |
---|---|---|
clusterName | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
secured_core_compliance_assignment | text | field from the properties object |
securitySettingsName | text | field from the properties object |
security_compliance_status | text | field from the properties object |
subscriptionId | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Security properties of the resource |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | clusterName, resourceGroupName, securitySettingsName, subscriptionId | Get a SecuritySetting |
list_by_clusters | SELECT | clusterName, resourceGroupName, subscriptionId | List SecuritySetting resources by Clusters |
create_or_update | INSERT | clusterName, resourceGroupName, securitySettingsName, subscriptionId | Create a security setting |
delete | DELETE | clusterName, resourceGroupName, securitySettingsName, subscriptionId | Delete a SecuritySetting |
SELECT
examples
List SecuritySetting resources by Clusters
- vw_security_settings
- security_settings
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 }}';
SELECT
properties
FROM azure_stack.azure_stack_hci.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure_stack.azure_stack_hci.security_settings (
clusterName,
resourceGroupName,
securitySettingsName,
subscriptionId,
properties
)
SELECT
'{{ clusterName }}',
'{{ resourceGroupName }}',
'{{ securitySettingsName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: securedCoreComplianceAssignment
value: []
- name: securityComplianceStatus
value:
- name: securedCoreCompliance
value: []
- name: lastUpdated
value: string
- name: provisioningState
value: []
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 }}';