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

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstring (arm-id)Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
namestringThe name of the resource
kindstringThe kind of the server vulnerability assessments setting.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, settingKindGet 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_updateinsertsubscriptionId, settingKind, data__kindCreate or update a server vulnerability assessments setting of the requested kind on the subscription
deletedeletesubscriptionId, settingKindDelete the server vulnerability assessments setting of the requested kind from the subscription

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
settingKindstringThe kind of the server vulnerability assessments setting
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

Get a server vulnerability assessments setting of the requested kind, that is set on the subscription

SELECT
id,
name,
kind,
systemData,
type
FROM azure.security.server_vulnerability_assessments_settings
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND settingKind = '{{ settingKind }}' -- required
;

INSERT examples

Create or update a server vulnerability assessments setting of the requested kind on the subscription

INSERT INTO azure.security.server_vulnerability_assessments_settings (
data__kind,
subscriptionId,
settingKind
)
SELECT
'{{ kind }}' /* required */,
'{{ subscriptionId }}',
'{{ settingKind }}'
RETURNING
id,
name,
kind,
systemData,
type
;

DELETE examples

Delete the server vulnerability assessments setting of the requested kind from the subscription

DELETE FROM azure.security.server_vulnerability_assessments_settings
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND settingKind = '{{ settingKind }}' --required
;