Skip to main content

assessments_metadata

Creates, updates, deletes, gets or lists an assessments_metadata resource.

Overview

Nameassessments_metadata
TypeResource
Idazure.security.assessments_metadata

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
propertiesobjectDescribes properties of an assessment metadata response.
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
get_in_subscriptionselectassessmentMetadataName, subscriptionIdapi-versionGet metadata information on an assessment type in a specific subscription
getselectassessmentMetadataNameapi-versionGet metadata information on an assessment type
list_by_subscriptionselectsubscriptionIdapi-versionGet metadata information on all assessment types in a specific subscription
listselectapi-versionGet metadata information on all assessment types
create_in_subscriptioninsertassessmentMetadataName, subscriptionIdapi-versionCreate metadata information on an assessment type in a specific subscription
delete_in_subscriptiondeleteassessmentMetadataName, subscriptionIdapi-versionDelete metadata information on an assessment type in a specific subscription, will cause the deletion of all the assessments of that type in that 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
assessmentMetadataNamestringThe Assessment Key - Unique key for the assessment type
subscriptionIdstringAzure subscription ID
api-versionstringAPI version for the operation

SELECT examples

Get metadata information on an assessment type in a specific subscription

SELECT
id,
name,
properties,
systemData,
type
FROM azure.security.assessments_metadata
WHERE assessmentMetadataName = '{{ assessmentMetadataName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND api-version = '{{ api-version }}'
;

INSERT examples

Create metadata information on an assessment type in a specific subscription

INSERT INTO azure.security.assessments_metadata (
data__properties,
assessmentMetadataName,
subscriptionId,
api-version
)
SELECT
'{{ properties }}',
'{{ assessmentMetadataName }}',
'{{ subscriptionId }}',
'{{ api-version }}'
RETURNING
id,
name,
properties,
systemData,
type
;

DELETE examples

Delete metadata information on an assessment type in a specific subscription, will cause the deletion of all the assessments of that type in that subscription

DELETE FROM azure.security.assessments_metadata
WHERE assessmentMetadataName = '{{ assessmentMetadataName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
AND api-version = '{{ api-version }}'
;