Skip to main content

server_vulnerability_assessments_settings

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

Overview

Nameserver_vulnerability_assessments_settings
TypeResource
Idazure.security.server_vulnerability_assessments_settings

Fields

NameDatatypeDescription
idstringResource Id
namestringResource name
kindstringThe kind of the server vulnerability assessments setting
typestringResource type

Methods

NameAccessible byRequired ParamsDescription
getSELECTsettingKind, subscriptionIdGet a server vulnerability assessments setting of the requested kind, that is set on the subscription
list_by_subscriptionSELECTsubscriptionIdGet a list of all the server vulnerability assessments settings over a subscription level scope
create_or_updateINSERTsettingKind, subscriptionId, data__kindCreate or update a server vulnerability assessments setting of the requested kind on the subscription
deleteDELETEsettingKind, subscriptionIdDelete 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.

/*+ create */
INSERT INTO azure.security.server_vulnerability_assessments_settings (
settingKind,
subscriptionId,
data__kind,
kind
)
SELECT
'{{ settingKind }}',
'{{ subscriptionId }}',
'{{ data__kind }}',
'{{ kind }}'
;

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 }}';