Skip to main content

suppression_lists

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

Overview

Namesuppression_lists
TypeResource
Idazure.communication.suppression_lists

Fields

NameDatatypeDescription
created_time_stamptextfield from the properties object
data_locationtextfield from the properties object
domainNametextfield from the properties object
emailServiceNametextfield from the properties object
last_updated_time_stamptextfield from the properties object
list_nametextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
suppressionListNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTdomainName, emailServiceName, resourceGroupName, subscriptionId, suppressionListNameGet a SuppressionList resource.
list_by_domainSELECTdomainName, emailServiceName, resourceGroupName, subscriptionIdList all suppression lists for a domains resource.
create_or_updateINSERTdomainName, emailServiceName, resourceGroupName, subscriptionId, suppressionListNameAdd a new SuppressionList resource under the parent Domains resource or update an existing SuppressionList resource.
deleteDELETEdomainName, emailServiceName, resourceGroupName, subscriptionId, suppressionListNameDelete a SuppressionList.

SELECT examples

List all suppression lists for a domains resource.

SELECT
created_time_stamp,
data_location,
domainName,
emailServiceName,
last_updated_time_stamp,
list_name,
resourceGroupName,
subscriptionId,
suppressionListName
FROM azure.communication.vw_suppression_lists
WHERE domainName = '{{ domainName }}'
AND emailServiceName = '{{ emailServiceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

DELETE example

Deletes the specified suppression_lists resource.

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