Skip to main content

contacts

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

Overview

Namecontacts
TypeResource
Idazure.security.contacts

Fields

NameDatatypeDescription
idtextResource Id
nametextResource name
emailstextfield from the properties object
is_enabledtextfield from the properties object
notifications_by_roletextfield from the properties object
notifications_sourcestextfield from the properties object
phonetextfield from the properties object
securityContactNametextfield from the properties object
subscriptionIdtextfield from the properties object
typetextResource type

Methods

NameAccessible byRequired ParamsDescription
getSELECTsecurityContactName, subscriptionIdGet Default Security contact configurations for the subscription
listSELECTsubscriptionIdList all security contact configurations for the subscription
createINSERTsecurityContactName, subscriptionIdCreate security contact configurations for the subscription
deleteDELETEsecurityContactName, subscriptionIdDelete security contact configurations for the subscription

SELECT examples

List all security contact configurations for the subscription

SELECT
id,
name,
emails,
is_enabled,
notifications_by_role,
notifications_sources,
phone,
securityContactName,
subscriptionId,
type
FROM azure.security.vw_contacts
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new contacts resource.

/*+ create */
INSERT INTO azure.security.contacts (
securityContactName,
subscriptionId,
properties
)
SELECT
'{{ securityContactName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified contacts resource.

/*+ delete */
DELETE FROM azure.security.contacts
WHERE securityContactName = '{{ securityContactName }}'
AND subscriptionId = '{{ subscriptionId }}';