Skip to main content

suppression_list_addresses

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

Overview

Namesuppression_list_addresses
TypeResource
Idazure.communication.suppression_list_addresses

Fields

NameDatatypeDescription
addressIdtextfield from the properties object
data_locationtextfield from the properties object
domainNametextfield from the properties object
emailtextfield from the properties object
emailServiceNametextfield from the properties object
first_nametextfield from the properties object
last_modifiedtextfield from the properties object
last_nametextfield from the properties object
notestextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
suppressionListNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTaddressId, domainName, emailServiceName, resourceGroupName, subscriptionId, suppressionListNameGet a SuppressionListAddress.
listSELECTdomainName, emailServiceName, resourceGroupName, subscriptionId, suppressionListNameGet all the addresses in a suppression list.
create_or_updateINSERTaddressId, domainName, emailServiceName, resourceGroupName, subscriptionId, suppressionListNameCreate or update a SuppressionListAddress.
deleteDELETEaddressId, domainName, emailServiceName, resourceGroupName, subscriptionId, suppressionListNameOperation to delete a single address from a suppression list.

SELECT examples

Get all the addresses in a suppression list.

SELECT
addressId,
data_location,
domainName,
email,
emailServiceName,
first_name,
last_modified,
last_name,
notes,
resourceGroupName,
subscriptionId,
suppressionListName
FROM azure.communication.vw_suppression_list_addresses
WHERE domainName = '{{ domainName }}'
AND emailServiceName = '{{ emailServiceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND suppressionListName = '{{ suppressionListName }}';

INSERT example

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

/*+ create */
INSERT INTO azure.communication.suppression_list_addresses (
addressId,
domainName,
emailServiceName,
resourceGroupName,
subscriptionId,
suppressionListName,
properties
)
SELECT
'{{ addressId }}',
'{{ domainName }}',
'{{ emailServiceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ suppressionListName }}',
'{{ properties }}'
;

DELETE example

Deletes the specified suppression_list_addresses resource.

/*+ delete */
DELETE FROM azure.communication.suppression_list_addresses
WHERE addressId = '{{ addressId }}'
AND domainName = '{{ domainName }}'
AND emailServiceName = '{{ emailServiceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND suppressionListName = '{{ suppressionListName }}';