server_vulnerability_assessments_settings
Creates, updates, deletes, gets or lists a server_vulnerability_assessments_settings
resource.
Overview
Name | server_vulnerability_assessments_settings |
Type | Resource |
Id | azure.security.server_vulnerability_assessments_settings |
Fields
Name | Datatype | Description |
---|---|---|
id | string | Resource Id |
name | string | Resource name |
kind | string | The kind of the server vulnerability assessments setting |
type | string | Resource type |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | settingKind, subscriptionId | Get a server vulnerability assessments setting of the requested kind, that is set on the subscription |
list_by_subscription | SELECT | subscriptionId | Get a list of all the server vulnerability assessments settings over a subscription level scope |
create_or_update | INSERT | settingKind, subscriptionId, data__kind | Create or update a server vulnerability assessments setting of the requested kind on the subscription |
delete | DELETE | settingKind, subscriptionId | Delete the server vulnerability assessments setting of the requested kind from the subscription |
SELECT
examples
Get a list of all the server vulnerability assessments settings over a subscription level scope
SELECT
id,
name,
kind,
type
FROM azure.security.server_vulnerability_assessments_settings
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new server_vulnerability_assessments_settings
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.security.server_vulnerability_assessments_settings (
settingKind,
subscriptionId,
data__kind,
kind
)
SELECT
'{{ settingKind }}',
'{{ subscriptionId }}',
'{{ data__kind }}',
'{{ kind }}'
;
- name: your_resource_model_name
props:
- name: kind
value: []
- name: id
value: string
- name: name
value: string
- name: type
value: string
DELETE
example
Deletes the specified server_vulnerability_assessments_settings
resource.
/*+ delete */
DELETE FROM azure.security.server_vulnerability_assessments_settings
WHERE settingKind = '{{ settingKind }}'
AND subscriptionId = '{{ subscriptionId }}';