Skip to main content

domains

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

Overview

Namedomains
TypeResource
Idazure.communication.domains

Fields

NameDatatypeDescription
data_locationtextfield from the properties object
domainNametextfield from the properties object
domain_managementtextfield from the properties object
emailServiceNametextfield from the properties object
from_sender_domaintextfield from the properties object
locationtextThe geo-location where the resource lives
mail_from_sender_domaintextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
user_engagement_trackingtextfield from the properties object
verification_recordstextfield from the properties object
verification_statestextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTdomainName, emailServiceName, resourceGroupName, subscriptionIdGet the Domains resource and its properties.
list_by_email_service_resourceSELECTemailServiceName, resourceGroupName, subscriptionIdHandles requests to list all Domains resources under the parent EmailServices resource.
create_or_updateINSERTdomainName, emailServiceName, resourceGroupName, subscriptionIdAdd a new Domains resource under the parent EmailService resource or update an existing Domains resource.
deleteDELETEdomainName, emailServiceName, resourceGroupName, subscriptionIdOperation to delete a Domains resource.
updateUPDATEdomainName, emailServiceName, resourceGroupName, subscriptionIdOperation to update an existing Domains resource.
cancel_verificationEXECdomainName, emailServiceName, resourceGroupName, subscriptionId, data__verificationTypeCancel verification of DNS record.
initiate_verificationEXECdomainName, emailServiceName, resourceGroupName, subscriptionId, data__verificationTypeInitiate verification of DNS record.

SELECT examples

Handles requests to list all Domains resources under the parent EmailServices resource.

SELECT
data_location,
domainName,
domain_management,
emailServiceName,
from_sender_domain,
location,
mail_from_sender_domain,
provisioning_state,
resourceGroupName,
subscriptionId,
tags,
user_engagement_tracking,
verification_records,
verification_states
FROM azure.communication.vw_domains
WHERE emailServiceName = '{{ emailServiceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a domains resource.

/*+ update */
UPDATE azure.communication.domains
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
domainName = '{{ domainName }}'
AND emailServiceName = '{{ emailServiceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified domains resource.

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